@StableMinor(version="12.0", sinceVersion="4.0") public abstract class BaseTabularSourceField extends BaseSourceField implements ITabularSourceField
ITabularSourceField
.Modifier and Type | Field and Description |
---|---|
protected String |
columnName
The name of the column in the tabular structure that this field belongs to.
|
protected boolean |
position
Indicates if this field is a position field.
|
protected boolean |
primaryKey
Indicates if this field is a primary key.
|
protected boolean |
primaryName
Indicates if this field is a primary name.
|
protected boolean |
sortable
Indicates if this field may be used for sorting a query.
|
converter, dataType, defaultValue, definitionNode, display, doOptionLookup, externalData, getData, id, introduction, keywords, localize, maximumValue, minimumValue, name, parentId, pattern, readOnly, required, requiredWhenVisible, searchable, source
Constructor and Description |
---|
BaseTabularSourceField() |
Modifier and Type | Method and Description |
---|---|
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 |
isPosition()
Returns a boolean indicating if this field is a position field.
|
boolean |
isPrimaryKey()
Returns a boolean indicating if this field is a primary key.
|
boolean |
isPrimaryName() |
boolean |
isSortable()
Returns whether this field may be used to sort a query.
|
protected boolean |
isUpdatable()
Indicates if the value this field represents is updatable.
|
addDocumentFields, addDocumentTypeFields, convertToFieldValueClass, createConverter, createDataType, getConverter, getDataType, getDefaultControlDefinition, getDefaultInputControlDefinition, getDefaultValue, getDefaultViewControlDefinition, getDefinitionNode, getDocumentFieldBaseId, getId, getMaximumValue, getMinimumValue, getName, getValueClass, isBigDataEnabled, isDisplay, isExternalData, isGetData, isIntroduction, isIntroductionImage, isKeywords, isLocalize, isParentId, isPublishStartDate, isReadOnly, isRequired, isRequiredWhenVisible, isSearchable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addDocumentFields, addDocumentTypeFields, getConverter, getDataType, getDefaultControlDefinition, getDefaultInputControlDefinition, getDefaultValue, getDefaultViewControlDefinition, getDefinitionNode, getId, getMaximumValue, getMinimumValue, getName, getValueClass, isDisplay, isExternalData, isGetData, isIntroduction, isIntroductionImage, isKeywords, isParentId, isPublishStartDate, isReadOnly, isRequired, isRequiredWhenVisible, isSearchable, postAdd, postDelete, postUpdate, preAdd, preDelete, preUpdate
protected boolean primaryKey
protected boolean primaryName
protected boolean position
protected String columnName
protected boolean sortable
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 isPosition()
ITabularSourceField
isPosition
in interface ITabularSourceField
public boolean isSortable()
ITabularSourceField
isSortable
in interface ITabularSourceField
true
if this field may be used for sorting, false
otherwise.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
LumisXP 12.0.0.190809 - Copyright © 2006–2019 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.