|
Extension SDK 10.1.3.36.73 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectoracle.javatools.db.AbstractDBObject
Provides an abstract implementation of the DBObject
interface.
| Field Summary |
| Fields inherited from interface oracle.javatools.db.DBObject |
COMMENT |
| Constructor Summary | |
protected |
AbstractDBObject()
Constructs a new instance. |
protected |
AbstractDBObject(java.lang.String name)
Constructs a new instance with the specified name. |
protected |
AbstractDBObject(java.lang.String name,
DBObjectID id)
|
| Method Summary | |
protected int |
compareToImpl(AbstractDBObject target)
|
protected void |
copyToImpl(AbstractDBObject copy)
|
protected boolean |
equalsImpl(AbstractDBObject other)
|
DBObject |
findOwnedObject(java.lang.String type,
java.lang.String name)
Final implementation uses getChildrenImpl( String type ) and searches through the contained DBObjects by name. |
DBObjectID |
getID()
Retrieves the object ID associated with this object. |
java.lang.String |
getName()
Retrieves the name of this object. |
DBObject[] |
getOwnedObjects()
Final implementation calls getChildrenImpl( String type ) with a null argument for the type. |
DBObject[] |
getOwnedObjects(java.lang.String type)
Final implementation calls getChildrenImpl( String type ) with the given type. |
protected void |
getOwnedObjectsImpl(java.util.Collection objs,
java.lang.String type)
Used by all the final children methods. |
java.util.Map |
getProperties()
Returns null if no properties are set. |
java.lang.Object |
getProperty(java.lang.String key)
Retrieves the value associated with a property. |
java.lang.Object |
getProperty(java.lang.String key,
java.lang.Object defaultValue)
Retrieves the value associated with a property. |
DBObjectID[] |
getReferenceIDs()
Final implementation that calls the internal getReferenceIDsImpl() method. |
protected void |
getReferenceIDsImpl(java.util.Collection refs)
Used by the final getReferenceID() implementation. |
int |
hashCode()
|
boolean |
replaceReferenceIDs(java.util.Map idMap)
Default implementation does nothing and returns false. |
void |
setID(DBObjectID id)
Sets the object ID associated with this object. |
void |
setName(java.lang.String name)
Sets the name of this object. |
void |
setProperties(java.util.Map properties)
Sets the map holding the property-value pairs. |
void |
setProperty(java.lang.String key,
java.lang.Object value)
Sets the value for a property. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface oracle.javatools.db.DBObject |
copyTo, getParent, getType |
| Constructor Detail |
protected AbstractDBObject()
protected AbstractDBObject(java.lang.String name)
name - a string representing the name of this object.
protected AbstractDBObject(java.lang.String name,
DBObjectID id)
| Method Detail |
protected void copyToImpl(AbstractDBObject copy)
protected boolean equalsImpl(AbstractDBObject other)
protected int compareToImpl(AbstractDBObject target)
public java.lang.String toString()
public int hashCode()
public void setName(java.lang.String name)
DBObject
setName in interface DBObjectname - a string containing the new name for this object.public java.lang.String getName()
DBObject
getName in interface DBObjectpublic void setID(DBObjectID id)
DBObject
setID in interface DBObjectid - the DBObjectID to be associated with this objectpublic DBObjectID getID()
DBObject
getID in interface DBObjectpublic java.util.Map getProperties()
getProperties in interface DynamicPropertySetpublic java.lang.Object getProperty(java.lang.String key)
DynamicPropertySet
getProperty in interface DynamicPropertySetkey - the property key for which a value is desired.
exists.
null value
if the property does not exist or is not set.
public java.lang.Object getProperty(java.lang.String key,
java.lang.Object defaultValue)
DynamicPropertySet
getProperty in interface DynamicPropertySetkey - the property key for which a value is desired.defaultValue - the value to return if no value currently
exists.
public void setProperties(java.util.Map properties)
DynamicPropertySet
setProperties in interface DynamicPropertySet
public void setProperty(java.lang.String key,
java.lang.Object value)
DynamicPropertySetnull
removes that property.
setProperty in interface DynamicPropertySetkey - the property key to setvalue - the value to setpublic final DBObject[] getOwnedObjects()
getOwnedObjects in interface DBObjectpublic final DBObject[] getOwnedObjects(java.lang.String type)
getOwnedObjects in interface DBObjecttype - the DBObject type for the children to be returned
(e.g. Column.TYPE)
public final DBObject findOwnedObject(java.lang.String type,
java.lang.String name)
findOwnedObject in interface DBObjecttype - the DBObject type for the child to be returned
(e.g. Column.TYPE)name - the name of the DBObject to be returned
protected void getOwnedObjectsImpl(java.util.Collection objs,
java.lang.String type)
type - the type to search for
public final DBObjectID[] getReferenceIDs()
getReferenceIDs in interface DBObjectprotected void getReferenceIDsImpl(java.util.Collection refs)
public boolean replaceReferenceIDs(java.util.Map idMap)
replaceReferenceIDs in interface DBObjectidMap - key = old DBObjectID, value = new DBObjectID
|
Extension SDK 10.1.3.36.73 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Copyright © 1997, 2005, Oracle.All rights reserved.