org.objectweb.speedo.query.lib
Class QueryDefinitionImpl

java.lang.Object
  extended byorg.objectweb.speedo.query.lib.QueryDefinitionImpl
All Implemented Interfaces:
QueryDefinition
Direct Known Subclasses:
SpeedoQuery

public class QueryDefinitionImpl
extends java.lang.Object
implements QueryDefinition

Author:
S.Chassande-Barrioz

Field Summary
protected  java.lang.Class candidateClass
          Class of candadate classes.
protected  java.util.Collection candidateInstances
          Candidate classes or extent for the query.
protected  Extent extentClass
           
protected  java.lang.String filter
          Query filter.
protected  boolean ignoreCache
          IgnoreCache option.
protected  java.util.List importStatements
          the import statements is transformed into a simple vector
protected  java.util.List order
           
protected  java.lang.String parameters
          Query parameters and variables declaration
protected  java.lang.String variables
           
 
Constructor Summary
QueryDefinitionImpl()
           
QueryDefinitionImpl(QueryDefinition qd)
           
 
Method Summary
 void defineWith(QueryDefinition qd)
           
 boolean equals(java.lang.Object obj)
           
 java.lang.Class getCandidateClass()
           
 java.util.Collection getCollection()
           
 Extent getExtent()
           
 java.lang.String getFilter()
           
 java.util.List getImportStatements()
           
 java.util.List getOrder()
           
 java.lang.String getParameters()
           
 java.lang.String getVariables()
           
 int hashCode()
           
 boolean isCollection()
           
 boolean isIgnoreCache()
           
 java.lang.String qdToString(boolean oneLine)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ignoreCache

protected boolean ignoreCache
IgnoreCache option. The ignoreCache option setting specifies whether the query should execute entirely in the back end, instead of in the cache. If this flag is set to true, an implementation might be able to optimize the query execution by ignoring changed values in the cache. For optimistic transactions, this can dramatically improve query response times.


candidateInstances

protected java.util.Collection candidateInstances
Candidate classes or extent for the query.


extentClass

protected Extent extentClass

candidateClass

protected java.lang.Class candidateClass
Class of candadate classes.


filter

protected java.lang.String filter
Query filter.


parameters

protected java.lang.String parameters
Query parameters and variables declaration


variables

protected java.lang.String variables

importStatements

protected java.util.List importStatements
the import statements is transformed into a simple vector


order

protected java.util.List order
Constructor Detail

QueryDefinitionImpl

public QueryDefinitionImpl()

QueryDefinitionImpl

public QueryDefinitionImpl(QueryDefinition qd)
Method Detail

defineWith

public void defineWith(QueryDefinition qd)

getCandidateClass

public java.lang.Class getCandidateClass()
Specified by:
getCandidateClass in interface QueryDefinition

isCollection

public boolean isCollection()
Specified by:
isCollection in interface QueryDefinition

getCollection

public java.util.Collection getCollection()
Specified by:
getCollection in interface QueryDefinition

getParameters

public java.lang.String getParameters()
Specified by:
getParameters in interface QueryDefinition

getVariables

public java.lang.String getVariables()
Specified by:
getVariables in interface QueryDefinition

getFilter

public java.lang.String getFilter()
Specified by:
getFilter in interface QueryDefinition

getExtent

public Extent getExtent()
Specified by:
getExtent in interface QueryDefinition

getImportStatements

public java.util.List getImportStatements()
Specified by:
getImportStatements in interface QueryDefinition

isIgnoreCache

public boolean isIgnoreCache()
Specified by:
isIgnoreCache in interface QueryDefinition

getOrder

public java.util.List getOrder()
Specified by:
getOrder in interface QueryDefinition

qdToString

public java.lang.String qdToString(boolean oneLine)
Specified by:
qdToString in interface QueryDefinition

hashCode

public int hashCode()
Specified by:
hashCode in interface QueryDefinition

equals

public boolean equals(java.lang.Object obj)
Specified by:
equals in interface QueryDefinition