|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jlf.dataMap.Relationship
This class
DataMappedObject
,
RelationshipDescriptor
,
Serialized FormField Summary | |
protected boolean |
hasRelationshipBeenRead
Holds a flag for relationships that are not read inline, to see if the relationship that is read in a separate query has already been populated. |
protected java.util.Vector |
relatedObjects
Holds the DataMappedObject |
Constructor Summary | |
Relationship(RelationshipDescriptor rd,
DataMappedObject primaryObject)
Initial constructor for the relationship. |
Method Summary | |
void |
addRelatedObject(DataMappedObject bo)
Adds a DataMappedObject to the relationships vector
so it can later be retrieved. |
protected void |
checkAndPerformLazyRead()
Checks to see if a lazy read of the relationship is required. |
void |
cleanupAfterWrite(DataMapper dataMapper)
Performs cleanup work after a write is committed to the database (for example, resets attribute values). |
java.util.Vector |
getDeletedRelatedObjects()
This is the accessor to the relatedObjects Vector when the relationship cardinality on the relatedObjects side is 0..*. |
protected DataMappedObject |
getNewRoleBInstance()
Helper method to returns a new (and blank) data mapped object of the Role B side of the relationship appropriate for reading/adding to the relationship. |
DataMappedObject |
getPrimaryObject()
Returns the primary object (Role A object) of the relationship. |
DataMappedObject |
getRelatedObject()
This is the accessor to the relatedObjects Vector when the relationship cardinality on the relatedObjects side is 0..1 or 1. |
java.util.Vector |
getRelatedObjects()
This is the accessor to the relatedObjects Vector when the relationship cardinality on the relatedObjects side is 0..*. |
java.lang.Class |
getRelationshipClass()
Return the relationship class on the role B side of the relationship. |
java.lang.String |
getRelationshipName()
Return the relationship name. |
java.util.Vector |
getUndeletedRelatedObjects()
This is the accessor to the relatedObjects Vector when the relationship cardinality on the relatedObjects side is 0..*. |
boolean |
hasRelationshipBeenRead()
Returns the flag telling whether the relationship has been read. |
void |
populateFromDataArray(DataArray dataArray)
Reads as many attributes as it can from the DataArray for an object of the type on the role B side of the relationship. |
void |
readRelationshipNow()
Reads the relationship from the default data location for the primary object. |
void |
readRelationshipNow(DataMapper dataMapper)
Reads the relationship from the data mapper specified. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected boolean hasRelationshipBeenRead
protected java.util.Vector relatedObjects
DataMappedObject objects on the far (role B)
side of the relationship.
Constructor Detail |
public Relationship(RelationshipDescriptor rd, DataMappedObject primaryObject)
Method Detail |
public java.lang.String getRelationshipName()
public java.lang.Class getRelationshipClass()
public DataMappedObject getPrimaryObject()
protected DataMappedObject getNewRoleBInstance()
public boolean hasRelationshipBeenRead()
public void readRelationshipNow(DataMapper dataMapper)
public void readRelationshipNow()
protected void checkAndPerformLazyRead()
public java.util.Vector getRelatedObjects()
public java.util.Vector getUndeletedRelatedObjects()
public java.util.Vector getDeletedRelatedObjects()
public DataMappedObject getRelatedObject()
DataMappedObject
in the relatedObjects vector if any are present.public void addRelatedObject(DataMappedObject bo)
DataMappedObject to the relationships vector
so it can later be retrieved.
public void populateFromDataArray(DataArray dataArray)
public void cleanupAfterWrite(DataMapper dataMapper)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |