| com.completex.objective.components.persistency.key.AutoKeyGenerator
All known Subclasses: com.completex.objective.components.persistency.key.impl.CreatedDateGenerator,
AutoKeyGenerator | public interface AutoKeyGenerator (Code) | | Interface to be implemented by Automatic Key Generators
author: Gennady Krizhevsky |
getStaticParameters | Object getStaticParameters()(Code) | | Get initial parameters
static Parameters |
insertValue | void insertValue(Transaction transaction, Persistency persistency, PersistentEntry persistentEntry) throws OdalPersistencyException(Code) | | Implementing class should populate persistentEntry with value on insert of the record but only
if not persistentEntry.isDirty() or if the entry is set to the value that is considered empty
(0 or null, for example)
Parameters: transaction - current transaction Parameters: persistency - persistency instance Parameters: persistentEntry - persistent entry to populate throws: OdalPersistencyException - |
setLogger | void setLogger(Log log)(Code) | | Setter for Log
See Also: Log Parameters: log - |
setStaticParameters | void setStaticParameters(Object staticParameters)(Code) | | Set initial parameters (static in sense that once set they should never change)
Parameters: staticParameters - |
updateValue | void updateValue(Transaction transaction, Persistency persistency, PersistentEntry persistentEntry, boolean complexDirty) throws OdalPersistencyException(Code) | | Implementing class should normally populate persistentEntry with value on update of the record and only
if persistentEntry.getRecord().isDirty() == true or complexDirty == true. Concrete implementation though
may deviate from this recommended behaviour.
Parameters: transaction - current transaction Parameters: persistency - persistency instance Parameters: persistentEntry - persistent entry to populate Parameters: complexDirty - true if object itself or any of its children is dirty throws: OdalPersistencyException - |
|
|