|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISqlCache
This interface represents all functions made available by the SQL caches in Mr. Persister. The responsibility of the SQL cache is to keep generated SQL strings in memory so they don't have to be regenerated everytime they are needed.
Method Summary | |
---|---|
void |
clear()
Removes all SQL statements stored in this cache. |
boolean |
containsStatement(java.lang.Object mappingKey)
Returns true if the SQL cache contains a statement for the given object method key. |
java.lang.String |
getStatement(java.lang.Object mappingKey)
Returns the SQL statement for this object method key. |
void |
removeStatement(java.lang.Object mappingKey)
Removes the SQL statement stored for this object method key. |
int |
size()
Returns the number of SQL statements stored in this cache. |
void |
storeStatement(java.lang.Object mappingKey,
java.lang.String insertStatement)
Stores the given string as an SQL statement for the given object method key. |
Method Detail |
---|
boolean containsStatement(java.lang.Object mappingKey)
mappingKey
- The object method key to check if the SQL cache contains a statement for.
java.lang.String getStatement(java.lang.Object mappingKey)
mappingKey
- The object method key to get the SQL statement for.
void storeStatement(java.lang.Object mappingKey, java.lang.String insertStatement)
mappingKey
- The object method key to store the statement for.insertStatement
- The SQL statement to store.void removeStatement(java.lang.Object mappingKey)
mappingKey
- The object method to remove the statement for.void clear()
int size()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |