com.scooterframework.orm.activerecord
Class HasOneRelation

java.lang.Object
  extended by com.scooterframework.orm.activerecord.Relation
      extended by com.scooterframework.orm.activerecord.HasOneRelation

public class HasOneRelation
extends Relation

HasOneRelation class has information about has-one relationship between objects. For example, A has one B. In has-one relation, foreign key is held by class B.


Field Summary
 
Fields inherited from class com.scooterframework.orm.activerecord.Relation
associationId, BELONGS_TO_TYPE, CASCADE_DELETE, CASCADE_NONE, CASCADE_NULLIFY, CASCADE_SIMPLY_DELETE, HAS_MANY_THROUGH_TYPE, HAS_MANY_TYPE, HAS_ONE_TYPE, key, mapping, ownerClass, ownerModel, properties, REVERSE_RELATION, targetClass, targetModel, type
 
Constructor Summary
HasOneRelation(java.lang.Class<? extends ActiveRecord> endA, java.lang.String associationId, java.lang.String targetModel)
           
 
Method Summary
 
Methods inherited from class com.scooterframework.orm.activerecord.Relation
allowCascade, allowCascadeDelete, allowCascadeNone, allowCascadeNullify, allowCascadeSimplyDelete, getAssociation, getConditionsString, getConditionsString, getLeftSideMappingItems, getMapping, getMappingMap, getOwnerClass, getOwnerModel, getProperties, getRelationKey, getRelationType, getReverseMapping, getReverseMappingMap, getReverseRelation, getReverseRelationName, getReverseRelationType, getRightSideMappingItems, getTargetClass, getTargetModel, setProperties, setRelationKey, setTargetClass, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HasOneRelation

public HasOneRelation(java.lang.Class<? extends ActiveRecord> endA,
                      java.lang.String associationId,
                      java.lang.String targetModel)