| java.lang.Object biz.hammurapi.sql.columns.Column
All known Subclasses: biz.hammurapi.sql.columns.BooleanColumn, biz.hammurapi.sql.columns.IntColumn, biz.hammurapi.sql.columns.ObjectColumn, biz.hammurapi.sql.columns.DoubleColumn, biz.hammurapi.sql.columns.CharColumn, biz.hammurapi.sql.columns.ShortColumn, biz.hammurapi.sql.columns.FloatColumn, biz.hammurapi.sql.columns.LongColumn, biz.hammurapi.sql.columns.ByteColumn,
Field Summary | |
protected boolean | force |
Constructor Summary | |
public | Column(String name, boolean isPrimaryKey) |
force | protected boolean force(Code) | | |
Column | public Column(String name, boolean isPrimaryKey)(Code) | | Parameters: name - Column name Parameters: isPrimaryKey - 'true' if column is part of primary key |
clear | abstract public void clear()(Code) | | Sets field value to default and clears modified flag.
|
clearModified | public void clearModified()(Code) | | Clears modified flag.
|
columnType | public static Class columnType(String typeName)(Code) | | Parameters: typeName - Column type for Java type |
getLabel | public String getLabel()(Code) | | display label for column |
getObjectValue | abstract public Object getObjectValue(boolean originalValue)(Code) | | Returns column value as object
Parameters: originalValue - if true this method returns original value instead of current value. |
isModified | public boolean isModified()(Code) | | Returns the isModified. |
isPrimaryKey | public boolean isPrimaryKey()(Code) | | Returns the isPrimaryKey. |
listName | public String listName()(Code) | | Column name if value was modified, null otherwise. |
load | abstract public void load(String textValue)(Code) | | Loads value from XML Element
Parameters: textValue - Text value |
onChange | protected void onChange()(Code) | | |
parameterize | public int parameterize(PreparedStatement ps, int idx, boolean force) throws SQLException(Code) | | Parameterizes prepared statement.
Parameters: ps - Parameters: idx - Parameter index Parameters: force - If true column is treated a modified idx+1 if column was modified and prepared statement was parameterized, idx otherwise. |
set | abstract public void set(Column source)(Code) | | Copies values from source column
Parameters: source - |
setForce | public void setForce(boolean force)(Code) | | Parameters: force - |
setLabel | public void setLabel(String label)(Code) | | Sets display label for column
Parameters: label - |
setOriginal | abstract public void setOriginal()(Code) | | |
toDom | public void toDom(Element owner, String nodeName, boolean originalValue)(Code) | | Parameters: owner - |
|
|