com.scooterframework.orm.activerecord
Class HasManyRelation

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

public class HasManyRelation
extends Relation

HasManyRelation class has information about has-many relationship between objects. For example, A has many B. In has-many 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
HasManyRelation(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

HasManyRelation

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