Class 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 the Connection.getCatalog() result, which takes a very long time with the Sybase Connection (and which we frequently invoke).
    • Constructor Detail

      • SybaseConnection

        public SybaseConnection​(java.sql.Connection conn)
    • Method Detail

      • getCatalog

        public java.lang.String getCatalog()
                                    throws java.sql.SQLException
        Specified by:
        getCatalog in interface java.sql.Connection
        Overrides:
        getCatalog in class DelegatingConnection
        Throws:
        java.sql.SQLException
      • setAutoCommit

        public void setAutoCommit​(boolean autocommit)
                           throws java.sql.SQLException
        Specified by:
        setAutoCommit in interface java.sql.Connection
        Overrides:
        setAutoCommit in class DelegatingConnection
        Throws:
        java.sql.SQLException