|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.6.0) E13403-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.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 HashStructureAdapter
public Element getSource()
getSource
in interface Dependable
public abstract boolean cache()
protected abstract Element getSourceImpl()
public java.util.Iterator getDependencies()
Dependable
getDependencies
in interface Dependable
public Folder getSourceOwner()
getSourceOwner
in interface Dependable
protected 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 LinkedDirtyable
public void unlinkContainingDirtyable(Dirtyable dirtyable)
unlinkContainingDirtyable
in interface LinkedDirtyable
public void linkEmbeddedDirtyable(Dirtyable dirtyable)
linkEmbeddedDirtyable
in interface LinkedDirtyable
public void unlinkEmbeddedDirtyable(Dirtyable dirtyable)
unlinkEmbeddedDirtyable
in interface LinkedDirtyable
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public java.lang.String toString()
toString
in class java.lang.Object
public void setOwner(Dirtyable owner)
SubDirtyable
SubDirtyable
implementation will be persisted.
setOwner
in interface SubDirtyable
owner
- The Dirtyable
object in which this
SubDirtyable
will be saved.public boolean isDirty()
Dirtyable
isDirty
in interface Dirtyable
true
if the data in the object has been modified.public void markDirty(boolean dirty)
Dirtyable
markDirty(...)
instead of
setDirty(...)
so that the JavaBeans
Introspector
will not
mistakenly identify "dirty" as a JavaBean property.
markDirty
in interface Dirtyable
dirty
- 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 Copyable
copyTo
in class HashStructureAdapter
target
- 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.6.0) E13403-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |