The cache ensures that the class of the target sps is loaded if the sps is found in cache. This is ensured by calling loadGeneratedClass() on the sps when it is added to the cache. Each subsequent user of the sps cache will do its own load/unload on the class. Because the class manager/loader maintains reference counts on the classes it is handling, the user load/unload will just increment/decrement the use count. Only when the sps is uncached will it be unloaded.
| Modifier and Type | Field and Description |
|---|---|
| private final DataDictionaryImpl | |
| private TableKey | |
| private SPSDescriptor |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | clean(boolean
True if the object will be removed forRemove)Implements org. Clean the object. |
| public void | clearIdentity()
Implements org. Put the object into the No Identity state. |
| public Cacheable | createIdentity(Object
The handle on the cacheable key, Object Creation details createParameter)Implements org. Create a new item. |
| public Object | getIdentity()
Implements org. Get the identity of this object. |
| public SPSDescriptor | |
| public boolean | isDirty()
Implements org. Returns true if the object is dirty. |
| public Cacheable | setIdentity(Object
The handle on the cacheable key)Implements org. Set the identity of the object. |
| dd | back to summary |
|---|---|
| private final DataDictionaryImpl dd | |
| identity | back to summary |
|---|---|
| private TableKey identity | |
| spsd | back to summary |
|---|---|
| private SPSDescriptor spsd | |
| SPSNameCacheable | back to summary |
|---|---|
| pack-priv SPSNameCacheable(DataDictionaryImpl dd) | |
| clean | back to summary |
|---|---|
| public void clean(boolean forRemove) Implements org. Doc from org. Clean the object.
It is up to the object to ensure synchronization of the isDirty()
and clean() method calls.
| |
| clearIdentity | back to summary |
|---|---|
| public void clearIdentity() Implements org. Doc from org. Put the object into the No Identity state.
| |
| createIdentity | back to summary |
|---|---|
| public Cacheable createIdentity(Object key, Object createParameter) Implements org. Doc from org. Create a new item.
Create a new item and set the identity of the object to represent it.
The object will be in the No Identity state,
ie. it will have just been created or clearIdentity() was just called.
| |
| getIdentity | back to summary |
|---|---|
| public Object getIdentity() Implements org. Doc from org. Get the identity of this object.
| |
| getSPSDescriptor | back to summary |
|---|---|
| public SPSDescriptor getSPSDescriptor() Get the sps descriptor that is associated with this Cacheable | |
| isDirty | back to summary |
|---|---|
| public boolean isDirty() Implements org. Doc from org. Returns true if the object is dirty.
May be called when the object is kept or unkept.
| |
| setIdentity | back to summary |
|---|---|
| public Cacheable setIdentity(Object key) throws StandardException Implements org. Doc from org. Set the identity of the object.
Set the identity of the object to represent an item that already exists,
e.g. an existing container.
The object will be in the No Identity state,
ie. it will have just been created or clearIdentity() was just called.
| |