@StableMinor(version="10.1", sinceVersion="4.0") public class TableSource extends TabularSource<ITableSourceField>
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 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 <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.
|
TabularData |
readData(String[] primaryKeyValues,
ITransaction transaction)
Reads the data with the given primary key values, and returns it.
|
ISourceData |
readData(String primaryKeyValue,
ITransaction transaction)
Reads the data with the given primary key value, and returns it.
|
applyPostLoadFilters, applyPostLoadPagination, compare, compareField, convertDataToDefinedDataTypes, convertDataToDefinedDataTypes, getData, getDefaultSourceSearchContentFillerClassName, getDouiHyperlinkItemParameterField, getFieldClass, getFieldId, getFieldIds, getFieldName, getFieldsDefinitionNode, getHyperlinkDefaultParameters, getIndexerEngineId, getIndexerId, getMaxRows, getPrimaryKeyField, getReindexerTabularDataProcessorClassName, getSearchableFields, getSearcherEngineId, getSearcherId, getSortedFieldIds, getSourceSearchContentFillerClassName, getStartAt, hasField, isSearchEnabled, readFieldsIntoFieldsMap, setData, setMaxRows, setStartAt
createCustomSourceField, 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, isAdministrationInterface, isDetails, load, postProcessSource, setLoad, setParameterValue, setParameterValue, setReadData, 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)
public ISourceData readData(String primaryKeyValue, ITransaction transaction) throws PortalException
primaryKeyValue
- the primary key value of the desired data.transaction
- the transaction for persistence access.PortalException
NullPointerException
- if primaryKeyValue
is null
.public TabularData readData(String[] primaryKeyValues, ITransaction transaction) throws PortalException
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>
Lumisportal 10.1.2.170428 - Copyright © 2006–2017 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.