| com.completex.objective.components.persistency.MappingPersistency
All known Subclasses: com.completex.objective.components.persistency.core.impl.DatabaseMappingPersistencyImpl,
getAdHocPoMappingHandler | AdHocPoBeanConverter getAdHocPoMappingHandler()(Code) | | Returns AdHocPoBeanConverter used for this persistency
AdHocPoBeanConverter used for this persistency |
getMapper | Mapper getMapper()(Code) | | Returns mapper used for this persistency
mapper used for this persistency |
getPersistency | Persistency getPersistency()(Code) | | Returns underlying PO persistency
underlying PO persistency |
update | Object update(Object bean) throws OdalPersistencyException(Code) | | Updates bean object in the database.
If bean is not instance of PersistentObject then the method checks if the mapped
PersistentObject is in the current thread session. If it is not the load is performed,
the returned PersistentObject is then merged with the incomming one and the differences
are stored in the database. Use update(Object bean, LifeCycleController controller) method
if you need controller to force retrieval of all necessary lazily loaded fields.
The method returns the same instance of a bean if its the PersistentObject it is mapped to is
in the current thread session and a new instance if it is not.
Parameters: bean - bean to update the same instance of a bean if its the PersistentObject it is mapped to isin the current thread session and a new intance if it is not. throws: OdalPersistencyException - |
update | Object update(Object bean, LifeCycleController controller) throws OdalPersistencyException(Code) | | Updates bean object in the database.
If bean is not instance of PersistentObject then the method checks if the mapped
PersistentObject is in the current thread session. If it is not the load is performed,
the returned PersistentObject is then merged with the incomming one and the differences
are stored in the database. Use controller to force (with corresponding getters) retrieval
of all necessary lazily loaded fields.
The method returns the same instance of a bean if its the PersistentObject it is mapped to is
in the current thread session and a new instance if it is not.
Parameters: bean - bean to update Parameters: controller - life cycle controller the same instance of a bean if its the PersistentObject it is mapped to isin the current thread session and a new intance if it is not. throws: OdalPersistencyException - |
|
|