|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.oreodata.ref.RecordProxy
An object that implements the Record interface by delegating calls to an underlying record.
Constructor Summary | |
RecordProxy()
|
Method Summary | |
void |
clearFields()
reset the fields to their default state The record must be in a mutable state. |
boolean |
equals(java.lang.Object o)
|
void |
freeze()
make this record immutable. |
java.lang.Object |
get(FieldDescriptor field)
Low-level method to query the value of a field in a Record. |
java.lang.Object |
get(java.lang.String fieldName)
Method to get the value of a field by name. |
java.util.List |
getChildren()
|
RecordDescriptor |
getMetadata()
|
Record |
getMutableCopy()
create a clone. |
Record |
getParent()
|
java.lang.Object |
getPrimaryKey()
Retrieve the value of the record's primary key. |
java.lang.String |
getType()
|
boolean |
hasChildren()
Does this record have children? This should return the same as (!getChildren().isEmpty()) would. |
boolean |
isImmutable()
Have the fields all been set? Once a record is put in a DataSource, its fields are immutable. |
boolean |
isRootElement()
Does this record have a parent? This should return the same as (getParent() == null) but it is worth having a separate method, since, with some schemes, it could be more efficient to ask whether there is a root element or not, as opposed to actually fishing it out. |
boolean |
isStale()
Has this record been deleted or superseded in the associated DataSource? |
void |
set(FieldDescriptor field,
java.lang.Object o)
Low-level method to set an individual field value |
void |
set(java.lang.String fieldName,
java.lang.Object o)
Method to set the value of a field by name. |
void |
setMetadata(RecordDescriptor desc)
Method only used internally. |
void |
setPrimaryKey(java.lang.Object o)
set the value of this record's primary key. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.oreodata.ref.RecordPointer |
getUnderlyingRecord, wipeCachedInfo |
Constructor Detail |
public RecordProxy()
Method Detail |
public java.lang.Object get(java.lang.String fieldName)
Record
get
in interface Record
fieldName
- public java.lang.Object get(FieldDescriptor field)
Record
get
in interface Record
field
- to query.
public void set(java.lang.String fieldName, java.lang.Object o)
Record
set
in interface Record
fieldName
- the name of the field to set.public void set(FieldDescriptor field, java.lang.Object o)
Record
set
in interface Record
field
- to set.o
- Object wrapping the valuepublic void clearFields()
Record
clearFields
in interface Record
public RecordDescriptor getMetadata()
getMetadata
in interface Record
RecordDescriptor
public Record getMutableCopy()
Record
getMutableCopy
in interface Record
public boolean isStale()
Record
isStale
in interface Record
public java.lang.Object getPrimaryKey()
Record
getPrimaryKey
in interface Record
public void setPrimaryKey(java.lang.Object o)
Record
setPrimaryKey
in interface Record
public boolean isImmutable()
Record
isImmutable
in interface Record
public java.lang.String getType()
getType
in interface Record
public java.lang.String toString()
toString
in class java.lang.Object
public void freeze() throws DataException
Record
freeze
in interface Record
DataException
public void setMetadata(RecordDescriptor desc)
Record
setMetadata
in interface Record
public Record getParent() throws MissingContextException
getParent
in interface Record
MissingContextException
public java.util.List getChildren() throws MissingContextException
getChildren
in interface Record
MissingContextException
public boolean isRootElement() throws MissingContextException
Record
isRootElement
in interface Record
MissingContextException
public boolean hasChildren() throws MissingContextException
Record
hasChildren
in interface Record
MissingContextException
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |