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

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

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

The relation 1:N to another UJO type items

Author:
Pavel Ponec
See Also:
UjoIterator

Field Summary
 
Fields inherited from class org.ujorm.extensions.Property
PROPERTY_SEPARATOR, UNDEFINED_INDEX
 
Constructor Summary
RelationToMany(String name)
          Constructor
RelationToMany(String name, Class<ITEM> itemType)
          Constructor
RelationToMany(String name, Class<ITEM> itemType, int index, boolean lock)
          Constructor
 
Method Summary
 UjoIterator<ITEM> of(UJO ujo)
          A shortcut for the method of(Ujo).
 
Methods inherited from class org.ujorm.extensions.AbstractCollectionProperty
getItemType, checkValidity, initItemType, isItemTypeOf
 
Methods inherited from class org.ujorm.extensions.Property
_nextRawSequence, add, compareTo, copy, descending, descending, equals, equalsName, forAll, forNone, forSql, getDefault, getDomainType, getIndex, getName, getType, getValue, charAt, checkLock, init, isAscending, isDefault, isDirect, isTypeOf, length, lock, newInstance, newInstance, newInstance, newInstance, newInstance, newInstance, newInstance, newInstance, setValue, setValueFromDefault, subSequence, toString, toStringFull, where, where, whereEq, whereEq, whereFilled, whereGe, whereGt, whereIn, whereIn, whereLe, whereLt, whereNeq, whereNotFilled, 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(String name)
Constructor

Parameters:
name - optional
itemType - optional

RelationToMany

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

Parameters:
name - optional
itemType - optional

RelationToMany

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

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

of

public UjoIterator<ITEM> of(UJO ujo)
A shortcut for the method of(Ujo). The null value is not replaced for a default one.

Specified by:
of in interface Key<UJO extends ExtendedOrmUjo,UjoIterator<ITEM extends ExtendedOrmUjo>>
Overrides:
of in class Property<UJO extends ExtendedOrmUjo,UjoIterator<ITEM extends ExtendedOrmUjo>>
See Also:
Property.of(Ujo)


Copyright © 2012. All Rights Reserved.