public class DBConnection extends ExternalConnection
| Modifier and Type | Method and Description |
|---|---|
int |
getClassType()
Gets the type of this
ExternalConnection object. |
java.lang.String |
getCommand()
The string containing the database command to pass to the data provider API that will
interact with the external source in order to retrieve data
|
int |
getCommandType()
Specifies the OLE DB command type.
|
java.lang.String |
getConnectionInfo()
Deprecated.
Use ExternalConnection.ConnectionString property instead.
|
java.lang.String |
getConnectionString()
The connection information string is used to make contact with an OLE DB or ODBC data source.
|
PowerQueryFormula |
getPowerQueryFormula()
Gets the definition of power query formula.
|
java.lang.String |
getSecondCommand()
Specifies a second command text string that is persisted when PivotTable server-based
page fields are in use.
|
java.lang.String |
getSeverCommand()
Deprecated.
Use ExternalConnection.SecondCommand property instead.
|
void |
setCommand(java.lang.String value)
The string containing the database command to pass to the data provider API that will
interact with the external source in order to retrieve data
|
void |
setCommandType(int value)
Specifies the OLE DB command type.
|
void |
setConnectionInfo(java.lang.String value)
Deprecated.
Use ExternalConnection.ConnectionString property instead.
|
void |
setConnectionString(java.lang.String value)
The connection information string is used to make contact with an OLE DB or ODBC data source.
|
void |
setSecondCommand(java.lang.String value)
Specifies a second command text string that is persisted when PivotTable server-based
page fields are in use.
|
void |
setSeverCommand(java.lang.String value)
Deprecated.
Use ExternalConnection.SecondCommand property instead.
|
getBackgroundRefresh, getConnectionDescription, getConnectionFile, getConnectionId, getCredentials, getCredentialsMethodType, getId, getKeepAlive, getName, getOdcFile, getOnlyUseConnectionFile, getParameters, getReconnectionMethod, getReconnectionMethodType, getRefreshInternal, getRefreshOnLoad, getSaveData, getSavePassword, getSourceFile, getSourceType, getSSOId, getType, isDeleted, isNew, setBackgroundRefresh, setConnectionDescription, setCredentials, setCredentialsMethodType, setDeleted, setKeepAlive, setName, setNew, setOdcFile, setOnlyUseConnectionFile, setReconnectionMethod, setReconnectionMethodType, setRefreshInternal, setRefreshOnLoad, setSaveData, setSavePassword, setSourceFile, setSourceType, setSSOId, setTypepublic int getClassType()
ExternalConnection object.
getClassType in class ExternalConnectionpublic java.lang.String getConnectionString()
getConnectionString in class ExternalConnectionpublic void setConnectionString(java.lang.String value)
setConnectionString in class ExternalConnectionpublic java.lang.String getConnectionInfo()
Remarks
NOTE: This property is now obsolete. Instead, please use ExternalConnection.ConnectionString property. This method will be removed 12 months later since October 2024. Aspose apologizes for any inconvenience you may have experienced.public void setConnectionInfo(java.lang.String value)
Remarks
NOTE: This property is now obsolete. Instead, please use ExternalConnection.ConnectionString property. This method will be removed 12 months later since October 2024. Aspose apologizes for any inconvenience you may have experienced.public PowerQueryFormula getPowerQueryFormula()
getPowerQueryFormula in class ExternalConnectionpublic int getCommandType()
See OLEDBCommandType.
getCommandType in class ExternalConnectionpublic void setCommandType(int value)
See OLEDBCommandType.
setCommandType in class ExternalConnectionpublic java.lang.String getCommand()
getCommand in class ExternalConnectionpublic void setCommand(java.lang.String value)
setCommand in class ExternalConnectionpublic java.lang.String getSeverCommand()
Remarks
NOTE: This property is now obsolete. Instead, please use ExternalConnection.SecondCommand property. This method will be removed 12 months later since October 2024. Aspose apologizes for any inconvenience you may have experienced.public void setSeverCommand(java.lang.String value)
Remarks
NOTE: This property is now obsolete. Instead, please use ExternalConnection.SecondCommand property. This method will be removed 12 months later since October 2024. Aspose apologizes for any inconvenience you may have experienced.public java.lang.String getSecondCommand()
getSecondCommand in class ExternalConnectionpublic void setSecondCommand(java.lang.String value)
setSecondCommand in class ExternalConnectionSee Also:
Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
Aspose.Cells Support Forum - our preferred method of support.
We guarantee a prompt response to any inquiry!
© Aspose Pty Ltd 2003-2025. All Rights Reserved.