@StableMinor(version="12.4", sinceVersion="4.0") public class TableSource extends TabularSource<ITableSourceField>
positionSourceField, primaryKeySourceField, searchableSourceFields, tabularData
addInterfaceId, administrationInterfaceId, connectionId, detailsInterfaceId, editInterfaceId, fields, fieldsMap, id, introductionSourceField, keywordsSourceField, load, metaDataSourceId, parameters, primaryNameSourceField, readData, SOURCE_READ_DATA_ALWAYS, SOURCE_READ_DATA_NEVER, SOURCE_READ_DATA_ON_DEMAND, sourceContext, sourceDefinitionNode
Constructor and Description |
---|
TableSource(Node sourceDefinitionNode,
ISourceContext sourceContext)
Creates a tabular source.
|
Modifier and Type | Method and Description |
---|---|
protected ITableSourceFilter |
createDefaultCompositeFilterInstance()
Creates and returns a source filter instance to be used
as default to
filters nodes. |
protected ITableSourceFilter |
createDefaultFilterInstance()
Creates and returns a source filter instance to be used
as default to
filter nodes. |
protected QueryBuilder |
createQueryBuilder(IParameters parameters)
Creates the query builder used by this source.
|
protected ITableSourceField |
createSourceField(Node fieldNode)
Factory method for creating a source field instance that corresponds
to the field node given.
|
ITableSourceFilter |
createSourceFilter(Node filterNode)
Creates a source filter for the given filter definition node.
|
protected void |
deleteRelatedData(Collection<String> itemIds)
Deletes all data related to the given itemIds.
|
protected ISourceAddDataResult |
doAddData(IParameters data)
Adds the data to the persistence.
|
protected void |
doDeleteDataByItemIds(Collection<String> itemIds)
Deletes the data in the persistence.
|
protected ISourceUpdateDataResult |
doUpdateData(IParameters data)
Updates the data in the persistence.
|
protected <S extends Source<?>> |
getDefaultBigDataPersister()
Returns the default ISourceBigDataPersister implementation to be used for this source if the big data persisting
is not disabled and no specific persister class is configured for this source.
|
protected String |
getDefaultProviderClass()
Returns data provider class for the source.
|
ITableSourceFilter |
getFilter()
Returns the filter for this source.
|
String |
getTableName()
Returns the table name for this source.
|
List<ISourceData> |
readData(Collection<String> itemIds)
Returns the data corresponding to the given
itemIds . |
TabularData |
readData(String[] primaryKeyValues,
ITransaction transaction)
Deprecated.
Since 10.4.0 replaced by
Source.readData(String...) and #readData(Iterable)
for Source persistence API standardization. This method is no longer called and kept only for backwards
compatibility. |
ISourceData |
readData(String primaryKeyValue,
ITransaction transaction)
Deprecated.
Since 10.4.0 replaced by
Source.readData(String...) and #readData(Iterable)
for Source persistence API standardization. This method is no longer called and kept only for backwards
compatibility. |
applyPostLoadFilters, applyPostLoadPagination, compare, compareField, convertDataToDefinedDataTypes, convertDataToDefinedDataTypes, evaluateMaxRows, getData, getDefaultSourceSearchContentFillerClassName, getDouiHyperlinkItemParameterField, getFieldClass, getFieldId, getFieldIds, getFieldName, getFieldsDefinitionNode, getHyperlinkDefaultParameters, getIndexerEngineId, getIndexerId, getMaxRows, getPositionField, getPrimaryKeyField, getReindexerTabularDataProcessorClassName, getSearchableFields, getSearcherEngineId, getSearcherId, getSortedFieldIds, getSourceSearchContentFillerClassName, getStartAt, hasField, isSearchEnabled, readFieldsIntoFieldsMap, setData, setMaxRows, setStartAt
addData, createCustomSourceField, createRenderDataChangedEvent, deleteDataByItemIds, deleteDataByItemIds, getAddInterfaceId, getAdministrationInterfaceId, getBigDataPersister, getDataProvider, getDefinitionNode, getDetailsInterfaceId, getDistinct, getDouiContext, getEditInterfaceId, getField, getFields, getFiltersNode, getId, getIntroductionField, getIntroductionImageField, getKeywordsField, getLoad, getMetaDataSourceId, getParameterClass, getParameterValue, getPrimaryNameField, getPublishStartDateField, getReadData, getSourceContainer, getSourceContext, getTransaction, getUpdateDataItemId, isAdministrationInterface, isDetails, isRenderDataChangedNotificationEnabled, load, postAddFieldData, postDeleteFieldData, postProcessSource, postUpdateFieldData, preAddFieldData, preDeleteFieldData, preUpdateFieldData, readData, scheduleIndexData, scheduleIndexData, sendPostAddDataNotification, sendPostDeleteDataNotification, sendPostUpdateDataNotification, sendPreAddDataNotification, sendPreDeleteDataNotification, sendPreUpdateDataNotification, sendRenderDataChangedNotification, sendRenderDataChangedNotification, setLoad, setParameterValue, setParameterValue, setReadData, setRenderDataChangedNotificationEnabled, updateData, valueChanged
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public TableSource(Node sourceDefinitionNode, ISourceContext sourceContext) throws PortalException
sourceDefinitionNode
- the source definition node.sourceContext
- the source context.PortalException
public String getTableName()
public ITableSourceFilter createSourceFilter(Node filterNode) throws PortalException
Source
filters
or filter
node.createSourceFilter
in class Source<ITableSourceField>
filterNode
- the filter definition node.PortalException
protected ITableSourceFilter createDefaultCompositeFilterInstance()
Source
filters
nodes.createDefaultCompositeFilterInstance
in class Source<ITableSourceField>
protected ITableSourceFilter createDefaultFilterInstance()
Source
filter
nodes.createDefaultFilterInstance
in class Source<ITableSourceField>
public ITableSourceFilter getFilter()
Source
getFilter
in class Source<ITableSourceField>
protected ITableSourceField createSourceField(Node fieldNode) throws PortalException
Source
createSourceField
in class TabularSource<ITableSourceField>
fieldNode
- the field node.PortalException
Source.createCustomSourceField(Node)
@Deprecated public ISourceData readData(String primaryKeyValue, ITransaction transaction) throws PortalException
Source.readData(String...)
and #readData(Iterable)
for Source persistence API standardization. This method is no longer called and kept only for backwards
compatibility.primaryKeyValue
- the primary key value of the desired data.transaction
- the transaction for persistence access.PortalException
NullPointerException
- if primaryKeyValue
is null
.@Deprecated public TabularData readData(String[] primaryKeyValues, ITransaction transaction) throws PortalException
Source.readData(String...)
and #readData(Iterable)
for Source persistence API standardization. This method is no longer called and kept only for backwards
compatibility.primaryKeyValues
- the primary key values of the desired data.transaction
- the transaction for persistence access.PortalException
{@link
- NullPointerException} if primaryKeyValues
contain a null
value.protected String getDefaultProviderClass() throws PortalException
TabularSource
getDefaultProviderClass
in class TabularSource<ITableSourceField>
PortalException
protected <S extends Source<?>> ISourceBigDataPersister<S> getDefaultBigDataPersister()
Source
This method is called by Source.getBigDataPersister()
when the default is to be used.
getDefaultBigDataPersister
in class TabularSource<ITableSourceField>
public List<ISourceData> readData(Collection<String> itemIds) throws PortalException
Source
itemIds
.
The implementation of this method in Source
throws an UnsupportedOperationException
. This method
should be overridden by source implementations that provides this functionality.
readData
in class Source<ITableSourceField>
itemIds
- the item identifiers of the data to be returned.ISourceData
objects that corresponds to the given itemIds
. If no data is found,
an empty list is returned.PortalException
protected QueryBuilder createQueryBuilder(IParameters parameters) throws PortalException
parameters
- the parameters to be used by the query builder.PortalException
protected ISourceAddDataResult doAddData(IParameters data) throws PortalException
Source
This method is called by Source.addData(Object)
and is to be overridden by sources that supports add operation
and uses the default addData
implementation.
The implementation of this method in Source
throws UnsupportedOperationException
.
doAddData
in class Source<ITableSourceField>
data
- the data given to Source.addData(Object)
, converted to IParameters
if necessary.Source.addData(Object)
.PortalException
protected ISourceUpdateDataResult doUpdateData(IParameters data) throws PortalException
Source
This method is called by Source.updateData(Object)
and is to be overridden by sources that supports update
operation and uses the default updateData implementation.
The implementation of this method in Source
throws UnsupportedOperationException
.
doUpdateData
in class Source<ITableSourceField>
data
- the data given to Source.updateData(Object)
, converted to IParameters
if necessary.Source.updateData(Object)
.PortalException
protected void doDeleteDataByItemIds(Collection<String> itemIds) throws PortalException
Source
This method is called by Source.deleteDataByItemIds(Collection)
and is to be overridden by sources that
supports delete operation and uses the default deleteData implementation.
The implementation of this method in Source
throws UnsupportedOperationException
.
doDeleteDataByItemIds
in class Source<ITableSourceField>
itemIds
- the item identifiers of data to be deleted.PortalException
protected void deleteRelatedData(Collection<String> itemIds) throws PortalException
This method looks up all the relations of the data being deleted. If any of them have the attribute cascadeOnDelete set to true, the related source data is deleted.
itemIds
- the item identifiers whose related data is to be deleted.PortalException
LumisXP 12.4.0.200625 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.