|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jenkov.mrpersister.impl.SqlCache
public class SqlCache
Field Summary | |
---|---|
protected java.util.Map |
sqlStatements
|
Constructor Summary | |
---|---|
SqlCache()
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Map sqlStatements
Constructor Detail |
---|
public SqlCache()
Method Detail |
---|
public boolean containsStatement(java.lang.Object mappingKey)
ISqlCache
containsStatement
in interface ISqlCache
mappingKey
- The object method key to check if the SQL cache contains a statement for.
public java.lang.String getStatement(java.lang.Object mappingKey)
ISqlCache
getStatement
in interface ISqlCache
mappingKey
- The object method key to get the SQL statement for.
public void storeStatement(java.lang.Object mappingKey, java.lang.String insertStatement)
ISqlCache
storeStatement
in interface ISqlCache
mappingKey
- The object method key to store the statement for.insertStatement
- The SQL statement to store.public void removeStatement(java.lang.Object mappingKey)
ISqlCache
removeStatement
in interface ISqlCache
mappingKey
- The object method to remove the statement for.public void clear()
ISqlCache
clear
in interface ISqlCache
public int size()
ISqlCache
size
in interface ISqlCache
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |