org.ujorm.orm
Interface ExtendedOrmUjo<UJO_IMPL extends Ujo>
- All Superinterfaces:
- OrmUjo, Ujo
- All Known Implementing Classes:
- OrmTable, OrmTableLockable, OrmTableSynchronized
public interface ExtendedOrmUjo<UJO_IMPL extends Ujo>
- extends OrmUjo
Extended ORM Ujo. Interface methods are not necessary to run the ORM.
readFK
<UJO extends UJO_IMPL> ForeignKey readFK(Key<UJO,? extends OrmUjo> key)
throws IllegalStateException
- Read the foreign key.
This is useful to obtain the foreign key value without (lazy) loading the entire object.
If the lazy object is loaded, the method will need the Session to build the ForeignKey instance.
NOTE: The method is designed for developers only, the Ujorm doesn't call it newer.
- Returns:
- If no related object is available, then the result has the NULL value.
- Throws:
IllegalStateException - Method throws an exception for a wrong key type.
NullPointerException - Method throws an exception if a Session is missing after a lazy initialization of the key.
Copyright 2013, Pavel Ponec