Save This Page
Home » apache-openjpa-1.1.0-source » org.apache.openjpa.lib » jdbc » [javadoc | source]
org.apache.openjpa.lib.jdbc
public class: ConfiguringConnectionDecorator [javadoc | source]
java.lang.Object
   org.apache.openjpa.lib.jdbc.ConfiguringConnectionDecorator

All Implemented Interfaces:
    ConnectionDecorator

Connection decorator that can configure some properties of the underlying connection. Understands the following properties:
Method from org.apache.openjpa.lib.jdbc.ConfiguringConnectionDecorator Summary:
decorate,   getAutoCommit,   getQueryTimeout,   getTransactionIsolation,   setAutoCommit,   setQueryTimeout,   setTransactionIsolation
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.openjpa.lib.jdbc.ConfiguringConnectionDecorator Detail:
 public Connection decorate(Connection conn) throws SQLException 
 public Boolean getAutoCommit() 
    Whether auto commit should be on. Use null to keep the connection's default setting. Defaults to null.
 public int getQueryTimeout() 
    The number of seconds to wait for a query to execute before terminating it.
 public int getTransactionIsolation() 
    The transaction isolation level.
 public  void setAutoCommit(Boolean autoCommit) 
    Whether auto commit should be on. Use null to keep the connection's default setting. Defaults to null.
 public  void setQueryTimeout(int timeout) 
    The number of seconds to wait for a query to execute before terminating it.
 public  void setTransactionIsolation(int isolation) 
    The transaction isolation level.