|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.softwareag.tamino.db.api.connection.TConnectionPoolDescriptor
public class TConnectionPoolDescriptor
TConnectionPoolDescriptor describes all the properties for a connection pool.
Constructor Summary | |
---|---|
TConnectionPoolDescriptor()
Constructor to construct a TConnectionPoolDescriptor with default settings. |
Method Summary | |
---|---|
java.lang.String |
getDatabaseURI()
Gets the Tamino database URI. |
java.lang.String |
getDomain()
Gets the domain. |
int |
getInitConnections()
Gets the number of connections initially in the pool. |
TIsolationDegree |
getIsolationDegree()
Gets the isolation degree. |
TLockMode |
getLockMode()
Gets the lock mode. |
TLockwaitMode |
getLockwaitMode()
Gets the current lockwait mode. |
int |
getMaxConnections()
Gets the maimum number of connections in the pool. |
long |
getMaximumTransactionDuration()
Gets the maximum transaction duration in seconds. |
long |
getNonActivityTimeout()
Gets the nonActivity timeout. |
java.lang.String |
getPassword()
Gets the password. |
SecurityToken |
getSecurityToken()
|
int |
getTimeOut()
Gets the pool time out. |
java.lang.String |
getUser()
Gets the user id used of all connections in the pool. |
void |
setDatabaseURI(java.lang.String databaseURI)
Sets the Tamino database URI to be used for all connections. |
void |
setDomain(java.lang.String domain)
Sets the domain to be used for authentication for all connections in the pool. |
void |
setInitConnections(int initConnections)
Sets the number of connections that are initially in the pool. |
void |
setIsolationDegree(TIsolationDegree isolationDegree)
Sets the isolation degree. |
void |
setLockMode(TLockMode lockMode)
Sets the lock mode. |
void |
setLockwaitMode(TLockwaitMode lockwaitMode)
Sets the lockwait mode for a transaction. |
void |
setMaxConnections(int maxConnections)
Sets the maximum number of connections in the pool. |
void |
setMaximumTransactionDuration(long maximumTransactionDuration)
Sets the maximum transaction duration in seconds. |
void |
setNonActivityTimeout(long nonActivityTimeout)
Sets the nonActivity timeout. |
void |
setPassword(java.lang.String password)
Sets the password to be used for authentication for all connections in the pool. |
void |
setSecurityToken(SecurityToken token)
|
void |
setTimeOut(int timeOut)
Sets the time out for the pool. |
void |
setUser(java.lang.String user)
Sets the user id to be used for authentication for all connections in the pool. |
java.lang.String |
toString()
Writes the current descriptor properties to a String. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TConnectionPoolDescriptor()
Method Detail |
---|
public void setMaxConnections(int maxConnections)
maxConnections
- an int specifying the maximum number of connections in the pool.public int getMaxConnections()
public void setUser(java.lang.String user)
the
- user id as a Stringpublic java.lang.String getUser()
public void setTimeOut(int timeOut)
timeOut
- the time out as an intpublic int getTimeOut()
public void setDomain(java.lang.String domain)
domain
- the domain as a Stringpublic java.lang.String getDomain()
public void setInitConnections(int initConnections)
initConnections
- the number of connections initially in the pool as an intpublic int getInitConnections()
public void setDatabaseURI(java.lang.String databaseURI)
databaseURI
- the database URI as a Stringpublic java.lang.String getDatabaseURI()
public void setPassword(java.lang.String password)
password
- the password as a Stringpublic java.lang.String getPassword()
public void setSecurityToken(SecurityToken token)
public SecurityToken getSecurityToken()
public void setLockwaitMode(TLockwaitMode lockwaitMode)
lockwaitMode
- the lockwait mode to be set, 'null' for Tamino default.public TLockwaitMode getLockwaitMode()
public void setIsolationDegree(TIsolationDegree isolationDegree)
isolationDegree
- the isolation degree to be set, 'null' for Tamino default.public TIsolationDegree getIsolationDegree()
public void setLockMode(TLockMode lockMode)
lockMode
- the lock mode to be set, 'null' for Tamino default.public TLockMode getLockMode()
public void setNonActivityTimeout(long nonActivityTimeout)
nonActivityTimeout
- the transaction nonActivity timeout in seconds be set,
TConnection.DEFAULT_TIMEOUT for Tamino default.public long getNonActivityTimeout()
public void setMaximumTransactionDuration(long maximumTransactionDuration)
maximumTransactionDuration
- the maximum transaction duration in seconds in seconds be set, TConnection.DEFAULT_TIMEOUT for Tamino default.public long getMaximumTransactionDuration()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |