org.ujorm.implementation.orm
Class RelationToMany<UJO extends ExtendedOrmUjo,ITEM extends ExtendedOrmUjo>
java.lang.Object
org.ujorm.extensions.Property<UJO,VALUE>
org.ujorm.extensions.AbstractCollectionProperty<UJO,UjoIterator<ITEM>,ITEM>
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
| 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 |
RelationToMany
public RelationToMany(String name)
- Constructor
- Parameters:
name - optionalitemType - optional
RelationToMany
public RelationToMany(String name,
Class<ITEM> itemType)
- Constructor
- Parameters:
name - optionalitemType - 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)
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.