|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.doui.source.field.BaseSourceField lumis.doui.source.field.BaseTabularSourceField
@StableMinor(version="5.5", sinceVersion="4.0") public abstract class BaseTabularSourceField
Base implementation for a ITabularSourceField
.
Field Summary | |
---|---|
protected String |
columnName
The name of the column in the tabular structure that this field belongs to. |
protected boolean |
primaryKey
Indicates if this field is a primary key. |
protected boolean |
primaryName
Indicates if this field is a primary name. |
protected boolean |
searchable
Indicates if this field is searchable. |
Fields inherited from class lumis.doui.source.field.BaseSourceField |
---|
converter, dataType, defaultValue, definitionNode, display, doOptionLookup, externalData, getData, id, introduction, keywords, localize, maximumValue, minimumValue, name, parentId, pattern, readOnly, required, requiredWhenVisible, source |
Constructor Summary | |
---|---|
BaseTabularSourceField()
|
Method Summary | |
---|---|
void |
convertRowToFieldData(ISourceData databaseRow,
ISourceData sourceRow)
Converts a row read from the data provider to this source field type. |
protected String |
getColumnName()
Returns the column name attribute set for this field. |
void |
init(Source source,
Node fieldNode)
Initializes this source field. |
protected boolean |
isInsertable()
Indicates if the value this field represents may be inserted. |
boolean |
isPrimaryKey()
Returns a boolean indicating if this field is a primary key. |
boolean |
isPrimaryName()
|
boolean |
isSearchable()
Returns a boolean indicating if this field is searchable. |
protected boolean |
isUpdatable()
Indicates if the value this field represents is updatable. |
Methods inherited from class lumis.doui.source.field.BaseSourceField |
---|
convertToFieldValueClass, createConverter, createDataType, getConverter, getDataType, getDefaultControlDefinition, getDefaultInputControlDefinition, getDefaultValue, getDefaultViewControlDefinition, getDefinitionNode, getId, getMaximumValue, getMinimumValue, getName, getValueClass, isDisplay, isExternalData, isGetData, isIntroduction, isKeywords, isLocalize, isParentId, isReadOnly, isRequired, isRequiredWhenVisible |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface lumis.doui.source.field.ISourceField |
---|
getConverter, getDataType, getDefaultControlDefinition, getDefaultInputControlDefinition, getDefaultValue, getDefaultViewControlDefinition, getDefinitionNode, getId, getMaximumValue, getMinimumValue, getName, getValueClass, isDisplay, isExternalData, isGetData, isIntroduction, isKeywords, isParentId, isReadOnly, isRequired, isRequiredWhenVisible |
Field Detail |
---|
protected boolean primaryKey
protected boolean primaryName
protected boolean searchable
protected String columnName
Constructor Detail |
---|
public BaseTabularSourceField()
Method Detail |
---|
public void init(Source source, Node fieldNode) throws PortalException
ISourceField
init
in interface ISourceField
init
in class BaseSourceField
source
- the source this field will belong to.fieldNode
- the xml node that contains this field's definition.
PortalException
- if this field could not be initialized.public boolean isPrimaryKey()
ITabularSourceField
isPrimaryKey
in interface ITabularSourceField
public boolean isPrimaryName()
isPrimaryName
in interface ISourceField
isPrimaryName
in class BaseSourceField
public boolean isSearchable()
ITabularSourceField
isSearchable
in interface ITabularSourceField
protected String getColumnName()
protected boolean isUpdatable()
protected boolean isInsertable()
public void convertRowToFieldData(ISourceData databaseRow, ISourceData sourceRow) throws PortalException
This base implementation just copies the value in the database row relative to this field's id
to the source row using the same id, converting it using
BaseSourceField.convertToFieldValueClass(Object, java.util.Locale, String)
.
convertRowToFieldData
in interface ITabularSourceField
databaseRow
- a row containing the original data.sourceRow
- the row to be populated with this field's data.
PortalException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |