|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.toplink.threetier.ConnectionPolicy
Purpose: Used to specify how a client session's should be allocated.
Constructor Summary |
ConnectionPolicy()
PUBLIC: A connection policy is used to define how the client session connection should be acquired. |
ConnectionPolicy(DatabaseLogin login)
PUBLIC: A connection policy is used to define how the client session connection should be acquired. |
ConnectionPolicy(java.lang.String poolName)
PUBLIC: A connection policy is used to define how the client session connection should be acquired. |
Method Summary |
Type | Method |
---|---|
void |
dontUseLazyConnection()
PUBLIC: A lazy connection only acquires a physical connection when a transaction is started and releases the connection when the transaction completes. |
DatabaseLogin |
getLogin()
PUBLIC: Return the login to use for this connection. |
java.lang.String |
getPoolName()
PUBLIC: Return the pool name or null if not part of a pool. |
boolean |
hasLogin()
PUBLIC: Return if a login is used, only one of login and pool can be used. |
boolean |
isLazy()
PUBLIC: Return if a lazy connection should be used, a lazy connection only acquire a physical connection when a transaction is started and releases the connection when the transaction completes. |
void |
setIsLazy(boolean isLazy)
PUBLIC: Set if a lazy connection should be used, a lazy connection only acquire a physical connection when a transaction is started and releases the connection when the transaction completes. |
void |
setLogin(DatabaseLogin login)
PUBLIC: Set the login to use for this connection. |
void |
setPoolName(java.lang.String poolName)
PUBLIC: Set the pool name or null if not part of a pool. |
void |
useLazyConnection()
PUBLIC: A lazy connection only acquires a physical connection when a transaction is started and releases the connection when the transaction completes. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ConnectionPolicy()
public ConnectionPolicy(java.lang.String poolName)
public ConnectionPolicy(DatabaseLogin login)
Method Detail |
public void dontUseLazyConnection()
public DatabaseLogin getLogin()
public java.lang.String getPoolName()
public boolean hasLogin()
public boolean isLazy()
public void setIsLazy(boolean isLazy)
public void setLogin(DatabaseLogin login)
public void setPoolName(java.lang.String poolName)
public void useLazyConnection()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |