Class CoStoSysConnection
- java.lang.Object
-
- de.julielab.costosys.dbconnection.CoStoSysConnection
-
- All Implemented Interfaces:
AutoCloseable
public class CoStoSysConnection extends Object implements AutoCloseable
-
-
Constructor Summary
Constructors Constructor Description CoStoSysConnection(DataBaseConnector dbc, Connection connection, boolean newlyReserved)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidcommit()StatementcreateStatement()booleangetAutoCommit()ConnectiongetConnection()DatabaseMetaDatagetMetaData()voidincrementUsageNumber()PreparedStatementprepareStatement(String sql)voidrelease()voidsetAutoCommit(boolean b)
-
-
-
Constructor Detail
-
CoStoSysConnection
public CoStoSysConnection(DataBaseConnector dbc, Connection connection, boolean newlyReserved)
-
-
Method Detail
-
incrementUsageNumber
public void incrementUsageNumber()
-
release
public void release() throws SQLException- Throws:
SQLException
-
getConnection
public Connection getConnection()
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable
-
createStatement
public Statement createStatement() throws SQLException
- Throws:
SQLException
-
prepareStatement
public PreparedStatement prepareStatement(String sql) throws SQLException
- Throws:
SQLException
-
commit
public void commit() throws SQLException- Throws:
SQLException
-
getMetaData
public DatabaseMetaData getMetaData() throws SQLException
- Throws:
SQLException
-
getAutoCommit
public boolean getAutoCommit() throws SQLException- Throws:
SQLException
-
setAutoCommit
public void setAutoCommit(boolean b) throws SQLException- Throws:
SQLException
-
-