net.ontopia.persistence.query.jdo
Class JDOQuery

java.lang.Object
  extended by net.ontopia.persistence.query.jdo.JDOQuery

public class JDOQuery
extends java.lang.Object

INTERNAL: JDOQL complete query. Represents a complete JDO query.


Field Summary
protected  boolean distinct
           
protected  JDOExpressionIF filter
           
protected  int limit
           
protected  int offset
           
protected  java.util.List orderby
           
protected  java.util.List param_names
           
protected  java.util.Map params
           
protected  java.util.List select
           
protected  java.util.Map variables
           
 
Constructor Summary
JDOQuery()
           
 
Method Summary
 void addAscending(JDOAggregateIF aggregate)
           
 void addAscending(JDOValueIF value)
           
 void addDescending(JDOAggregateIF aggregate)
           
 void addDescending(JDOValueIF value)
           
 void addOrderBy(JDOOrderBy job)
           
 void addParameter(java.lang.String name, java.lang.Class klass)
           
 void addSelect(JDOAggregateIF aggregate)
           
 void addSelect(JDOValueIF value)
           
 void addVariable(java.lang.String name, java.lang.Class klass)
           
protected  void checkExistingName(java.lang.String name)
           
 boolean getDistinct()
           
 JDOExpressionIF getFilter()
           
 int getLimit()
           
 int getOffset()
           
 java.util.List getOrderBy()
           
 java.util.List getParameterNames()
           
 java.lang.Class getParameterType(java.lang.String name)
           
 java.util.List getSelect()
           
 java.lang.String[] getSelectedColumnNames()
           
 int getVariableCount()
           
 java.util.Collection getVariableNames()
           
 java.lang.Class getVariableType(java.lang.String name)
           
 boolean hasParameterName(java.lang.String name)
           
 boolean hasVariableName(java.lang.String name)
           
 boolean isSetQuery()
           
 void setDistinct(boolean distinct)
           
 void setFilter(JDOExpressionIF 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

filter

protected JDOExpressionIF filter

distinct

protected boolean distinct

limit

protected int limit

offset

protected int offset

params

protected java.util.Map params

param_names

protected java.util.List param_names

variables

protected java.util.Map variables

select

protected java.util.List select

orderby

protected java.util.List orderby
Constructor Detail

JDOQuery

public JDOQuery()
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)

getParameterNames

public java.util.List getParameterNames()

hasParameterName

public boolean hasParameterName(java.lang.String name)

getParameterType

public java.lang.Class getParameterType(java.lang.String name)

addParameter

public void addParameter(java.lang.String name,
                         java.lang.Class klass)

getVariableCount

public int getVariableCount()

getVariableNames

public java.util.Collection getVariableNames()

hasVariableName

public boolean hasVariableName(java.lang.String name)

getVariableType

public java.lang.Class getVariableType(java.lang.String name)

addVariable

public void addVariable(java.lang.String name,
                        java.lang.Class klass)

checkExistingName

protected void checkExistingName(java.lang.String name)
                          throws java.lang.RuntimeException
Throws:
java.lang.RuntimeException

getFilter

public JDOExpressionIF getFilter()

setFilter

public void setFilter(JDOExpressionIF filter)

getSelect

public java.util.List getSelect()

getSelectedColumnNames

public java.lang.String[] getSelectedColumnNames()

addSelect

public void addSelect(JDOValueIF value)

addSelect

public void addSelect(JDOAggregateIF aggregate)

getOrderBy

public java.util.List getOrderBy()

addOrderBy

public void addOrderBy(JDOOrderBy job)

addAscending

public void addAscending(JDOValueIF value)

addDescending

public void addDescending(JDOValueIF value)

addAscending

public void addAscending(JDOAggregateIF aggregate)

addDescending

public void addDescending(JDOAggregateIF aggregate)

toString

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


Copyright © 2000-2012 Ontopia.