org.ujorm.implementation.orm
Class OrmProperty<U extends OrmUjo,VALUE>

java.lang.Object
  extended by org.ujorm.extensions.Property<U,VALUE>
      extended by org.ujorm.implementation.orm.OrmProperty<U,VALUE>
All Implemented Interfaces:
CharSequence, Comparable<Key>, CriterionProvider<U,VALUE>, Key<U,VALUE>
Direct Known Subclasses:
RelationToOne

public class OrmProperty<U extends OrmUjo,VALUE>
extends Property<U,VALUE>

The special Key pro LazyLoadiing


Field Summary
 
Fields inherited from class org.ujorm.extensions.Property
PROPERTY_SEPARATOR, UNDEFINED_INDEX
 
Constructor Summary
OrmProperty(int index)
           
OrmProperty(int index, String name, VALUE defaultValue, Validator<VALUE> validator)
           
 
Method Summary
protected  void lock()
          Lock the Property
 VALUE of(U ujo)
          An alias for the method of(Ujo) with a lazy-loading features.
Note: if no session is available than lazy attributes provides the null value - since the release 1.33.
 
Methods inherited from class org.ujorm.extensions.Property
_nextRawSequence, add, add, add, alias, charAt, checkLock, checkValidity, compareTo, copy, descending, descending, equals, equalsName, forAll, forNone, forSql, forSql, forSqlUnchecked, getDefault, getDomainType, getFullName, getIndex, getName, getType, getValidator, getValue, init, isAscending, isComposite, isDefault, isDirect, isPropertySeparatorDisabled, isTypeOf, length, 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

OrmProperty

public OrmProperty(int index)

OrmProperty

public OrmProperty(int index,
                   String name,
                   VALUE defaultValue,
                   Validator<VALUE> validator)
Method Detail

lock

protected void lock()
Lock the Property

Overrides:
lock in class Property<U extends OrmUjo,VALUE>

of

public VALUE of(U ujo)
An alias for the method of(Ujo) with a lazy-loading features.
Note: if no session is available than lazy attributes provides the null value - since the release 1.33.

Specified by:
of in interface Key<U extends OrmUjo,VALUE>
Overrides:
of in class Property<U extends OrmUjo,VALUE>


Copyright 2013, Pavel Ponec