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

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

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

Foreign key property

Author:
Pavel Ponec

Constructor Summary
protected RelationToOne(java.lang.String name, java.lang.Class type, UjoProperty relatedKey)
           
 
Method Summary
 UjoProperty getRelatedKey()
          Return null if no related key was assigned.
static
<UJO extends ExtendedOrmUjo,VALUE extends ExtendedOrmUjo>
RelationToOne<UJO,VALUE>
newInstance(java.lang.Class<VALUE> type, UjoProperty<VALUE,?> relatedKey)
          A Property Factory
 
Methods inherited from class org.ujorm.extensions.Property
_nextSequence, add, compareTo, copy, descending, descending, equals, equalsName, forAll, forNone, forSql, getDefault, getIndex, getName, getType, getValue, charAt, checkAttribs, init, isAscending, isDefault, isDirect, isTypeOf, length, newInstance, newInstance, newInstance, newInstance, newInstance, newInstance, newInstance, of, setValue, setValueFromDefault, subSequence, toString, where, where, whereEq, whereEq, whereGe, whereGt, whereIn, whereIn, whereLe, whereLt, whereNeq, 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(java.lang.String name,
                        java.lang.Class type,
                        UjoProperty relatedKey)
Method Detail

getRelatedKey

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


newInstance

public static <UJO extends ExtendedOrmUjo,VALUE extends ExtendedOrmUjo> RelationToOne<UJO,VALUE> newInstance(java.lang.Class<VALUE> type,
                                                                                                             UjoProperty<VALUE,?> relatedKey)
A Property Factory



Copyright © 2007-2012 PPonec