|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jenkov.mrpersister.impl.mapping.ObjectMappingCache
public class ObjectMappingCache
Field Summary | |
---|---|
protected java.util.Map |
objectMappings
|
Constructor Summary | |
---|---|
ObjectMappingCache()
|
Method Summary | |
---|---|
void |
clear()
Removes all object mappings stored in this cache. |
boolean |
containsObjectMapping(java.lang.Object mappingKey)
Returns true if this cache instance contains an object method for the given mappingKey. |
IObjectMapping |
getObjectMapping(java.lang.Object mappingKey)
Returns the object-to-database method for the given method key, stored in this object method cache. |
void |
removeObjectMapping(java.lang.Object mappingKey)
Removes the object method stored in this cache for the given method key. |
int |
size()
Returns the number of object mappings stored in this cache. |
void |
storeObjectMapping(java.lang.Object mappingKey,
IObjectMapping mapping)
Stores the given object-to-database method in this object method cache, under the given 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 objectMappings
Constructor Detail |
---|
public ObjectMappingCache()
Method Detail |
---|
public boolean containsObjectMapping(java.lang.Object mappingKey)
IObjectMappingCache
containsObjectMapping
in interface IObjectMappingCache
mappingKey
- The method key to check if the cache contains an object method for.
public IObjectMapping getObjectMapping(java.lang.Object mappingKey)
IObjectMappingCache
getObjectMapping
in interface IObjectMappingCache
public void storeObjectMapping(java.lang.Object mappingKey, IObjectMapping mapping)
IObjectMappingCache
storeObjectMapping
in interface IObjectMappingCache
mappingKey
- The method key to store this object method under.mapping
- The object method to store.public void removeObjectMapping(java.lang.Object mappingKey)
IObjectMappingCache
removeObjectMapping
in interface IObjectMappingCache
mappingKey
- The key to give this particular object method.public void clear()
IObjectMappingCache
clear
in interface IObjectMappingCache
public int size()
IObjectMappingCache
size
in interface IObjectMappingCache
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |