|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectaspoev.interpreter.base.MetaObject
aspoev.manager.DatabaseObject
This class is an object handle for the database. It enables the instance adapter to swap object representations without losing referential integrity within the database, i.e. all references that exist to an object within the database point to its object handle, and thus are not invalidated when the object changes via conversion.
| Field Summary | |
protected MetaObject |
contents
|
protected pJ.jasmine.ListOfObject |
relationships
|
| Fields inherited from class aspoev.interpreter.base.MetaObject |
declarationType, type |
| Fields inherited from interface pJ.jasmine.PRI |
DELETECHANGE, MODIFYCHANGE, NOCHANGE |
| Constructor Summary | |
DatabaseObject(MetaObject contents)
Creates a handle to the argument object. |
|
| Method Summary | |
void |
addRelationship(DatabaseRelationship relation)
Deprecated. |
ClassDeclarationElement |
getClassDeclaration()
Returns the class declaration for the contents of this handle. |
TypeReferenceElement |
getDeclarationType()
Returns the type of the contents of this handle. |
java.util.Collection |
getFieldNames()
Returns a collection of the names of all fields defined on this object. |
TypeReferenceElement |
getFieldType(java.lang.String fieldName)
Returns the type of the specified field. |
java.lang.Object |
getFieldValue(java.lang.String fieldName)
Gets the value of the specified field in the contents of this handle. |
TypeReferenceElement |
getType()
|
boolean |
hasField(java.lang.String fieldName)
Returns true if the contents of this handle have the specified field name. |
boolean |
removeRelationship(DatabaseRelationship relation)
Deprecated |
void |
setFieldValue(java.lang.String fieldName,
java.lang.Object value)
Sets the specified field in the contents of this handle to the specified value. |
MetaObject |
setType(TypeReferenceElement type)
|
java.lang.String |
toLongString(int level)
Returns an extended String representation of the object, indented to the specified level. |
java.lang.String |
toString()
Returns a string description of the object. |
| Methods inherited from class aspoev.interpreter.base.MetaObject |
equals, toLongString, toShortString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected pJ.jasmine.ListOfObject relationships
protected MetaObject contents
| Constructor Detail |
public DatabaseObject(MetaObject contents)
| Method Detail |
public void addRelationship(DatabaseRelationship relation)
public ClassDeclarationElement getClassDeclaration()
getClassDeclaration in class MetaObjectpublic TypeReferenceElement getDeclarationType()
public java.util.Collection getFieldNames()
MetaObject
getFieldNames in class MetaObjectpublic TypeReferenceElement getFieldType(java.lang.String fieldName)
getFieldType in class MetaObjectpublic java.lang.Object getFieldValue(java.lang.String fieldName)
getFieldValue in class MetaObjectpublic TypeReferenceElement getType()
public boolean hasField(java.lang.String fieldName)
hasField in class MetaObject
public void setFieldValue(java.lang.String fieldName,
java.lang.Object value)
setFieldValue in class MetaObjectpublic boolean removeRelationship(DatabaseRelationship relation)
public MetaObject setType(TypeReferenceElement type)
public java.lang.String toLongString(int level)
MetaObject
toLongString in class MetaObjectpublic java.lang.String toString()
MetaObject
toString in class MetaObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||