Package lumis.util.query
Class QueryBase
- java.lang.Object
-
- lumis.util.query.QueryBase
-
- Direct Known Subclasses:
QueryCreateTable
,QueryDelete
,QueryInsert
,QuerySelect
,QueryUpdate
@StableMinor(version="17.0", sinceVersion="4.0") public abstract class QueryBase extends java.lang.Object
Base object for all queries- Since:
- 4.0.0
- Version:
- $Revision$ $Date$
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Vector<QueryField>
fields
protected java.util.Vector<IQueryFilter>
filters
protected QueryTable
mainTable
The main table of this query.protected java.util.Vector<QueryAssignment>
queryAssignments
protected java.util.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(java.lang.String fieldId)
java.util.Vector<QueryField>
getFields()
java.util.Vector<IQueryFilter>
getFilters()
java.util.Vector<QueryAssignment>
getQueryAssignments()
QueryTable
getTable()
QueryTable
getTable(java.lang.String tableName)
QueryTable
getTableByRelationId(java.lang.String relationId)
java.util.Vector<QueryTable>
getTables()
void
setTable(QueryTable table)
-
-
-
Field Detail
-
fields
protected java.util.Vector<QueryField> fields
-
filters
protected java.util.Vector<IQueryFilter> filters
-
queryAssignments
protected java.util.Vector<QueryAssignment> queryAssignments
-
tables
protected java.util.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 java.util.Vector<QueryTable> getTables()
-
getTable
public QueryTable getTable(java.lang.String tableName)
-
getTableByRelationId
public QueryTable getTableByRelationId(java.lang.String relationId)
-
addFilter
public void addFilter(IQueryFilter filter)
-
getFilters
public java.util.Vector<IQueryFilter> getFilters()
-
addField
public void addField(QueryField field)
-
getFields
public java.util.Vector<QueryField> getFields()
-
getFieldById
public QueryField getFieldById(java.lang.String fieldId)
-
getQueryAssignments
public java.util.Vector<QueryAssignment> getQueryAssignments()
- Returns:
- Returns the queryAssignments.
-
addQueryAssignment
public void addQueryAssignment(QueryAssignment queryAssignment)
- Parameters:
queryAssignments
- The queryAssignments to set.
-
-