public abstract static class EntityLookupCache.EntityLookupCallbackDAOAdaptor<K2 extends Serializable,V2,VK2 extends Serializable> extends Object implements EntityLookupCache.EntityLookupCallbackDAO<K2,V2,VK2>
UnsupportedOperationException
.Constructor and Description |
---|
EntityLookupCallbackDAOAdaptor() |
Modifier and Type | Method and Description |
---|---|
int |
deleteByKey(K2 key)
Disallows the operation.
|
int |
deleteByValue(V2 value)
Disallows the operation.
|
org.alfresco.util.Pair<K2,V2> |
findByValue(V2 value)
This implementation never finds a value and is backed by
getValueKey(Object) returning nothing. |
VK2 |
getValueKey(V2 value)
This implementation does not find by value and is backed by
findByValue(Object) returning nothing. |
int |
updateValue(K2 key,
V2 value)
Disallows the operation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createValue, findByKey
public org.alfresco.util.Pair<K2,V2> findByValue(V2 value)
getValueKey(Object)
returning nothing.findByValue
in interface EntityLookupCache.EntityLookupCallbackDAO<K2 extends Serializable,V2,VK2 extends Serializable>
value
- the value (business object) used to identify the entity (null allowed).public VK2 getValueKey(V2 value)
findByValue(Object)
returning nothing.getValueKey
in interface EntityLookupCache.EntityLookupCallbackDAO<K2 extends Serializable,V2,VK2 extends Serializable>
value
- the full value being keyed (never null)public int updateValue(K2 key, V2 value)
updateValue
in interface EntityLookupCache.EntityLookupCallbackDAO<K2 extends Serializable,V2,VK2 extends Serializable>
key
- the existing key (ID) used to identify the entity (never null)value
- the new valueUnsupportedOperationException
- alwayspublic int deleteByKey(K2 key)
deleteByKey
in interface EntityLookupCache.EntityLookupCallbackDAO<K2 extends Serializable,V2,VK2 extends Serializable>
key
- the key (ID) used to identify the entity (never null)UnsupportedOperationException
- alwayspublic int deleteByValue(V2 value)
deleteByValue
in interface EntityLookupCache.EntityLookupCallbackDAO<K2 extends Serializable,V2,VK2 extends Serializable>
value
- the value (business object) used to identify the enitity (null allowed)UnsupportedOperationException
- alwaysCopyright © 2005–2017 Alfresco Software. All rights reserved.