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>>

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

The relation 1:N to another UJO type items

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)
          An alias for the method of(Ujo).
 
Methods inherited from class org.ujorm.extensions.AbstractCollectionProperty
checkValidity, getItemType, initItemType, isItemTypeOf
 
Methods inherited from class org.ujorm.extensions.Property
_nextRawSequence, add, add, add, alias, charAt, checkLock, compareTo, copy, descending, descending, equals, equalsName, forAll, forNone, forSql, forSql, forSqlUnchecked, getDefault, getDomainType, getFullName, getIndex, getName, getType, getValidator, getValue, init, isAscending, isComposite, isDefault, isDirect, isDomainOf, isPropertySeparatorDisabled, isTypeOf, length, lock, newInstance, newInstance, newInstance, newInstance, newInstance, newInstance, newInstance, newInstance, newInstance, of, of, of, of, of, of, of, of, of, setValue, setValue, setValueFromDefault, subSequence, toString, toStringFull, 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 key order (optional)
Method Detail

of

public UjoIterator<ITEM> of(UJO ujo)
An alias 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 2013, Pavel Ponec