public class FileTableSourceField extends GenericTableSourceField
localizeResourceQueryField, lookupQueryField
columnName, position, primaryKey, primaryName, sortable
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 |
---|
FileTableSourceField() |
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 Object |
convertToQueryFieldValue(QueryField queryField,
Object value)
Convert the value to the value to be assigned to the given query 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.
|
TableSourceFieldMapping |
getTableMapping(QueryBase queryBase)
Returns the table mapping for this field.
|
void |
preUpdate(SourcePreUpdateDataEvent event)
Method called for each source field before data is updated.
|
getAssignedValue, getDefaultInsertValue, getDisplayQueryField, getQueryField, getQueryField, getQueryFilter, getQuerySortOrders, init
isLookupEnabled
getColumnName, isInsertable, isPosition, isPrimaryKey, isPrimaryName, isSortable, isUpdatable
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
isPosition, isPrimaryKey, isSortable
addDocumentFields, addDocumentTypeFields, getConverter, getDataType, getDefaultControlDefinition, getDefaultInputControlDefinition, 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
public TableSourceFieldMapping getTableMapping(QueryBase queryBase) throws PortalException
ITableSourceField
getTableMapping
in interface ITableSourceField
getTableMapping
in class GenericTableSourceField
queryBase
- the query the mapping will be used.PortalException
public void convertRowToFieldData(ISourceData databaseRow, ISourceData sourceRow)
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.protected Object convertToQueryFieldValue(QueryField queryField, Object value)
GenericTableSourceField
convertToQueryFieldValue
in class GenericTableSourceField
queryField
- the query field.value
- the original value.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 void preUpdate(SourcePreUpdateDataEvent event) throws PortalException
ISourceField
event
- the event that contains information about the update operation.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
LumisXP 12.4.0.200625 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.