lumis.content.table
Class ContentQueryBuilder

Package class diagram package ContentQueryBuilder
java.lang.Object
  extended by lumis.doui.table.QueryBuilder
      extended by lumis.content.table.ContentQueryBuilder

public class ContentQueryBuilder
extends QueryBuilder

This class is responsible for generating queries in the Content context. It extends the QueryBuilder class handling Content Metadata information on the select, insert, update and delete queries.

Since:
4.0.0

Field Summary
static String META_DATA_RELATION_ID
          The relation id for the content metadata table.
static String META_DATA_VERSION_RELATION_ID
          The relation id for the content metadata version table.
static 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
ContentQueryBuilder(IParameters parameters, TableSource source, ITransaction transaction)
          Creates the object.
 
Method Summary
protected  void addQueryTables(QueryBase queryBase)
          Adds the appropriate meta data tables based on the meta data that the given content supports.
protected  QueryTable getMetaDataTable()
          Creates and returns the Meta Data table
protected  QueryTable getMetaDataVersionTable()
          Creates and returns the Meta Data Version table
 
Methods inherited from class lumis.doui.table.QueryBuilder
buildQueryDelete, buildQueryDelete, buildQueryInsert, buildQuerySelect, buildQueryUpdate, getFilter, getPrimaryKey, getPrimaryKeyFilterGroup, getSortOrders, getSource, getStartAtValue, getTable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

META_DATA_RELATION_ID

public static final String META_DATA_RELATION_ID
The relation id for the content metadata table.

Since:
4.0.4
See Also:
QueryBase.getTableByRelationId(String), Constant Field Values

META_DATA_VERSION_RELATION_ID

public static final String META_DATA_VERSION_RELATION_ID
The relation id for the content metadata version table.

Since:
4.0.4
See Also:
QueryBase.getTableByRelationId(String), Constant Field Values

WORKFLOW_META_DATA_RELATION_ID

public static final 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 parameters
source - The represented source over wich the operation will be executed
transaction -
Throws:
PortalException
Method Detail

getMetaDataTable

protected QueryTable getMetaDataTable()
                               throws PortalException
Creates and returns the Meta Data table

Returns:
Throws:
PortalException

getMetaDataVersionTable

protected QueryTable getMetaDataVersionTable()
                                      throws PortalException
Creates and returns the Meta Data Version table

Returns:
Throws:
PortalException

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 class QueryBuilder
Parameters:
queryBase -
Throws:
PortalException


Lumisportal  4.1.0.071221 - Copyright © 2001-2007, Lumis. All Rights Reserved.