public abstract class AbstractHashDependable extends HashStructureAdapter implements Dependable, LinkedDirtyable, java.lang.Comparable, Copyable, java.lang.Cloneable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ADAPTER_CLASS_KEY |
static java.lang.String |
OWNER_URL_KEY |
static java.lang.String |
SOURCE_URL_KEY |
_hash| Constructor and Description |
|---|
AbstractHashDependable() |
AbstractHashDependable(HashStructure hash) |
AbstractHashDependable(HashStructure hash,
java.lang.Class clazz)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
cache()
Cache the target, (source and owner) of this Dependable.
|
AbstractHashDependable |
clone()
Clones the HashDependable by using the default (no-arg) constructor.
|
int |
compareTo(java.lang.Object o) |
java.lang.Object |
copyTo(java.lang.Object target)
Copy support.
|
protected void |
copyToImpl(AbstractHashDependable copy)
Default implementation copies only the hash structure.
|
java.util.Iterator |
getDependencies()
Returns all other dependables this dependable depends on.
|
HashStructure |
getHashStructure()
Returns the HashStructure this adapter is adapting.
|
Element |
getSource()
Read persisted pointer-data and get the actual source.
|
protected abstract Element |
getSourceImpl()
Return the Source.
|
Folder |
getSourceOwner()
Read persisted pointer-data and get actual source owner.
|
protected abstract Folder |
getSourceOwnerImpl() |
boolean |
isDirty()
True if the data in the object has been modified.
|
protected boolean |
isReload() |
void |
linkContainingDirtyable(Dirtyable dirtyable) |
void |
linkEmbeddedDirtyable(Dirtyable dirtyable) |
void |
markDirty(boolean dirty)
Marks the data with the specified dirty state.
|
protected void |
maybeSetReload(java.lang.Object first,
java.lang.Object second) |
void |
setOwner(Dirtyable owner)
This method should be called to set the document in which a
SubDirtyable implementation will be persisted. |
protected void |
setReload(boolean value) |
java.lang.String |
toString() |
void |
unlinkContainingDirtyable(Dirtyable dirtyable) |
void |
unlinkEmbeddedDirtyable(Dirtyable dirtyable) |
addStructureChangeListener, containsKey, copyToImpl, equals, equalsImpl, findOrCreate, forcedCopyTo, removeStructureChangeListener, useObjectEqualspublic static final java.lang.String ADAPTER_CLASS_KEY
public static final java.lang.String SOURCE_URL_KEY
public static final java.lang.String OWNER_URL_KEY
public AbstractHashDependable()
public AbstractHashDependable(HashStructure hash)
@Deprecated public AbstractHashDependable(HashStructure hash, java.lang.Class clazz)
public HashStructure getHashStructure()
HashStructureAdaptergetHashStructure in class HashStructureAdapterpublic Element getSource()
getSource in interface Dependablepublic abstract boolean cache()
protected abstract Element getSourceImpl()
public java.util.Iterator getDependencies()
DependablegetDependencies in interface Dependablepublic Folder getSourceOwner()
getSourceOwner in interface Dependableprotected abstract Folder getSourceOwnerImpl()
protected void setReload(boolean value)
protected boolean isReload()
protected void maybeSetReload(java.lang.Object first,
java.lang.Object second)
public void linkContainingDirtyable(Dirtyable dirtyable)
linkContainingDirtyable in interface LinkedDirtyablepublic void unlinkContainingDirtyable(Dirtyable dirtyable)
unlinkContainingDirtyable in interface LinkedDirtyablepublic void linkEmbeddedDirtyable(Dirtyable dirtyable)
linkEmbeddedDirtyable in interface LinkedDirtyablepublic void unlinkEmbeddedDirtyable(Dirtyable dirtyable)
unlinkEmbeddedDirtyable in interface LinkedDirtyablepublic int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparablepublic java.lang.String toString()
toString in class java.lang.Objectpublic void setOwner(Dirtyable owner)
SubDirtyableSubDirtyable implementation will be persisted.setOwner in interface SubDirtyableowner - The Dirtyable object in which this
SubDirtyable will be saved.public boolean isDirty()
Dirtyablepublic void markDirty(boolean dirty)
DirtyablemarkDirty(...) instead of
setDirty(...) so that the JavaBeans
Introspector will not
mistakenly identify "dirty" as a JavaBean property.public java.lang.Object copyTo(java.lang.Object target)
HashStructureAdaptercopyTo in interface CopyablecopyTo in class HashStructureAdaptertarget - The target object to which the state of
this object should be copied. If target
is null, then the copyTo method will
return a new instance of this class.this
object was copied. If the target was
non-null, then the return value is the same as the
target object that was passed in; otherwise, the
return value is a new instance of this class.protected void copyToImpl(AbstractHashDependable copy)
copy - public AbstractHashDependable clone()
clone in class java.lang.Object