Package de.dfki.sds.aticsqlite
Class PooledPreparedStatement
java.lang.Object
de.dfki.sds.aticsqlite.PooledPreparedStatement
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes ResultSets and PreparedStatement.voidCloses all tracked ResultSets.intReturns the number of currently open ResultSets.Returns the wrapped PreparedStatement.booleanisClosed()Returns true if the underlying statement has already been closed.booleanReturns true if no ResultSet is active and the statement may safely be reused.voidRegisters a ResultSet as active.toString()voidUnregisters a ResultSet after close().
-
Constructor Details
-
PooledPreparedStatement
-
-
Method Details
-
getPreparedStatement
Returns the wrapped PreparedStatement. -
registerResultSet
Registers a ResultSet as active. -
unregisterResultSet
Unregisters a ResultSet after close(). -
isReusable
public boolean isReusable()Returns true if no ResultSet is active and the statement may safely be reused. -
getOpenResultSetCount
public int getOpenResultSetCount()Returns the number of currently open ResultSets. -
isClosed
Returns true if the underlying statement has already been closed.- Throws:
SQLException
-
closeOpenResultSets
public void closeOpenResultSets()Closes all tracked ResultSets. -
close
public void close()Closes ResultSets and PreparedStatement. -
toString
-