|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.impl.store.access.CacheableConglomerate
class CacheableConglomerate
The CacheableConglomerate implements a single item in the cache used by the Conglomerate directory to cache Conglomerates. It is simply a wrapper object for the conglomid and Conglomerate object that is read from the Conglomerate Conglomerate. It is a wrapper rather than extending the conglomerate implementations because we want to cache all conglomerate implementatations: (ie. Heap, B2I, ...). References to the Conglomerate objects cached by this wrapper will be handed out to callers. When this this object goes out of cache callers may still have references to the Conglomerate objects, which we are counting on java to garbage collect. The Conglomerate Objects never change after they are created.
Field Summary | |
---|---|
private Conglomerate |
conglom
|
private java.lang.Long |
conglomid
|
Constructor Summary | |
---|---|
CacheableConglomerate()
|
Method Summary | |
---|---|
void |
clean(boolean forRemove)
Clean the object. |
void |
clearIdentity()
Put the object into the No Identity state. |
Cacheable |
createIdentity(java.lang.Object key,
java.lang.Object createParameter)
Create a new item and set the identity of the object to represent it. |
protected Conglomerate |
getConglom()
|
java.lang.Object |
getIdentity()
Get the identity of this object. |
boolean |
isDirty()
Returns true of the object is dirty. |
Cacheable |
setIdentity(java.lang.Object key)
Set the identity of the object to represent an item that already exists, e.g. an existing container. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.Long conglomid
private Conglomerate conglom
Constructor Detail |
---|
CacheableConglomerate()
Method Detail |
---|
protected Conglomerate getConglom()
public Cacheable setIdentity(java.lang.Object key) throws StandardException
setIdentity
in interface Cacheable
StandardException
- Standard Derby PolicyCacheManager.find(java.lang.Object)
public Cacheable createIdentity(java.lang.Object key, java.lang.Object createParameter) throws StandardException
createIdentity
in interface Cacheable
StandardException
- If forCreate is true and the object cannot
be created.CacheManager.create(java.lang.Object, java.lang.Object)
public void clearIdentity()
clearIdentity
in interface Cacheable
public java.lang.Object getIdentity()
getIdentity
in interface Cacheable
public boolean isDirty()
isDirty
in interface Cacheable
public void clean(boolean forRemove) throws StandardException
clean
in interface Cacheable
StandardException
- Standard Derby error policy.
|
Built on Thu 2011-03-10 11:54:14+0000, from revision ??? | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |