|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.cache.lookup.EntityLookupCache.EntityLookupCallbackDAOAdaptor
public abstract static class EntityLookupCache.EntityLookupCallbackDAOAdaptor
Adaptor for implementations that support immutable entities. The update and delete operations
throw UnsupportedOperationException
.
Constructor Summary | |
---|---|
EntityLookupCache.EntityLookupCallbackDAOAdaptor()
|
Method Summary | |
---|---|
int |
deleteByKey(java.io.Serializable key)
Disallows the operation. |
int |
deleteByValue(java.lang.Object value)
Disallows the operation. |
org.alfresco.util.Pair |
findByValue(java.lang.Object value)
This implementation never finds a value and is backed by EntityLookupCache.EntityLookupCallbackDAOAdaptor.getValueKey(Object) returning nothing. |
java.io.Serializable |
getValueKey(java.lang.Object value)
This implementation does not find by value and is backed by EntityLookupCache.EntityLookupCallbackDAOAdaptor.findByValue(Object) returning nothing. |
int |
updateValue(java.io.Serializable key,
java.lang.Object value)
Disallows the operation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.alfresco.repo.cache.lookup.EntityLookupCache.EntityLookupCallbackDAO |
---|
createValue, findByKey |
Constructor Detail |
---|
public EntityLookupCache.EntityLookupCallbackDAOAdaptor()
Method Detail |
---|
public org.alfresco.util.Pair findByValue(java.lang.Object value)
EntityLookupCache.EntityLookupCallbackDAOAdaptor.getValueKey(Object)
returning nothing.
findByValue
in interface EntityLookupCache.EntityLookupCallbackDAO
value
- the value (business object) used to identify the entity (null allowed).
public java.io.Serializable getValueKey(java.lang.Object value)
EntityLookupCache.EntityLookupCallbackDAOAdaptor.findByValue(Object)
returning nothing.
getValueKey
in interface EntityLookupCache.EntityLookupCallbackDAO
value
- the full value being keyed (never null)
public int updateValue(java.io.Serializable key, java.lang.Object value)
updateValue
in interface EntityLookupCache.EntityLookupCallbackDAO
key
- the existing key (ID) used to identify the entity (never null)value
- the new value
java.lang.UnsupportedOperationException
- alwayspublic int deleteByKey(java.io.Serializable key)
deleteByKey
in interface EntityLookupCache.EntityLookupCallbackDAO
key
- the key (ID) used to identify the entity (never null)
java.lang.UnsupportedOperationException
- alwayspublic int deleteByValue(java.lang.Object value)
deleteByValue
in interface EntityLookupCache.EntityLookupCallbackDAO
value
- the value (business object) used to identify the enitity (null allowed)
java.lang.UnsupportedOperationException
- always
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |