net.ontopia.persistence.query.sql
Class SQLQuery

java.lang.Object
  extended by net.ontopia.persistence.query.sql.SQLQuery

public class SQLQuery
extends java.lang.Object

INTERNAL: Represents an abstract SQL query. Holds SQL query information in a platform independent form.


Field Summary
protected  boolean distinct
           
protected  SQLExpressionIF filter
           
protected  int limit
           
protected  int offset
           
protected  java.util.List orderby
           
protected  java.util.List select
           
 
Constructor Summary
SQLQuery()
           
 
Method Summary
 void addAscending(SQLAggregateIF aggregate)
           
 void addAscending(SQLValueIF value)
           
 void addDescending(SQLAggregateIF aggregate)
           
 void addDescending(SQLValueIF value)
           
 void addOrderBy(SQLOrderBy sob)
           
 void addSelect(SQLAggregateIF aggregate)
           
 void addSelect(SQLValueIF value)
           
 boolean getDistinct()
           
 SQLExpressionIF getFilter()
           
 int getLimit()
           
 int getOffset()
           
 java.util.List getOrderBy()
           
 java.util.List getSelect()
           
 int getWidth()
           
 boolean isSetQuery()
           
 void setDistinct(boolean distinct)
           
 void setFilter(SQLExpressionIF filter)
           
 void setLimit(int limit)
           
 void setOffset(int offset)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

select

protected java.util.List select

distinct

protected boolean distinct

limit

protected int limit

offset

protected int offset

filter

protected SQLExpressionIF filter

orderby

protected java.util.List orderby
Constructor Detail

SQLQuery

public SQLQuery()
Method Detail

isSetQuery

public boolean isSetQuery()

getDistinct

public boolean getDistinct()

setDistinct

public void setDistinct(boolean distinct)

getLimit

public int getLimit()

setLimit

public void setLimit(int limit)

getOffset

public int getOffset()

setOffset

public void setOffset(int offset)

getSelect

public java.util.List getSelect()

addSelect

public void addSelect(SQLValueIF value)

addSelect

public void addSelect(SQLAggregateIF aggregate)

getWidth

public int getWidth()

getOrderBy

public java.util.List getOrderBy()

addOrderBy

public void addOrderBy(SQLOrderBy sob)

addAscending

public void addAscending(SQLValueIF value)

addDescending

public void addDescending(SQLValueIF value)

addAscending

public void addAscending(SQLAggregateIF aggregate)

addDescending

public void addDescending(SQLAggregateIF aggregate)

getFilter

public SQLExpressionIF getFilter()

setFilter

public void setFilter(SQLExpressionIF filter)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2000-2012 Ontopia.