org.ujorm.implementation.orm
Class RelationToMany<UJO extends ExtendedOrmUjo,ITEM extends ExtendedOrmUjo>

java.lang.Object
  extended by org.ujorm.extensions.Property<UJO,UjoIterator<ITEM>>
      extended by org.ujorm.implementation.orm.RelationToMany<UJO,ITEM>
All Implemented Interfaces:
java.lang.CharSequence, java.lang.Comparable<UjoProperty>, CriterionProvider<UJO,UjoIterator<ITEM>>, UjoProperty<UJO,UjoIterator<ITEM>>

public class RelationToMany<UJO extends ExtendedOrmUjo,ITEM extends ExtendedOrmUjo>
extends Property<UJO,UjoIterator<ITEM>>

The relation 1:N to another UJO type items

Author:
Pavel Ponec
See Also:
UjoIterator

Constructor Summary
RelationToMany(java.lang.String name, java.lang.Class<ITEM> itemType)
          Constructor
RelationToMany(java.lang.String name, java.lang.Class<ITEM> itemType, int index, boolean lock)
          Constructor
 
Method Summary
 java.lang.Class<ITEM> getItemType()
          Returns ItemType
 
Methods inherited from class org.ujorm.extensions.Property
_nextSequence, add, compareTo, copy, descending, descending, equals, equalsName, forAll, forNone, forSql, getDefault, getIndex, getName, getType, getValue, charAt, checkAttribs, init, isAscending, isDefault, isDirect, isTypeOf, length, newInstance, newInstance, newInstance, newInstance, newInstance, newInstance, newInstance, of, setValue, setValueFromDefault, subSequence, toString, where, where, whereEq, whereEq, whereGe, whereGt, whereIn, whereIn, whereLe, whereLt, whereNeq, whereNotIn, whereNotIn, whereNotNull, whereNull, writeDefault
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RelationToMany

public RelationToMany(java.lang.String name,
                      java.lang.Class<ITEM> itemType)
Constructor


RelationToMany

public RelationToMany(java.lang.String name,
                      java.lang.Class<ITEM> itemType,
                      int index,
                      boolean lock)
Constructor

Parameters:
name - Property name.
itemType - The type of item.
index - An property order
Method Detail

getItemType

public java.lang.Class<ITEM> getItemType()
Returns ItemType



Copyright © 2007-2012 PPonec