|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
The SqlStatementFactory Interface is implemented by all statement factories.
Copyright 2002 Sapient
| Method Summary | |
CallableStatement |
createCallableStatement(String sqlQueryName)
Creates a java.sql.CallableStatement based on
the configuration. |
CallableStatement |
createCallableStatement(String sqlQueryName,
Connection connection)
Creates a java.sql.CallableStatement based on
the configuration. |
PreparedStatement |
createPreparedStatement(String sqlQueryName)
Creates a java.sql.PreparedStatement based on
the configuration. |
PreparedStatement |
createPreparedStatement(String sqlQueryName,
Connection connection)
Creates a java.sql.PreparedStatement based on
the configuration. |
| Method Detail |
public PreparedStatement createPreparedStatement(String sqlQueryName)
throws StatementFactoryException
Creates a java.sql.PreparedStatement based on
the configuration.
sqlQueryName - - Specifies the query name that would
be looked up in the configuration.
StatementFactoryException - when unable to create statement.
public PreparedStatement createPreparedStatement(String sqlQueryName,
Connection connection)
throws StatementFactoryException
Creates a java.sql.PreparedStatement based on
the configuration.
sqlQueryName - - Specifies the query name that would
be looked up in the configuration.connection - - Specifies the connection to be used for
creating the statement. Useful if we need to use the same connection for
multiple queries.
StatementFactoryException - when unable to create statement.
public CallableStatement createCallableStatement(String sqlQueryName)
throws StatementFactoryException
Creates a java.sql.CallableStatement based on
the configuration.
sqlQueryName - - Specifies the query name that would
be looked up in the configuration.
StatementFactoryException - when unable to create statement.
public CallableStatement createCallableStatement(String sqlQueryName,
Connection connection)
throws StatementFactoryException
Creates a java.sql.CallableStatement based on
the configuration.
sqlQueryName - - Specifies the query name that would
be looked up in the configuration.connection - - Specifies the connection to be used for
creating the statement. Useful if we need to use the same connection for
multiple queries.
StatementFactoryException - when unable to create statement.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||