public abstract class AbstractVersioningDatasource extends AbstractDatasource implements VersioningDatasource
Datasource
directly in order to
VersioningDatasource.Version
Datasource.Sorting
EMPTY_VERSIONLIST
SORTORDER_ASC, SORTORDER_DESC, SORTORDER_NONE
Constructor and Description |
---|
AbstractVersioningDatasource(String id) |
Modifier and Type | Method and Description |
---|---|
int |
getCount(DatasourceFilter filter)
Get the number of objects in the datasource that match the given filter
|
int |
getCount(DatasourceFilter filter,
int versionTimestamp)
Get the number of resolvables matching the given filter at the
versionTimestamp
|
int |
getCount(DatasourceFilter filter,
Map specificParameters)
Get the number of objects in the datasource that match the given filter
|
Collection |
getResult(DatasourceFilter filter,
String[] prefillAttributes,
int versionTimestamp)
Get the resolvables matching the given datasource filter at the timestamp
|
Collection |
getResult(DatasourceFilter filter,
String[] prefillAttributes,
int start,
int count,
Datasource.Sorting[] sortedColumns,
int versionTimestamp)
Get the resolvables matching the given datasource filter at the timestamp
|
Collection |
getResult(DatasourceFilter filter,
String[] prefillAttributes,
int start,
int count,
Datasource.Sorting[] sortedColumns,
Map specificParameters)
Get the resolvables from the datasource that match the given datasource filter.
|
clone, getCount, getId, getResult, getResult, getResult, getResult, getResult, hasChanged, isValidAttribute, setId
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkRequirements, create, getCount, getResult, getVersions, isVersioning, setVersionTimestamp
clone, createDatasourceFilter, getCount, getCount2, getHandlePool, getId, getResult, getResult, getResult, getResult, getResult, getResult, hasChanged, hasChanged, isValidAttribute, setAttributeNames, setRuleTree
public AbstractVersioningDatasource(String id)
public int getCount(DatasourceFilter filter, Map specificParameters) throws DatasourceException
Datasource
getCount
in interface Datasource
filter
- datasource filterspecificParameters
- map of specific parameters, which will be
interpreted by some specific Datasources, may be null or empty (no
specific parameters)DatasourceException
Datasource.createDatasourceFilter(Expression)
public int getCount(DatasourceFilter filter) throws DatasourceException
Datasource
getCount
in interface Datasource
getCount
in class AbstractDatasource
filter
- datasource filterDatasourceException
Datasource.createDatasourceFilter(Expression)
public int getCount(DatasourceFilter filter, int versionTimestamp) throws DatasourceException
VersioningDatasource
getCount
in interface VersioningDatasource
filter
- datasource filterversionTimestamp
- version timestamp, -1 for current versionsDatasourceException
public Collection getResult(DatasourceFilter filter, String[] prefillAttributes, int versionTimestamp) throws DatasourceException
VersioningDatasource
getResult
in interface VersioningDatasource
filter
- datasource filterprefillAttributes
- array of attribute names to prefill (null or empty for no prefilling)versionTimestamp
- version timestamp (-1 for current versions)DatasourceException
public Collection getResult(DatasourceFilter filter, String[] prefillAttributes, int start, int count, Datasource.Sorting[] sortedColumns, int versionTimestamp) throws DatasourceException
VersioningDatasource
getResult
in interface VersioningDatasource
filter
- datasource filterprefillAttributes
- array of attribute names to prefill (null or empty for no prefilling)start
- index of the first returned objectcount
- maximum number of objects returned, -1 for all objectssortedColumns
- sorted columns, may be null (no sorting used)versionTimestamp
- version timestamp (-1 for current versions)DatasourceException
public Collection getResult(DatasourceFilter filter, String[] prefillAttributes, int start, int count, Datasource.Sorting[] sortedColumns, Map specificParameters) throws DatasourceException
Datasource
getResult
in interface Datasource
filter
- datasource filterprefillAttributes
- array of attribute names to prefill (null or empty for no prefilling)start
- index of the first object to returncount
- maximum number of objects to return (-1 for all objects).sortedColumns
- possible sorting (may be null for "no sorting")specificParameters
- map of specific parameters, which will be
interpreted by some specific Datasources, may be null or empty (no
specific parameters)DatasourceException
Datasource.createDatasourceFilter(Expression)
Copyright © 2015 Gentics Software GmbH. All Rights Reserved.