|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.objectweb.speedo.query.lib.QueryDefinitionImpl
is a basic implementation of the QueryDefinition interface.
| Field Summary | |
|---|---|
protected java.lang.Class |
candidateClass
Class of candadate classes. |
protected java.util.Collection |
candidateInstances
Candidate classes or extent for the query. |
protected javax.jdo.Extent |
extentClass
|
protected java.lang.String |
filter
Query filter. |
protected java.lang.String |
grouping
|
protected boolean |
ignoreCache
IgnoreCache option. |
protected java.util.List |
importStatements
the import statements is transformed into a simple vector |
protected long |
indexFirst
|
protected long |
indexLast
|
protected java.util.List |
order
|
protected java.lang.String |
parameters
Query parameters and variables declaration |
protected java.lang.String |
result
|
protected java.lang.Class |
resultClass
|
protected boolean |
unique
|
protected java.lang.String |
variables
|
protected boolean |
withPrefetch
|
| 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()
|
javax.jdo.Extent |
getExtent()
|
java.lang.String |
getFilter()
|
java.lang.String |
getGrouping()
List of grouped fields |
java.util.List |
getImportStatements()
|
boolean |
getIncludeSubClasses()
indicates if subclasses must be returned too |
long |
getIndexFirst()
The application may want to skip some number of results that may have been previously returned, and additionally may want to limit the number of instances returned from a query. |
long |
getIndexLast()
The application may want to skip some number of results that may have been previously returned, and additionally may want to limit the number of instances returned from a query. |
java.util.List |
getOrder()
|
java.lang.String |
getParameters()
|
java.lang.String |
getResult()
The application wmight want to get results from a query that are not instance of the candidate class. |
java.lang.Class |
getResultClass()
The application may have a user-defined class that best represents the results of a query. |
boolean |
getUnique()
If the application knows that there can be exactly zero or one instance returned from a query, the result of the query is most conveniently returned as an instance (possibily null) instead of a Collection. |
java.lang.String |
getVariables()
|
int |
hashCode()
|
boolean |
isCollection()
|
boolean |
isIgnoreCache()
|
java.lang.String |
qdToString(boolean oneLine)
|
java.lang.String |
toString()
|
boolean |
withPrefetch()
|
void |
withPrefetch(boolean withPrefetch)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected boolean ignoreCache
protected java.util.Collection candidateInstances
protected javax.jdo.Extent extentClass
protected java.lang.Class candidateClass
protected java.lang.String filter
protected java.lang.String parameters
protected java.lang.String variables
protected java.util.List importStatements
protected java.util.List order
protected transient long indexFirst
protected transient long indexLast
protected boolean unique
protected java.lang.String result
protected java.lang.Class resultClass
protected boolean withPrefetch
protected java.lang.String grouping
| Constructor Detail |
public QueryDefinitionImpl()
public QueryDefinitionImpl(QueryDefinition qd)
| Method Detail |
public void defineWith(QueryDefinition qd)
public java.lang.Class getCandidateClass()
getCandidateClass in interface QueryDefinitionpublic boolean isCollection()
isCollection in interface QueryDefinitionpublic java.util.Collection getCollection()
getCollection in interface QueryDefinitionpublic java.lang.String getParameters()
getParameters in interface QueryDefinitionpublic java.lang.String getVariables()
getVariables in interface QueryDefinitionpublic java.lang.String getFilter()
getFilter in interface QueryDefinitionpublic javax.jdo.Extent getExtent()
getExtent in interface QueryDefinitionpublic java.util.List getImportStatements()
getImportStatements in interface QueryDefinitionpublic boolean isIgnoreCache()
isIgnoreCache in interface QueryDefinitionpublic java.util.List getOrder()
getOrder in interface QueryDefinitionpublic long getIndexFirst()
QueryDefinition
getIndexFirst in interface QueryDefinitionpublic long getIndexLast()
QueryDefinition
getIndexLast in interface QueryDefinitionpublic boolean getUnique()
QueryDefinition
getUnique in interface QueryDefinitionpublic java.lang.String getResult()
QueryDefinition
getResult in interface QueryDefinitionpublic java.lang.Class getResultClass()
QueryDefinition
getResultClass in interface QueryDefinitionpublic boolean getIncludeSubClasses()
QueryDefinition
getIncludeSubClasses in interface QueryDefinitionpublic java.lang.String getGrouping()
QueryDefinition
getGrouping in interface QueryDefinitionpublic boolean withPrefetch()
withPrefetch in interface QueryDefinitionpublic void withPrefetch(boolean withPrefetch)
withPrefetch in interface QueryDefinitionpublic java.lang.String toString()
public java.lang.String qdToString(boolean oneLine)
qdToString in interface QueryDefinitionpublic int hashCode()
hashCode in interface QueryDefinitionpublic boolean equals(java.lang.Object obj)
equals in interface QueryDefinition
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||