org.ujoframework.implementation.orm
Class RelationToMany<UJO extends OrmTable,ITEM extends OrmTable>

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

public class RelationToMany<UJO extends OrmTable,ITEM extends OrmTable>
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.ujoframework.extensions.Property
_nextSequence, add, compareTo, copy, descending, equals, 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, 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 © 2010. All Rights Reserved.