|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.Observable lumis.doui.source.Source<F> lumis.doui.source.TabularSource<ITableSourceField> lumis.doui.table.TableSource
@StableMinor(version="5.5", sinceVersion="4.0") public class TableSource
A source that is based on a database table.
Field Summary |
---|
Fields inherited from class lumis.doui.source.TabularSource |
---|
primaryKeySourceField, searchableSourceFields, tabularData |
Fields inherited from class lumis.doui.source.Source |
---|
administrationInterfaceId, connectionId, 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 Summary | |
---|---|
TableSource(Node sourceDefinitionNode,
ISourceContext sourceContext)
Creates a tabular source. |
Method Summary | |
---|---|
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 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. |
Methods inherited from class java.util.Observable |
---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
---|
equals |
Constructor Detail |
---|
public TableSource(Node sourceDefinitionNode, ISourceContext sourceContext) throws PortalException
sourceDefinitionNode
- the source definition node.sourceContext
- the source context.
PortalException
Method Detail |
---|
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
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
protected String getDefaultProviderClass() throws PortalException
TabularSource
getDefaultProviderClass
in class TabularSource<ITableSourceField>
PortalException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |