@Component public class CachedCommonServiceImpl extends java.lang.Object implements ICachedCommonService
Constructor and Description |
---|
CachedCommonServiceImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(java.util.UUID ownerUuid,
java.lang.String fieldName,
java.lang.Object element)
Checks whether an object is contained within a persistent collection.
|
boolean |
containsKey(java.util.UUID ownerUuid,
java.lang.String fieldName,
java.lang.Object key)
Checks whether an index object exists within a persistent collection
(usually a map)
|
boolean |
containsValue(java.util.UUID ownerUuid,
java.lang.String fieldName,
java.lang.Object element)
checks whether an value object exists within a persistent collection
(usually a map)
|
eu.etaxonomy.cdm.model.common.CdmBase |
find(java.lang.Class<? extends eu.etaxonomy.cdm.model.common.CdmBase> clazz,
int id) |
java.lang.Object |
initializeCollection(java.util.UUID ownerUuid,
java.lang.String fieldName)
Initializes a collection or map.
|
static boolean |
isCacheEnabled() |
boolean |
isEmpty(java.util.UUID ownerUuid,
java.lang.String fieldName)
Checks if a collection or map is empty.
|
static void |
setCacheEnabled(boolean cacheEnabled) |
int |
size(java.util.UUID ownerUuid,
java.lang.String fieldName)
Returns the size of requested collection or map.
|
public static boolean isCacheEnabled()
public static void setCacheEnabled(boolean cacheEnabled)
public eu.etaxonomy.cdm.model.common.CdmBase find(java.lang.Class<? extends eu.etaxonomy.cdm.model.common.CdmBase> clazz, int id)
find
in interface ICachedCommonService
public java.lang.Object initializeCollection(java.util.UUID ownerUuid, java.lang.String fieldName)
ICachedCommonService
initializeCollection
in interface ICachedCommonService
ownerUuid
- uuid of owner cdm entityfieldName
- field name of collection or mappublic boolean isEmpty(java.util.UUID ownerUuid, java.lang.String fieldName)
ICachedCommonService
isEmpty
in interface ICachedCommonService
ownerUuid
- uuid of owner cdm entityfieldName
- field name of collection or mappublic int size(java.util.UUID ownerUuid, java.lang.String fieldName)
ICachedCommonService
size
in interface ICachedCommonService
ownerUuid
- uuid of owner cdm entityfieldName
- field name of collection or mappublic boolean contains(java.util.UUID ownerUuid, java.lang.String fieldName, java.lang.Object element)
ICachedCommonService
contains
in interface ICachedCommonService
ownerUuid
- uuid of owner cdm entityfieldName
- field name of collection or mapelement
- the element to check forpublic boolean containsKey(java.util.UUID ownerUuid, java.lang.String fieldName, java.lang.Object key)
ICachedCommonService
containsKey
in interface ICachedCommonService
ownerUuid
- uuid of owner cdm entityfieldName
- field name of mapkey
- the index object to look for.public boolean containsValue(java.util.UUID ownerUuid, java.lang.String fieldName, java.lang.Object element)
ICachedCommonService
containsValue
in interface ICachedCommonService
ownerUuid
- uuid of owner cdm entityfieldName
- field name of mapCopyright © 2007-2018. All Rights Reserved.