Package org.cristalise.kernel.utils
Class DescriptionObjectCache<D extends DescriptionObject>
java.lang.Object
org.cristalise.kernel.utils.DescriptionObjectCache<D>
- Direct Known Subclasses:
ActDefCache,AgentDescCache,DomainContextCache,ItemDescCache,PropertyDescriptionCache,QueryCache,RoleDescCache,SchemaCache,ScriptCache,StateMachineCache
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract DbuildObject(String name, int version, ItemPath path, String data) get(String id, int version, TransactionKey transactionKey) protected abstract Stringprotected abstract Stringprotected abstract Stringvoidvoidinvalidate(String uuid, String name, int version) voidinvalidate(ItemPath ip, int version) protected booleanisBootResource(String filename, String resName) protected DloadObject(ItemProxy proxy, int version, TransactionKey transactionKey)
-
Constructor Details
-
DescriptionObjectCache
public DescriptionObjectCache()
-
-
Method Details
-
isBootResource
- Parameters:
filename-resName-- Returns:
-
get
- Parameters:
id- Name or UUID or DomainPath of the resource Itemversion- of the resource Item- Returns:
- Throws:
ObjectNotFoundExceptionInvalidDataException
-
get
public D get(String id, int version, TransactionKey transactionKey) throws ObjectNotFoundException, InvalidDataException - Parameters:
id- could be either the Name or UUID or DomainPath of the resource Itemversion- the Version of the resource ItemtransactionKey-- Returns:
- Throws:
ObjectNotFoundExceptionInvalidDataException
-
getTypeCode
-
getSchemaName
-
getTypeRoot
-
buildObject
protected abstract D buildObject(String name, int version, ItemPath path, String data) throws InvalidDataException - Parameters:
name-version-path-data-- Returns:
- Throws:
InvalidDataException
-
loadObject
protected D loadObject(ItemProxy proxy, int version, TransactionKey transactionKey) throws ObjectNotFoundException, InvalidDataException - Parameters:
proxy-version-transactionKey-name-- Returns:
- Throws:
ObjectNotFoundExceptionInvalidDataException
-
invalidate
-
invalidate
-
invalidate
public void invalidate()
-