@StableMinor(version="12.3", sinceVersion="4.0") public class QueryBuilder extends Object
Modifier and Type | Field and Description |
---|---|
protected Map<String,TableSourceFieldMapping> |
mappings
A Map of source fields mappings.
|
protected IParameters |
parameters |
protected String |
primaryKey |
protected TableSource |
source |
protected String |
sourceId |
protected Node |
sourceNode
Deprecated.
this attribute should not exist in the future.
|
protected ITransaction |
transaction |
Constructor and Description |
---|
QueryBuilder(IParameters parameters,
TableSource source,
ITransaction transaction) |
Modifier and Type | Method and Description |
---|---|
protected void |
addQueryTables(QueryBase queryBase) |
QueryDelete |
buildQueryDelete() |
QueryDelete |
buildQueryDelete(boolean primaryKeysProvided) |
QueryInsert |
buildQueryInsert() |
QuerySelect |
buildQuerySelect() |
QueryUpdate |
buildQueryUpdate() |
protected IQueryFilter |
getFilter(QueryBase queryBase) |
String |
getPrimaryKey() |
protected QueryFilterGroup |
getPrimaryKeyFilterGroup(QueryBase queryBase) |
protected Vector<QuerySortOrder> |
getSortOrders(QueryBase queryBase) |
TableSource |
getSource() |
protected int |
getStartAtValue() |
QueryTable |
getTable(TableSource tableSource) |
protected Map<String,TableSourceFieldMapping> mappings
protected TableSource source
protected IParameters parameters
protected String sourceId
protected Node sourceNode
protected ITransaction transaction
protected String primaryKey
public QueryBuilder(IParameters parameters, TableSource source, ITransaction transaction) throws PortalException
PortalException
public QueryInsert buildQueryInsert() throws PortalException
PortalException
public QueryUpdate buildQueryUpdate() throws PortalException
PortalException
public QueryDelete buildQueryDelete() throws PortalException
PortalException
public QueryDelete buildQueryDelete(boolean primaryKeysProvided) throws PortalException
PortalException
public QuerySelect buildQuerySelect() throws PortalException
PortalException
protected void addQueryTables(QueryBase queryBase) throws PortalException
PortalException
public String getPrimaryKey()
public QueryTable getTable(TableSource tableSource) throws PortalException
PortalException
protected IQueryFilter getFilter(QueryBase queryBase) throws PortalException
PortalException
protected int getStartAtValue() throws PortalException
PortalException
protected Vector<QuerySortOrder> getSortOrders(QueryBase queryBase) throws PortalException
PortalException
protected QueryFilterGroup getPrimaryKeyFilterGroup(QueryBase queryBase) throws PortalException
PortalException
public TableSource getSource()
LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.