Package lumis.util.query
Class QueryBase
- java.lang.Object
-
- lumis.util.query.QueryBase
-
- Direct Known Subclasses:
QueryCreateTable
,QueryDelete
,QueryInsert
,QuerySelect
,QueryUpdate
@StableMinor(version="14.1", sinceVersion="4.0") public abstract class QueryBase extends Object
Base object for all queries- Since:
- 4.0.0
- Version:
- $Revision: 24683 $ $Date: 2021-08-23 18:55:58 -0300 (Mon, 23 Aug 2021) $
-
-
Field Summary
Fields Modifier and Type Field Description protected Vector<QueryField>
fields
protected Vector<IQueryFilter>
filters
protected QueryTable
mainTable
The main table of this query.protected Vector<QueryAssignment>
queryAssignments
protected Vector<QueryTable>
tables
-
Constructor Summary
Constructors Constructor Description QueryBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addField(QueryField field)
void
addFilter(IQueryFilter filter)
void
addQueryAssignment(QueryAssignment queryAssignment)
void
addTable(QueryTable table)
QueryField
getFieldById(String fieldId)
Vector<QueryField>
getFields()
Vector<IQueryFilter>
getFilters()
Vector<QueryAssignment>
getQueryAssignments()
QueryTable
getTable()
QueryTable
getTable(String tableName)
QueryTable
getTableByRelationId(String relationId)
Vector<QueryTable>
getTables()
void
setTable(QueryTable table)
-
-
-
Field Detail
-
fields
protected Vector<QueryField> fields
-
filters
protected Vector<IQueryFilter> filters
-
queryAssignments
protected Vector<QueryAssignment> queryAssignments
-
tables
protected Vector<QueryTable> tables
-
mainTable
protected QueryTable mainTable
The main table of this query.- Since:
- 4.2.0
-
-
Method Detail
-
getTable
public QueryTable getTable()
- Returns:
- Returns the table.
-
setTable
public void setTable(QueryTable table)
- Parameters:
table
- The table to set.
-
addTable
public void addTable(QueryTable table)
-
getTables
public Vector<QueryTable> getTables()
-
getTable
public QueryTable getTable(String tableName)
-
getTableByRelationId
public QueryTable getTableByRelationId(String relationId)
-
addFilter
public void addFilter(IQueryFilter filter)
-
getFilters
public Vector<IQueryFilter> getFilters()
-
addField
public void addField(QueryField field)
-
getFields
public Vector<QueryField> getFields()
-
getFieldById
public QueryField getFieldById(String fieldId)
-
getQueryAssignments
public Vector<QueryAssignment> getQueryAssignments()
- Returns:
- Returns the queryAssignments.
-
addQueryAssignment
public void addQueryAssignment(QueryAssignment queryAssignment)
- Parameters:
queryAssignments
- The queryAssignments to set.
-
-