|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.javatools.data.HashStructureAdapter
oracle.jdeveloper.deploy.dt.AbstractHashDependable
public abstract class AbstractHashDependable
Base class for creating Dependable(s). Using a HashStructure for storage is necessary in order to be able to persist the Dependable in the Project or Workspace without pulling in the entire HashStructure to which the Dependable points.
| Field Summary | |
|---|---|
static java.lang.String |
ADAPTER_CLASS_KEY
|
static java.lang.String |
OWNER_URL_KEY
|
static java.lang.String |
SOURCE_URL_KEY
|
| Fields inherited from class oracle.javatools.data.HashStructureAdapter |
|---|
_hash |
| Constructor Summary | |
|---|---|
AbstractHashDependable()
|
|
AbstractHashDependable(HashStructure hash)
|
|
AbstractHashDependable(HashStructure hash,
java.lang.Class clazz)
|
|
| Method Summary | |
|---|---|
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. |
static Dependable |
createDependable(HashStructure hash)
Creates a typed Dependable based on a HashStructure. |
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)
|
| Methods inherited from class oracle.javatools.data.HashStructureAdapter |
|---|
addStructureChangeListener, containsKey, copyToImpl, equals, equalsImpl, findOrCreate, forcedCopyTo, removeStructureChangeListener, useObjectEquals |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public 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
| Constructor Detail |
|---|
public AbstractHashDependable()
public AbstractHashDependable(HashStructure hash)
public AbstractHashDependable(HashStructure hash,
java.lang.Class clazz)
| Method Detail |
|---|
public HashStructure getHashStructure()
HashStructureAdapter
getHashStructure in class HashStructureAdapterpublic Element getSource()
getSource in interface Dependablepublic abstract boolean cache()
protected abstract Element getSourceImpl()
public java.util.Iterator getDependencies()
Dependable
getDependencies 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()
Dirtyable
isDirty in interface Dirtyabletrue if the data in the object has been modified.public void markDirty(boolean dirty)
DirtyablemarkDirty(...) instead of
setDirty(...) so that the JavaBeans
Introspector will not
mistakenly identify "dirty" as a JavaBean property.
markDirty in interface Dirtyabledirty - If true, sets the object as being
dirty; if false, sets the object as being up-to-date.public java.lang.Object copyTo(java.lang.Object target)
HashStructureAdapter
copyTo 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
public static Dependable createDependable(HashStructure hash)
throws java.lang.InstantiationException,
java.lang.ClassNotFoundException
hash -
java.lang.InstantiationException
java.lang.ClassNotFoundException
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||