Package ru.curs.celesta.dbutils.stmt
Class PreparedStmtHolder
- java.lang.Object
-
- ru.curs.celesta.dbutils.stmt.PreparedStmtHolder
-
- Direct Known Subclasses:
MaskedStatementHolder
public abstract class PreparedStmtHolder extends Object
A container for parameterized prepared statement.
-
-
Constructor Summary
Constructors Constructor Description PreparedStmtHolder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Closes the statement.PreparedStatement
getStatement(Object[] rec, int recversion)
Returns prepared statement with refreshed parameters.boolean
isStmtValid()
Whether statement is valid.
-
-
-
Method Detail
-
isStmtValid
public boolean isStmtValid()
Whether statement is valid.
-
getStatement
public PreparedStatement getStatement(Object[] rec, int recversion)
Returns prepared statement with refreshed parameters.- Parameters:
rec
- Array of record fields' values.recversion
- record version
-
close
public void close()
Closes the statement.
-
-