|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.jsfcl.data.DataCache.Column
Column
encapsulates the stored information
about a single "column" of data, typically corresponding to a column
from an individual row in an underlying relational database.
Method Summary | |
void |
commit()
If this column value has been updated, copy the current value to the original value and clear the updated state. |
java.lang.String |
getColumnName()
Return the column name for this column as a String. |
java.lang.Class |
getJavaType()
Return the Java type for this column. |
java.lang.Object |
getKey()
Return the column name for this column. |
java.lang.Object |
getOriginal()
Return the original value for this column. |
java.lang.Object |
getReplacement()
Return the replacement value for this column, if any. |
java.lang.String |
getSchemaName()
Return the name of the schema containing the table containing this column (if any); otherwise, return null . |
int |
getSqlType()
Return the SQL type for this column. |
java.lang.String |
getTableName()
Return the name of the table containing this column (if any); otherwise, return null . |
java.lang.Object |
getValue()
Return the replacement value if this column has been updated; else return the original value. |
boolean |
isUpdated()
Return true if the value for this column
has been updated. |
void |
reset()
Reset the updated state of this column, and throw away any reference to a replacement value. |
java.lang.Object |
setValue(java.lang.Object obj)
If the specified value is different from the original value, save it and mark this column (and the containing row) as having been updated. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Map.Entry |
equals, hashCode |
Method Detail |
public void commit()
If this column value has been updated, copy the current value to the original value and clear the updated state. Otherwise, do nothing.
public java.lang.String getColumnName()
Return the column name for this column as a String.
This is a type-safe alias for getKey()
.
public java.lang.Object getKey()
Return the column name for this column.
getKey
in interface java.util.Map.Entry
public int getSqlType()
Return the SQL type for this column.
public java.lang.Class getJavaType()
Return the Java type for this column.
public java.lang.Object getOriginal()
Return the original value for this column.
public java.lang.Object getReplacement()
Return the replacement value for this column, if any.
This is only meaningful if isUpdated()
returns true
.
public java.lang.String getSchemaName()
Return the name of the schema containing the table
containing this column (if any); otherwise, return
null
.
public java.lang.String getTableName()
Return the name of the table containing this column
(if any); otherwise, return null
.
public java.lang.Object getValue()
Return the replacement value if this column has been updated; else return the original value.
getValue
in interface java.util.Map.Entry
public boolean isUpdated()
Return true
if the value for this column
has been updated.
public void reset()
Reset the updated state of this column, and throw away any reference to a replacement value.
public java.lang.Object setValue(java.lang.Object obj)
If the specified value is different from the original value, save it and mark this column (and the containing row) as having been updated. Otherwise, take no action.
setValue
in interface java.util.Map.Entry
obj
- Replacement value for this column
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |