org.ujoframework.implementation.orm
Class RelationToOne<UJO extends OrmUjo,VALUE>
java.lang.Object
org.ujoframework.extensions.Property<UJO,VALUE>
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
| 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 |
RelationToOne
protected RelationToOne(java.lang.String name,
java.lang.Class type,
UjoProperty relatedKey)
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.