org.ujorm.orm
Interface OrmUjo

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

public interface OrmUjo
extends Ujo

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

Author:
Ponec
See Also:
OrmKeyFactory, OrmKey, RelationToMany

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

Method Detail

readSession

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


writeSession

void writeSession(Session session)
Write an ORM session.


readChangedProperties

Key[] readChangedProperties(boolean clear)
Returns keys of changed values in time of not null session. The method is userful to a SQL UPDATE statement to manage only assigned values. Implementation tip: create a new property type of Set and in the method writeValue assing the current Key allways.

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


Copyright © 2012. All Rights Reserved.