|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectpt.moredata.dao.core.SQLStatementCache
This class is responsibly for prepare SQL statemends and cache SQL prepared statements. This class is not thread safe. Company MoreData
| Constructor Summary | |
SQLStatementCache(java.sql.Connection connection)
Creates a new instance of SQLStatementCache. |
|
| Method Summary | |
java.sql.PreparedStatement |
getPreparedStatement(java.lang.String statement)
Return a prepared statement for a giveen sql statement. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SQLStatementCache(java.sql.Connection connection)
connection - A DataBase connection to prepare the sql statements.| Method Detail |
public java.sql.PreparedStatement getPreparedStatement(java.lang.String statement)
throws java.sql.SQLException
statement - The statement to be prepared.
java.sql.SQLException - If a error occurs during the preparation of the
sql statement.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||