com.microstrategy.web.objects.WebDBConnection |
Object extending from WebObjectInfo
to represent the first-class
DB connection objects
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract boolean | areParameterizedQueriesEnabled() | ||||||||||
abstract void |
disableExtendedFetch()
Disable Extended Fetch for ODB associated with this connection.
| ||||||||||
abstract void |
disableParameterizedQueries()
Disable parameterized queries.
| ||||||||||
abstract void | disableTrace() | ||||||||||
abstract void |
enableExtendedFetch()
Enable Extended fetch for ODB for this connection.
| ||||||||||
abstract void |
enableParameterizedQueries()
Enable parameterized queries.
| ||||||||||
abstract void | enableTrace() | ||||||||||
abstract Integer | getCacheOption() | ||||||||||
abstract Integer | getCacheSize() | ||||||||||
abstract Integer | getCacheTimeout() | ||||||||||
abstract int | getCharEncoding() | ||||||||||
abstract int | getCharEncodingForUnix() | ||||||||||
abstract int | getConnectionLifetime() | ||||||||||
abstract String | getConnectionString() | ||||||||||
abstract Integer | getConnectionTimeout() | ||||||||||
abstract WebDBLogin | getDBLogin() | ||||||||||
abstract Integer |
getDBRoleType()
Returns the type of DB role accessed.
| ||||||||||
abstract Integer |
getDatabaseType()
Returns the type of DB being accessed.
| ||||||||||
abstract Integer | getDriverMode() | ||||||||||
abstract Integer | getExecutionMode() | ||||||||||
abstract int | getIdleTimeout() | ||||||||||
abstract int | getMaxCancelAttemptTime() | ||||||||||
abstract int |
getMaxConnectionAttemptTime()
Set the maximum connection attempt time.
| ||||||||||
abstract Integer | getMaxDBConnections() | ||||||||||
abstract Integer | getMaxDBCost() | ||||||||||
abstract int | getMaxQueryExeTime() | ||||||||||
abstract Integer | getMultiProcess() | ||||||||||
abstract String | getOAuthParameter() | ||||||||||
abstract String | getTablePrefix() | ||||||||||
abstract Boolean | getTraceFlag() | ||||||||||
abstract Boolean | isExtendedFetchEnabled() | ||||||||||
abstract void | setCacheOption(int option) | ||||||||||
abstract void | setCacheSize(int size) | ||||||||||
abstract void | setCacheTimeout(int cacheTimeout) | ||||||||||
abstract void |
setCharEncoding(int encoding)
Set the character set encoding for Windows drivers.
| ||||||||||
abstract void |
setCharEncodingForUnix(int encoding)
Set the character set encoding for Unix drivers.
| ||||||||||
abstract void |
setConnectionLifetime(int timeout)
Set the connection lifetime.
| ||||||||||
abstract void | setConnectionString(String connectionString) | ||||||||||
abstract void | setConnectionTimeout(int time) | ||||||||||
abstract void |
setDBLogin(WebDBLogin newLogin, boolean embed)
Sets the login credentials to be used by this connection
| ||||||||||
abstract void | setDBLogin(WebDBLogin newLogin) | ||||||||||
abstract void |
setDBRoleType(int newType)
Changes the type of DBRole type associated with this database connection
This method is only applicable for remote projects
| ||||||||||
abstract void |
setDatabaseType(int newType)
Changes the type of Database type associated with this database connection
This method is only applicable for MDX database, which is DssXmlDBSAP or DssXmlDBMicrosoftAS.
| ||||||||||
abstract void | setDriverMode(int newMode) | ||||||||||
abstract void | setExecutionMode(int newMode) | ||||||||||
abstract void |
setIdleTimeout(int timeout)
Set the connection idle timeout.
| ||||||||||
abstract void |
setMaxCancelAttemptTime(int time)
Set the maximum cancel attempt time.
| ||||||||||
abstract void |
setMaxConnectionAttemptTime(int time)
Set the maximum connection attempt time.
| ||||||||||
abstract void | setMaxDBConnections(int conns) | ||||||||||
abstract void | setMaxDBCost(int cost) | ||||||||||
abstract void |
setMaxQueryExeTime(int time)
Set the maximum query execution time.
| ||||||||||
abstract void | setMultiProcess(int type) | ||||||||||
abstract void | setOAuthParameter(String oa) | ||||||||||
abstract void | setTablePrefix(String prefix) |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Disable Extended Fetch for ODB associated with this connection. ExtendedFetch is a Boolean property. It specifies whether or not to use the extended fetch ODBC call to retrieve data from the connection.
Disable parameterized queries. This method modifies a WebObjectInfo property. Therefore, this object must exist in the MD prior to calling it.
WebObjectsException |
---|
Enable Extended fetch for ODB for this connection. ExtendedFetch is a Boolean property. It specifies whether or not to use the extended fetch ODBC call to retrieve data from the connection.
Enable parameterized queries. This method modifies a WebObjectInfo property. Therefore, this object must exist in the MD prior to calling it.
WebObjectsException |
---|
EnumDSSXMLDBConnectionCacheOption
It
specifies the degree to which the intelligence server will
attempt to reuse physical connections made using the
specification contained in this DBConnection object.
EnumDSSXMLCharacterEncoding
depicting
encoding across connection for Windows drivers
WebObjectsException |
---|
EnumDSSXMLCharacterEncoding
depicting
encoding across connection for Unix drivers
WebObjectsException |
---|
WebDBLogin
object used to connect to ODB associated
with this connection
Returns the type of DB role accessed.
EnumDSSXMLDatabaseType
Returns the type of DB being accessed.
EnumDSSXMLDatabaseType
EnumDSSXMLDBConnectionDriverMode
.
DriverType is an enumeration property. It specifies the
connection driver type. It specifies whether the connection
is made using ODBC or some native database driver.
EnumDSSXMLDBConnectionExecutionMode
.
ExecutionMode is an enumeration property. It specifies the
manner in which SQL statements will be executed on a physical
connection made using this object. In particular it indicates
if the statement is executed synchronously or asynchronously.
Set the maximum connection attempt time. This method modifies a WebObjectInfo property. Therefore, this object must exist in the MD prior to calling it
WebObjectsException |
---|
WebObjectsException |
---|
EnumDSSXMLDBConnectionMultiProcessOption
specifying whether connection is executed in a single or
several processes
option | integer from EnumDSSXMLDBConnectionCacheOption . It
specifies the degree to which the intelligence server will
attempt to reuse physical connections made using the
specification contained in this DBConnection object.
|
---|
size | integer. It contains the maximum number of physical connections made using the specifications in this object that may be opened simultaneously. Thus it is the maximum size of the connection pool. |
---|
cacheTimeout | Integer seconds for CacheTimeout. CacheTimeOut is a numeric property. When use connection pooling, the connection is not disconnected when it is released. Instead, it is kept open until it idles for ConnectionCacheTimeOut seconds. If a connection is open and released frequently, connection pooling reduces the cost associated with creating a new connection. |
---|
Set the character set encoding for Windows drivers. This method modifies a WebObjectInfo property. Therefore, this object must exist in the MD prior to calling it.
WebObjectsException |
---|
Set the character set encoding for Unix drivers. This method modifies a WebObjectInfo property. Therefore, this object must exist in the MD prior to calling it.
WebObjectsException |
---|
Set the connection lifetime. This method modifies a WebObjectInfo property. Therefore, this object must exist in the MD prior to calling it.
timeout | integer seconds maximum connection lifetime |
---|
WebObjectsException |
---|
connectionString | String including connection information associated with this database connection |
---|
time | Integer specifying how long before requests on connection are timed out. It specifies the time in seconds to wait for a connection request comes back. |
---|
Sets the login credentials to be used by this connection
newLogin | WebDBLogin object representing login credentials for this connection |
---|---|
embed | boolean true when newLogin should be embedded in |
newLogin | WebDBLogin to be associated with this connection
|
---|
Changes the type of DBRole type associated with this database connection This method is only applicable for remote projects
newType | integer representing the type of the new DB to be connected
by this DBConnection from EnumDSSXMLDatabaseType
|
---|
Changes the type of Database type associated with this database connection This method is only applicable for MDX database, which is DssXmlDBSAP or DssXmlDBMicrosoftAS. For other database type, we always use default database type and not allow use this method to set database type.
newType | integer representing the type of the new DB to be connected
by this DBConnection from EnumDSSXMLDatabaseType
|
---|
newMode | Integer from EnumDSSXMLDBConnectionDriverMode . It
specifies the connection driver type. It specifies whether
the connection is made using ODBC or some native database
driver.
|
---|
newMode | Integer from EnumDSSXMLDBConnectionExecutionMode . It
specifies the manner in SQL statements will be executed on a
physical connection made using this object. In particular it
indicates if the statement is executed synchronously or
asynchronously.
|
---|
Set the connection idle timeout. This method modifies a WebObjectInfo property. Therefore, this object must exist in the MD prior to calling it.
timeout | integer seconds maximum connection lifetime |
---|
WebObjectsException |
---|
Set the maximum cancel attempt time. This method modifies a WebObjectInfo property. Therefore, this object must exist in the MD prior to calling it
time | Integer seconds maximum time to attempt to cancel a connection |
---|
WebObjectsException |
---|
Set the maximum connection attempt time. This method modifies a WebObjectInfo property. Therefore, this object must exist in the MD prior to calling it
time | Integer seconds maximum time to try to connect to IServer |
---|
WebObjectsException |
---|
conns | integer specifying a numeric property for this connection |
---|
cost | integer specifying a numeric property for this connection |
---|
Set the maximum query execution time. This method modifies a WebObjectInfo property. Therefore, this object must exist in the MD prior to calling it
time | Integer seconds maximum time a query can execute before being timed out |
---|
WebObjectsException |
---|
oa | String including OAuth parameter |
---|
prefix | String containing table prefix for this connection |
---|
IllegalArgumentException |
---|