Class CoStoSysConnection
- java.lang.Object
-
- de.julielab.costosys.dbconnection.CoStoSysConnection
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class CoStoSysConnection extends java.lang.Object implements java.lang.AutoCloseable
-
-
Constructor Summary
Constructors Constructor Description CoStoSysConnection(DataBaseConnector dbc, java.sql.Connection connection, boolean newlyReserved)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidcommit()java.sql.StatementcreateStatement()booleangetAutoCommit()java.sql.ConnectiongetConnection()java.sql.DatabaseMetaDatagetMetaData()voidincrementUsageNumber()java.sql.PreparedStatementprepareStatement(java.lang.String sql)voidrelease()voidsetAutoCommit(boolean b)
-
-
-
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:
closein interfacejava.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
-
-