|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PreparedStatementCache
Interface enabling access to SQL statements from some source.
| Method Summary | |
|---|---|
java.sql.PreparedStatement |
getPreparedSQLStatement(java.lang.String name)
Retrieve a prepared statement with the given name |
java.sql.PreparedStatement |
getPreparedSQLStatement(java.lang.String name,
java.lang.String[] templateParams)
Retrieve a prepared statement with the given name and arguments |
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql)
Prepare the given string into a prepared statement |
void |
returnPreparedSQLStatement(java.sql.PreparedStatement ps)
Return the prepared statement to the cache |
| Method Detail |
|---|
java.sql.PreparedStatement getPreparedSQLStatement(java.lang.String name)
throws java.sql.SQLException
name - name of the prepared statement
java.sql.SQLException
java.sql.PreparedStatement getPreparedSQLStatement(java.lang.String name,
java.lang.String[] templateParams)
throws java.sql.SQLException
name - name of the prepared statementtemplateParams - parameters to the prepared statements template
java.sql.SQLException
void returnPreparedSQLStatement(java.sql.PreparedStatement ps)
throws java.sql.SQLException
ps - prepared statement to return
java.sql.SQLException
java.sql.PreparedStatement prepareStatement(java.lang.String sql)
throws java.sql.SQLException
sql - String to prepare into a prepared statement
java.sql.SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||