|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.lib.jdbc.ConfiguringConnectionDecorator
public class ConfiguringConnectionDecorator
Connection decorator that can configure some properties of the underlying connection. Understands the following properties:
Connection
constants)
Constructor Summary | |
---|---|
ConfiguringConnectionDecorator()
|
Method Summary | |
---|---|
Connection |
decorate(Connection conn)
Decorate the given connection if desired. |
Boolean |
getAutoCommit()
Whether auto commit should be on. |
int |
getQueryTimeout()
The number of seconds to wait for a query to execute before terminating it. |
int |
getTransactionIsolation()
The transaction isolation level. |
void |
setAutoCommit(Boolean autoCommit)
Whether auto commit should be on. |
void |
setQueryTimeout(int timeout)
The number of seconds to wait for a query to execute before terminating it. |
void |
setTransactionIsolation(int isolation)
The transaction isolation level. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfiguringConnectionDecorator()
Method Detail |
---|
public int getQueryTimeout()
public void setQueryTimeout(int timeout)
public int getTransactionIsolation()
public void setTransactionIsolation(int isolation)
public Boolean getAutoCommit()
public void setAutoCommit(Boolean autoCommit)
public Connection decorate(Connection conn) throws SQLException
ConnectionDecorator
decorate
in interface ConnectionDecorator
SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |