| |
|
| java.lang.Object com.completex.objective.components.persistency.PersistentEntry
PersistentEntry | public class PersistentEntry implements Cloneable(Code) | | Container for one Record value.
Normally it would map to a database table column value.
author: Gennady Krizhevsky |
KEY_ORIGINAL_VALUE | final public static String KEY_ORIGINAL_VALUE(Code) | | |
PersistentEntry | public PersistentEntry(MetaColumn column, Record record)(Code) | | Parameters: column - parent MetaColumn Parameters: record - parent Record |
copyValues | PersistentEntry copyValues(PersistentEntry entry)(Code) | | Copies value, originalValue and dirty flag from PersistentEntry passed as parameter to
this one
Parameters: entry - itself |
different | public static boolean different(Object before, Object after)(Code) | | Parameters: before - Parameters: after - true if "before" and "after" objects are different |
fromMap | protected void fromMap(Map map)(Code) | | Populates PersistentEntry from its map representation
|
getOriginalValue | public Object getOriginalValue()(Code) | | originalValue |
getValue | public Object getValue()(Code) | | value stored in this entry |
isAutoPadChars | public boolean isAutoPadChars()(Code) | | true ColumnType.CHAR types have to be auto padded to the length ofthe parent MetaColumn |
isDirty | public boolean isDirty()(Code) | | "dirty" flag |
newInstance | public PersistentEntry newInstance(boolean useRecord)(Code) | | Factory method
Parameters: useRecord - if true new PersistentEntry will be created with Record inside new PersistentEntry |
setAutoPadChars | public void setAutoPadChars(boolean autoPadChars)(Code) | | Set autoPadChars flag meaning that for ColumnType.CHAR types
the value stored in String will be right padded with spaces to the length of
the parent MetaColumn
See Also: MetaColumn.v2c(Object) Parameters: autoPadChars - |
setDirty | public void setDirty(boolean dirty)(Code) | | Set "dirty" flag
Parameters: dirty - |
setRecord | void setRecord(Record record)(Code) | | Set parent Record
Parameters: record - |
setUnmarkedValue | public void setUnmarkedValue(Object value, Object originalValue)(Code) | | Set both current and original values w/o changing its "dirty" state
Parameters: value - Parameters: originalValue - |
setValue | public void setValue(Object value)(Code) | | Set value
Parameters: value - |
setValue | public void setValue(Object value, Object originalValue)(Code) | | Set both current and original values.
This method should be called only if Record state is NEW_INITIALIZING
Parameters: value - Parameters: originalValue - |
setValueIfDiff | public void setValueIfDiff(Object value)(Code) | | Set value if it is different from the one kept in this.value field
Parameters: value - |
toMap | protected Map toMap()(Code) | | map representation of PersistentEntry |
|
|
|