org.ujoframework.implementation.orm
Class RelationToOne<UJO extends OrmUjo,VALUE>

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

public class RelationToOne<UJO extends OrmUjo,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 OrmUjo,VALUE extends OrmUjo>
RelationToOne<UJO,VALUE>
newInstance(java.lang.Class<VALUE> type, UjoProperty<VALUE,?> relatedKey)
          A Property Factory
 
Methods inherited from class org.ujoframework.extensions.Property
_nextSequence, add, compareTo, copy, descending, equals, 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, 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 OrmUjo,VALUE extends OrmUjo> RelationToOne<UJO,VALUE> newInstance(java.lang.Class<VALUE> type,
                                                                                             UjoProperty<VALUE,?> relatedKey)
A Property Factory



Copyright © 2010. All Rights Reserved.