Method Summary |
|
public void | addChild(Link link) |
public void | addPersistentEntry(PersistentEntry entry) |
public void | addPersistentEntry(String newColumnName, PersistentEntry entry) |
protected void | addPersistentEntry(String newColumnName, PersistentEntry entry, boolean cloneEntry) |
void | assemble(AbstractPersistentObject persistentObject) |
public void | clearNonInlinedChildren() |
public Object | clone() |
public boolean | complexDirty() Traverses through of child objects of parent persistent object of this record
and returns true if at least one of them is dirty. |
public void | copy(Record source, Set updateableFields, boolean dirtyFieldsOnly) Copies updateable fields from source record to this record. |
void | copy(Record source, Set updateableFields, boolean dirtyFieldsOnly, boolean preserveStates) Copies updateable fields from source record to this record. |
public void | copyDirty(Record source, Set updateableFields) Copies only dirty and updateable fields from source record to this record. |
void | copyPreseveStates(Record source, Set updateableFields, boolean dirtyFieldsOnly) Copies updateable fields from source record to this record. |
void | copyPreseveStates(Record source) Copies all fields from source record to this record. |
protected boolean | different(Object before, Object after) |
public static boolean | different(Record record, Object before, Object after) |
public boolean | equalsByValues(Record thatRecord) |
public boolean | fieldsEqual(Record record) Compares field values of this record to another one passed as parameter. |
public Boolean | getBoolean(String columnName) |
public Boolean | getBoolean(int index) |
public Link | getChild(String name) |
public Object | getChildObject(String name) |
protected Object | getChildObjectStraight(String name) |
public MetaColumn | getColumn(String columnKey) |
public MetaColumn | getColumn(int columnIndex) |
public String | getColumnAlias(String columnKey) |
public String | getColumnAlias(int columnIndex) |
public int | getColumnCount() |
public String | getColumnName(String columnKey) |
public String | getColumnName(int columnIndex) |
public Date | getDate(String columnName) |
public Date | getDate(int index) |
public LinkDependencyGraph | getDependencyGraph() |
protected PersistentEntry[] | getEntries() |
public PersistentEntry | getEntry(int index) |
public PersistentEntry | getEntry(String columnName) |
public String | getFullColumnName(String columnKey) |
public String | getFullColumnName(int columnIndex) |
public int | getIndex(String columnName) |
public Link[] | getInlineLinks() |
public Number | getNumber(String columnName) |
public Number | getNumber(int index) |
public Object | getObject(String columnName) |
public Object | getObject(int index) |
public List | getOptLockKey() |
public Object | getOriginalObject(String columnName) |
public Object | getOriginalObject(int index) |
public PersistentObject | getPersistentObject() |
public List | getPrimaryKey() |
public State | getState() |
public String | getString(String columnName) |
public String | getString(int index) |
public MetaTable | getTable() |
public String | getTableAlias() |
public String | getTableName() Gets table name. |
public boolean | hasChildren() |
public boolean | hasDirtyNonKeyFields() |
public boolean | isAutoPadChars() |
public boolean | isDeleted() |
public boolean | isDirty() |
public boolean | isEmpty() |
public boolean | isFieldDirty(int index) |
public boolean | isFieldDirty(String columnName) |
public boolean | isForceModify() |
public boolean | isInitialized() |
public boolean | isNotOverwriteWithNulls() |
public boolean | isNull(String columnName) |
public boolean | isNull(int index) |
public boolean | isPreserveOriginalValues() |
public boolean | isSaved() |
public boolean | isSkipInsertForKeysOnly() |
public LinkIterator | linkIterator() |
public void | markAllFieldsDirty() |
public void | markFieldDirty(int index) |
protected void | marshalChildren(ObjectOutput out) |
protected void | marshalDescendant(ObjectOutput out) |
void | moveRecordState() |
public Record | newRecord() |
public void | readExternal(ObjectInput in) |
protected Object | readObject(ObjectInput in, ColumnType type) |
public void | resetAfterModify() |
public void | setAutoPadChars(boolean autoPadChars) Sets autoPadChars flag. |
public void | setChildObject(String name, Object value) |
public void | setDependencyGraph(LinkDependencyGraph dependencyGraph) |
public void | setFieldDirty(int index, boolean dirty) |
public void | setFieldDirty(String columnName, boolean dirty) |
public void | setForceModify(boolean forceModify) |
public void | setHasDirtyNonKeyFields(boolean hasDirtyNonKeyFields) |
public void | setNotOverwriteWithNulls(boolean notOverwriteWithNulls) |
public void | setObject(String columnName, Object value) |
public boolean | setObject(int index, Object value) |
void | setPersistentObject(PersistentObject persistentObject) |
public void | setPreserveOriginalValues(boolean preserveOriginalValues) |
public void | setSkipInsertForKeysOnly(boolean skipInsertForKeysOnly) |
public void | setState(State state) |
public void | setTableAlias(String tableAlias) |
public void | setTableName(String tableName) Sets table name which will supercede the underlying MetaTable one when used to build SQL statements. |
public static void | setupPrimitiveFields(Record recordFrom, Record recordTo) |
public static void | setupUnmarshalledChildren(PersistentObject persistent, LinkedHashMap children) |
public int | size() |
public String | tableToString() |
public Link | toLink() |
public Parameters | toNotNullParameters(boolean primaryKeyOnly) Returns Parameters object based on values and column types of the record. |
public static Parameters | toNotNullParameters(Record record, boolean primaryKeyOnly) Returns Parameters object based on values and column types of the record . |
public Parameters | toParameters(int[] indeces) Returns Parameters object based on values and column types of the record for columns with indeces
specified with "indeces" parameter. |
public Parameters | toParameters(boolean primaryKeyOnly) Returns Parameters object based on values and column types of the record. |
public static Parameters | toParameters(Record record, boolean primaryKeyOnly) Returns Parameters object based on values and column types of the record. |
public static Parameters | toParameters(Record record, boolean primaryKeyOnly, ToParametersPolicy policy) Returns Parameters object based on values and column types of the record. |
public int[] | toPrimaryKeyIndeces() |
public String | toString() |
public void | unmarkAllFieldsDirty() |
public void | unmarkFieldDirty(int index) |
protected void | unmarshalChildren(ObjectInput in) |
protected void | unmarshalDescendant(ObjectInput in) |
public Object | v2c(int index, Object value) Right pads character fields to column length with spaces. |
public Object | v2c(String columnName, Object value) Right pads character fields to column length with spaces. |
public void | writeExternal(ObjectOutput out) |
protected void | writeObject(ObjectOutput out, Object value) |