Package lumis.content.table
Class ContentQueryBuilder
- java.lang.Object
-
- lumis.doui.table.QueryBuilder
-
- lumis.content.table.ContentQueryBuilder
-
public class ContentQueryBuilder extends QueryBuilder
This class is responsible for generating queries in the Content context. It extends theQueryBuilder
class handling Content Metadata information on the select, insert, update and delete queries.- Since:
- 4.0.0
- Version:
- $Revision: 22372 $ $Date: 2019-02-06 19:01:54 -0200 (Wed, 06 Feb 2019) $
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CONTENT_LOCALE_RELATION_ID
The relation id for the content locale table.static java.lang.String
CONTENT_PUBLICATION_RELATION_ID
The relation id for the content publication table.static java.lang.String
CONTENT_RELATION_ID
The relation id for the content table.static java.lang.String
CONTENT_VERSION_RELATION_ID
The relation id for the content version table.static java.lang.String
WORKFLOW_META_DATA_RELATION_ID
The relation id for the workflow metadata table.-
Fields inherited from class lumis.doui.table.QueryBuilder
mappings, parameters, primaryKey, source, sourceId, sourceNode, transaction
-
-
Constructor Summary
Constructors Constructor Description ContentQueryBuilder(IParameters parameters, TableSource source, ITransaction transaction)
Creates the object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addQueryTables(QueryBase queryBase)
Adds the appropriate meta data tables based on the meta data that the given content supports.-
Methods inherited from class lumis.doui.table.QueryBuilder
buildQueryDelete, buildQueryDelete, buildQueryInsert, buildQuerySelect, buildQueryUpdate, getFilter, getPrimaryKey, getPrimaryKeyFilterGroup, getSortOrders, getSource, getStartAtValue, getTable
-
-
-
-
Field Detail
-
CONTENT_PUBLICATION_RELATION_ID
public static final java.lang.String CONTENT_PUBLICATION_RELATION_ID
The relation id for the content publication table. This currently does not support multiple publication rules for a single content version.- Since:
- 4.2.0
- See Also:
QueryBase.getTableByRelationId(String)
, Constant Field Values
-
CONTENT_VERSION_RELATION_ID
public static final java.lang.String CONTENT_VERSION_RELATION_ID
The relation id for the content version table.- Since:
- 4.2.0
- See Also:
QueryBase.getTableByRelationId(String)
, Constant Field Values
-
CONTENT_LOCALE_RELATION_ID
public static final java.lang.String CONTENT_LOCALE_RELATION_ID
The relation id for the content locale table.- Since:
- 4.2.0
- See Also:
QueryBase.getTableByRelationId(String)
, Constant Field Values
-
CONTENT_RELATION_ID
public static final java.lang.String CONTENT_RELATION_ID
The relation id for the content table.- Since:
- 4.2.0
- See Also:
QueryBase.getTableByRelationId(String)
, Constant Field Values
-
WORKFLOW_META_DATA_RELATION_ID
public static final java.lang.String WORKFLOW_META_DATA_RELATION_ID
The relation id for the workflow metadata table.- Since:
- 4.0.4
- See Also:
QueryBase.getTableByRelationId(String)
, Constant Field Values
-
-
Constructor Detail
-
ContentQueryBuilder
public ContentQueryBuilder(IParameters parameters, TableSource source, ITransaction transaction) throws PortalException
Creates the object.- Parameters:
parameters
- The IParameters implementation object that contains the operation parameterssource
- The represented source over which the operation will be executedtransaction
-- Throws:
PortalException
-
-
Method Detail
-
addQueryTables
protected void addQueryTables(QueryBase queryBase) throws PortalException
Adds the appropriate meta data tables based on the meta data that the given content supports. The tables are added to the query base with the appropriate joins.- Overrides:
addQueryTables
in classQueryBuilder
- Parameters:
queryBase
-- Throws:
PortalException
-
-