org.ujorm.implementation.orm
Class RelationToOne<UJO extends ExtendedOrmUjo,VALUE>

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

public class RelationToOne<UJO extends ExtendedOrmUjo,VALUE>
extends OrmProperty<UJO,VALUE>

Foreign key key


Field Summary
 
Fields inherited from class org.ujorm.extensions.Property
PROPERTY_SEPARATOR, UNDEFINED_INDEX
 
Constructor Summary
protected RelationToOne(String name, Class type, Key relatedKey)
           
 
Method Summary
 Key getRelatedKey()
          Return null if no related key was assigned.
static
<UJO extends ExtendedOrmUjo,VALUE extends ExtendedOrmUjo>
RelationToOne<UJO,VALUE>
newInstance(Class<VALUE> type, Key<VALUE,?> relatedKey)
          Deprecated. Use the method of(java.lang.Class, org.ujorm.Key)
static
<UJO extends ExtendedOrmUjo,VALUE extends ExtendedOrmUjo>
RelationToOne<UJO,VALUE>
of(Class<VALUE> type, Key<VALUE,?> relatedKey)
          A Property Factory
 
Methods inherited from class org.ujorm.implementation.orm.OrmProperty
lock, of
 
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

RelationToOne

protected RelationToOne(String name,
                        Class type,
                        Key relatedKey)
Method Detail

getRelatedKey

public Key getRelatedKey()
Return null if no related key was assigned.


of

public static <UJO extends ExtendedOrmUjo,VALUE extends ExtendedOrmUjo> RelationToOne<UJO,VALUE> of(Class<VALUE> type,
                                                                                                    Key<VALUE,?> relatedKey)
A Property Factory


newInstance

public static <UJO extends ExtendedOrmUjo,VALUE extends ExtendedOrmUjo> RelationToOne<UJO,VALUE> newInstance(Class<VALUE> type,
                                                                                                             Key<VALUE,?> relatedKey)
Deprecated. Use the method of(java.lang.Class, org.ujorm.Key)

A Property Factory



Copyright 2013, Pavel Ponec