|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--util.sql.PreparedStatementFactory
Class that builds prepared statements using only a connection and an array of objects.
Constructor Summary | |
PreparedStatementFactory()
|
Method Summary | |
static void |
buildStatement(java.sql.PreparedStatement stmnt,
java.lang.Object[] values)
Given a prepared statment, set the given values in their corresponding statement indices. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PreparedStatementFactory()
Method Detail |
public static void buildStatement(java.sql.PreparedStatement stmnt, java.lang.Object[] values) throws java.lang.IllegalArgumentException, java.lang.IllegalStateException
stmnt
- the statement to buildvalues
- the values to put into the statementjava.lang.IllegalArgumentException
- when a null values array is passed injava.lang.IllegalStateException
- thrown when any SQLException occurs during the populating of the statement
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |