Class CoStoSysConnection

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class CoStoSysConnection
    extends java.lang.Object
    implements java.lang.AutoCloseable
    • Constructor Detail

      • CoStoSysConnection

        public CoStoSysConnection​(DataBaseConnector dbc,
                                  java.sql.Connection connection,
                                  boolean newlyReserved)
    • Method Detail

      • incrementUsageNumber

        public void incrementUsageNumber()
      • release

        public void release()
                     throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getConnection

        public java.sql.Connection getConnection()
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
      • createStatement

        public java.sql.Statement createStatement()
                                           throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • prepareStatement

        public java.sql.PreparedStatement prepareStatement​(java.lang.String sql)
                                                    throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • commit

        public void commit()
                    throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getMetaData

        public java.sql.DatabaseMetaData getMetaData()
                                              throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getAutoCommit

        public boolean getAutoCommit()
                              throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • setAutoCommit

        public void setAutoCommit​(boolean b)
                           throws java.sql.SQLException
        Throws:
        java.sql.SQLException