public class CategorizationSourceField extends MetaDataSourceField
MetaDataSourceField.Type
localizeResourceQueryField, lookupQueryField
columnName, position, primaryKey, primaryName
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 |
---|
CategorizationSourceField()
Creates a new instance.
|
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 IConverter |
createConverter()
Factory method that creates a converter instance for this field.
|
List<QueryAssignment> |
getQueryAssignments(QueryInsert queryInsert,
IParameters parameters)
Returns a list of query assignments to be used in the given query insert.
|
List<QueryAssignment> |
getQueryAssignments(QueryUpdate queryUpdate,
IParameters parameters)
Returns a list of query assignments to be used in the given query update.
|
IQueryFilter |
getQueryFilter(QueryBase queryBase,
TableSourceFilter filter)
Returns a query filter for this field.
|
void |
init(Source source,
Node fieldNode)
Initializes this source field.
|
getDefaultInputControlDefinition, getType, isBigDataEnabled
createDataType, getQueryField, getTableMapping, isInsertable, isUpdatable
convertToQueryFieldValue, getAssignedValue, getDefaultInsertValue, getDisplayQueryField, getQueryField, getQuerySortOrders
isLookupEnabled
getColumnName, isPosition, isPrimaryKey, isPrimaryName, isSortable
addDocumentFields, addDocumentTypeFields, convertToFieldValueClass, getConverter, getDataType, getDefaultControlDefinition, getDefaultValue, getDefaultViewControlDefinition, getDefinitionNode, getDocumentFieldBaseId, getId, getMaximumValue, getMinimumValue, getName, getValueClass, isDisplay, isExternalData, isGetData, isIntroduction, isIntroductionImage, isKeywords, isLocalize, isParentId, isPublishStartDate, isReadOnly, isRequired, isRequiredWhenVisible, isSearchable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isPosition, isPrimaryKey, isSortable
addDocumentFields, addDocumentTypeFields, getConverter, getDataType, getDefaultControlDefinition, getDefaultValue, getDefaultViewControlDefinition, getDefinitionNode, getId, getMaximumValue, getMinimumValue, getName, getValueClass, isDisplay, isExternalData, isGetData, isIntroduction, isIntroductionImage, isKeywords, isParentId, isPrimaryName, isPublishStartDate, isReadOnly, isRequired, isRequiredWhenVisible, isSearchable, postAdd, postDelete, postUpdate, preAdd, preDelete, preUpdate
public CategorizationSourceField() throws PortalException
PortalException
public void init(Source source, Node fieldNode) throws PortalException
ISourceField
init
in interface ISourceField
init
in class MetaDataSourceField
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 List<QueryAssignment> getQueryAssignments(QueryInsert queryInsert, IParameters parameters) throws PortalException
ITableSourceField
getQueryAssignments
in interface ITableSourceField
getQueryAssignments
in class GenericTableSourceField
queryInsert
- the query insert.parameters
- the parameters with the values to be used.PortalException
public List<QueryAssignment> getQueryAssignments(QueryUpdate queryUpdate, IParameters parameters) throws PortalException
ITableSourceField
getQueryAssignments
in interface ITableSourceField
getQueryAssignments
in class GenericTableSourceField
parameters
- the parameters with the values to be used.PortalException
public IQueryFilter getQueryFilter(QueryBase queryBase, TableSourceFilter filter) throws PortalException
ITableSourceField
getQueryFilter
in interface ITableSourceField
getQueryFilter
in class GenericTableSourceField
queryBase
- the query where the filter will be applied to.filter
- the filter definition.PortalException
public void convertRowToFieldData(ISourceData databaseRow, ISourceData sourceRow) throws PortalException
BaseTabularSourceField
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
convertRowToFieldData
in class GenericTableSourceField
databaseRow
- a row containing the original data.sourceRow
- the row to be populated with this field's data.PortalException
protected IConverter createConverter() throws PortalException
BaseSourceField
BaseSourceField.init(Source, Node)
.createConverter
in class BaseSourceField
PortalException
LumisXP 12.4.0.200625 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.