org.ujorm.orm
Interface OrmUjo

All Superinterfaces:
Ujo
All Known Subinterfaces:
ColumnSet, ExtendedOrmUjo<UJO_IMPL>
All Known Implementing Classes:
OrmTable, OrmTableLockable, OrmTableSynchronized

public interface OrmUjo
extends Ujo

The OrmUjo is a basic interface of the persistent object in the ORM support. The class can be Serializable. A class that implements the interface must have got a next special features:

See Also:
OrmKeyFactory, OrmKey, RelationToMany

Method Summary
 Key[] readChangedProperties(boolean clear)
          Returns keys of changed values in a time when any session is assigned.
 Session readSession()
          Read an ORM session where the session is an transient key.
 void writeSession(Session session)
          Write an ORM session.
 
Methods inherited from interface org.ujorm.Ujo
readAuthorization, readKeys, readValue, writeValue
 

Method Detail

readSession

Session readSession()
Read an ORM session where the session is an transient key.


writeSession

void writeSession(Session session)
Write an ORM session.


readChangedProperties

Key[] readChangedProperties(boolean clear)
Returns keys of changed values in a time when any session is assigned. The method is used by a SQL UPDATE statement to update assigned values only. Implementation tip: create a new key type of Set and in the method writeValue assign the current Key always.

Parameters:
clear - True value clears all the key changes.
Returns:
Key array of the modified values.


Copyright 2013, Pavel Ponec