org.xorm.query
Class QueryImpl

java.lang.Object
  |
  +--org.xorm.query.QueryImpl
All Implemented Interfaces:
I15d, Query, Serializable

public class QueryImpl
extends Object
implements Query, I15d

Implementation of JDO query interface. This is a wrapper around a QueryLanguage object, which returns an Expression.

See Also:
Serialized Form

Field Summary
protected  boolean compiled
           
protected  PersistenceManager mgr
           
protected  QueryLanguage query
           
 
Fields inherited from interface org.xorm.I15d
I18N
 
Constructor Summary
QueryImpl(PersistenceManager mgr)
           
QueryImpl(PersistenceManager mgr, QueryImpl other)
           
QueryImpl(PersistenceManager mgr, QueryLanguage query)
           
 
Method Summary
 void close(Object object)
           
 void closeAll()
           
 void compile()
           
 void declareImports(String imports)
           
 void declareParameters(String parameters)
           
 void declareVariables(String variables)
           
 Object execute()
           
 Object execute(Object param)
           
 Object execute(Object param0, Object param1)
           
 Object execute(Object param0, Object param1, Object param2)
           
 Object executeWithArray(Object[] array)
           
 Object executeWithMap(Map map)
           
 BoundExpression getBoundExpression()
           
 Class getCandidateClass()
           
 boolean getIgnoreCache()
           
 QueryOrdering[] getOrdering()
           
 PersistenceManager getPersistenceManager()
           
 void setCandidates(Collection collection)
           
 void setCandidates(Extent extent)
           
 void setClass(Class clazz)
           
 void setFilter(String filter)
           
 void setIgnoreCache(boolean ignoreCache)
           
 void setOrdering(String ordering)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mgr

protected PersistenceManager mgr

query

protected QueryLanguage query

compiled

protected boolean compiled
Constructor Detail

QueryImpl

public QueryImpl(PersistenceManager mgr)

QueryImpl

public QueryImpl(PersistenceManager mgr,
                 QueryLanguage query)

QueryImpl

public QueryImpl(PersistenceManager mgr,
                 QueryImpl other)
Method Detail

getPersistenceManager

public PersistenceManager getPersistenceManager()
Specified by:
getPersistenceManager in interface Query

setClass

public void setClass(Class clazz)
Specified by:
setClass in interface Query

getCandidateClass

public Class getCandidateClass()

setFilter

public void setFilter(String filter)
Specified by:
setFilter in interface Query

declareVariables

public void declareVariables(String variables)
Specified by:
declareVariables in interface Query

declareParameters

public void declareParameters(String parameters)
Specified by:
declareParameters in interface Query

compile

public void compile()
Specified by:
compile in interface Query

getBoundExpression

public BoundExpression getBoundExpression()

execute

public Object execute()
Specified by:
execute in interface Query

execute

public Object execute(Object param)
Specified by:
execute in interface Query

execute

public Object execute(Object param0,
                      Object param1)
Specified by:
execute in interface Query

execute

public Object execute(Object param0,
                      Object param1,
                      Object param2)
Specified by:
execute in interface Query

executeWithMap

public Object executeWithMap(Map map)
Specified by:
executeWithMap in interface Query

executeWithArray

public Object executeWithArray(Object[] array)
Specified by:
executeWithArray in interface Query

setCandidates

public void setCandidates(Extent extent)
Specified by:
setCandidates in interface Query

setCandidates

public void setCandidates(Collection collection)
Specified by:
setCandidates in interface Query

declareImports

public void declareImports(String imports)
Specified by:
declareImports in interface Query

setOrdering

public void setOrdering(String ordering)
Specified by:
setOrdering in interface Query

getOrdering

public QueryOrdering[] getOrdering()

setIgnoreCache

public void setIgnoreCache(boolean ignoreCache)
Specified by:
setIgnoreCache in interface Query

getIgnoreCache

public boolean getIgnoreCache()
Specified by:
getIgnoreCache in interface Query

close

public void close(Object object)
Specified by:
close in interface Query

closeAll

public void closeAll()
Specified by:
closeAll in interface Query

toString

public String toString()
Overrides:
toString in class Object


$Header: /cvsroot/xorm/xorm/docs/api/org/xorm/query/QueryImpl.html,v 1.9 2004/05/30 08:55:08 wbiggs Exp $