|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.scooterframework.orm.activerecord.RecordRelation
com.scooterframework.orm.activerecord.BelongsToRecordRelation
public class BelongsToRecordRelation
BelongsToRecordRelation class represents a has-one relation instance. For example, A belongs to B. In belongs-to relation, foreign key is hold by class A. Class A is the owner of the relation.
| Field Summary |
|---|
| Fields inherited from class com.scooterframework.orm.activerecord.RecordRelation |
|---|
associationDataMap, lastUsedOptions, owner, relation |
| Constructor Summary | |
|---|---|
BelongsToRecordRelation(ActiveRecord owner,
BelongsToRelation relation)
|
|
| Method Summary | |
|---|---|
AssociatedRecord |
associatedRecord(java.lang.String options,
boolean refresh)
Find the associated record. |
protected ActiveRecord |
retrieveAssociatedData(java.lang.String options)
Retrieves associated ActiveRecord data. |
| Methods inherited from class com.scooterframework.orm.activerecord.RecordRelation |
|---|
allAssociatedRecords, allAssociatedRecords, allAssociatedRecords, allAssociatedRecords, associatedRecord, associatedRecord, associatedRecord, getAssociatedData, getFKDataMapForOther, getLastUsedOptions, getNullFKDataMapForOther, getOwner, getRelation, optionsChangedFromLastRetrieval, retrieveAssociatedData, retrieveAssociatedDataList, retrieveAssociatedDataList, setAssociatedData, setAssociatedData, setLastUsedOptions |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BelongsToRecordRelation(ActiveRecord owner,
BelongsToRelation relation)
| Method Detail |
|---|
public AssociatedRecord associatedRecord(java.lang.String options,
boolean refresh)
associatedRecord in class RecordRelationoptions - A string of options.refresh - If true, refresh data from database
protected ActiveRecord retrieveAssociatedData(java.lang.String options)
RecordRelation
retrieveAssociatedData in class RecordRelationoptions - options used in retrieving the record
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||