lumis.doui.table
Class QueryBuilder
java.lang.Object
lumis.doui.table.QueryBuilder
- Direct Known Subclasses:
- ContentQueryBuilder
@StableMinor(version="5.5",
sinceVersion="4.0")
public class QueryBuilder
- extends Object
Builds queries based on a source and parameters.
- Since:
- 4.0.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mappings
protected Map<String,TableSourceFieldMapping> mappings
- A Map of source fields mappings. The key is the fieldId and the value is the mapping instance.
- Since:
- 4.0.4
source
protected TableSource source
parameters
protected IParameters parameters
sourceId
protected String sourceId
sourceNode
protected Node sourceNode
- Deprecated. this attribute should not exist in the future.
transaction
protected ITransaction transaction
primaryKey
protected String primaryKey
QueryBuilder
public QueryBuilder(IParameters parameters,
TableSource source,
ITransaction transaction)
throws PortalException
- Throws:
PortalException
buildQueryInsert
public QueryInsert buildQueryInsert()
throws PortalException
- Throws:
PortalException
buildQueryUpdate
public QueryUpdate buildQueryUpdate()
throws PortalException
- Throws:
PortalException
buildQueryDelete
public QueryDelete buildQueryDelete()
throws PortalException
- Throws:
PortalException
buildQueryDelete
public QueryDelete buildQueryDelete(boolean primaryKeysProvided)
throws PortalException
- Throws:
PortalException
buildQuerySelect
public QuerySelect buildQuerySelect()
throws PortalException
- Throws:
PortalException
addQueryTables
protected void addQueryTables(QueryBase queryBase)
throws PortalException
- Throws:
PortalException
getPrimaryKey
public String getPrimaryKey()
getTable
public QueryTable getTable(TableSource tableSource)
throws PortalException
- Throws:
PortalException
getFilter
protected IQueryFilter getFilter(QueryBase queryBase)
throws PortalException
- Throws:
PortalException
getStartAtValue
protected int getStartAtValue()
throws PortalException
- Throws:
PortalException
getSortOrders
protected Vector<QuerySortOrder> getSortOrders(QueryBase queryBase)
throws PortalException
- Throws:
PortalException
getPrimaryKeyFilterGroup
protected QueryFilterGroup getPrimaryKeyFilterGroup(QueryBase queryBase)
throws PortalException
- Throws:
PortalException
getSource
public TableSource getSource()
- Returns:
- Returns the source.
Lumisportal 5.5.0.091130 - Copyright © 2001-2007, Lumis. All Rights Reserved.