Package org.apache.openjpa.jdbc.sql
Class SybaseDictionary.SybaseConnection
- java.lang.Object
-
- org.apache.openjpa.lib.jdbc.DelegatingConnection
-
- org.apache.openjpa.jdbc.sql.SybaseDictionary.SybaseConnection
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.sql.Connection
,java.sql.Wrapper
,Closeable
- Enclosing class:
- SybaseDictionary
protected static class SybaseDictionary.SybaseConnection extends DelegatingConnection
Connection wrapper to cache theConnection.getCatalog()
result, which takes a very long time with the Sybase Connection (and which we frequently invoke).
-
-
Constructor Summary
Constructors Constructor Description SybaseConnection(java.sql.Connection conn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCatalog()
void
setAutoCommit(boolean autocommit)
-
Methods inherited from class org.apache.openjpa.lib.jdbc.DelegatingConnection
abort, appendInfo, clearWarnings, close, commit, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, createStatement, createStatement, createStatement, createStatement, createStruct, equals, getAutoCommit, getClientInfo, getClientInfo, getDelegate, getHoldability, getInnermostDelegate, getMetaData, getMetaData, getNetworkTimeout, getSchema, getTransactionIsolation, getTypeMap, getWarnings, hashCode, isClosed, isReadOnly, isValid, isWrapperFor, nativeSQL, prepareCall, prepareCall, prepareCall, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setCatalog, setClientInfo, setClientInfo, setHoldability, setNetworkTimeout, setReadOnly, setSavepoint, setSavepoint, setSchema, setTransactionIsolation, setTypeMap, toString, unwrap
-
-
-
-
Method Detail
-
getCatalog
public java.lang.String getCatalog() throws java.sql.SQLException
- Specified by:
getCatalog
in interfacejava.sql.Connection
- Overrides:
getCatalog
in classDelegatingConnection
- Throws:
java.sql.SQLException
-
setAutoCommit
public void setAutoCommit(boolean autocommit) throws java.sql.SQLException
- Specified by:
setAutoCommit
in interfacejava.sql.Connection
- Overrides:
setAutoCommit
in classDelegatingConnection
- Throws:
java.sql.SQLException
-
-