lumis.doui.table
Class QueryBuilder
java.lang.Object
lumis.doui.table.QueryBuilder
- Direct Known Subclasses:
- ContentQueryBuilder
@StableMinor(version="6.1",
sinceVersion="4.0")
public class QueryBuilder
- extends java.lang.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 java.util.Map<java.lang.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 java.lang.String sourceId
sourceNode
protected org.w3c.dom.Node sourceNode
- Deprecated. this attribute should not exist in the future.
transaction
protected ITransaction transaction
primaryKey
protected java.lang.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 java.lang.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 java.util.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 6.1.0.111014 - Copyright © 2001-2007, Lumis. All Rights Reserved.