lumis.util.query
Class QueryBase

Package class diagram package QueryBase
java.lang.Object
  extended by lumis.util.query.QueryBase
Direct Known Subclasses:
QueryCreateTable, QueryDelete, QueryInsert, QuerySelect, QueryUpdate

@StableMinor(version="5.5",
             sinceVersion="4.0")
public abstract class QueryBase
extends Object

Base object for all queries

Since:
4.0.0

Field Summary
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
QueryBase()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
Constructor Detail

QueryBase

public QueryBase()
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.


Lumisportal  5.5.0.091130 - Copyright © 2001-2007, Lumis. All Rights Reserved.