|
SolarMetric Kodo JDO 3.2.4 generated on January 7 2005 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--kodo.meta.QueryMetaData
Holds metadata about named queries.
Information stored in this instance gets transfered to
new Query instances.
| Constructor Summary | |
QueryMetaData(String name,
KodoQuery q)
|
|
QueryMetaData(String cls,
String name)
Construct a QueryMetaData with the given candidate class and
name. |
|
| Method Summary | |
String |
getCandidateClassName()
Return the class if any which this query is running on. |
long |
getEndIndex()
Return the end index for Query's range. |
String |
getFilter()
Return the filter for queries generated from this instance. |
String |
getGrouping()
Return the grouping statement for the |
Boolean |
getIgnoreCache()
Corresponds to Query#getIgnoreCache. |
String |
getImports()
Return the import statement for generated Query instances. |
boolean |
getIncludeSubclasses()
Return whether generated queries includes subclasses. |
String |
getLanguage()
Return the query language. |
String |
getName()
Return the name for this query. |
String |
getOrdering()
Return the ordering string. |
String |
getParameters()
Return the parameters statement for generated Query instances. |
String |
getQueryString()
The full query string, or null if none. |
QueryMetaDataRepository |
getRepository()
The repository this metadata belongs to. |
String |
getResult()
Return the result statement for the given Query. |
Class |
getResultClass()
Return the import statement for generated Query instances. |
File |
getSourceFile()
|
long |
getStartIndex()
Return the start index for Query's range. |
Boolean |
getUnique()
Return whether the query expects unique results. |
String |
getVariables()
Return the variables statement for generated Query instances. |
void |
setFilter(String filter)
Set the query filter for queries generated from this instance. |
void |
setFrom(KodoQuery query)
Initialize this instance from the values held in the specified KodoQuery. |
void |
setGrouping(String grouping)
Corresponds to Query#setGrouping. |
void |
setIgnoreCache(boolean ignore)
Corresponds to Query#setIgnoreCache. |
void |
setImports(String imports)
Corresponds to Query#declareImports. |
void |
setIncludeSubclasses(boolean include)
Indicate whether queries generated should include subclasses. |
void |
setInto(KodoQuery query)
Set query template information into the given concrete query instance. |
void |
setLanguage(String language)
Set the language for this query. |
void |
setOrdering(String ordering)
Corresponds to Query#setOrdering. |
void |
setParameters(String parameters)
Corresponds to Query#declareImports. |
void |
setQueryString(String query)
The full query string, or null if none. |
void |
setRange(long start,
long end)
Corresponds to Query#setRange. |
void |
setRepository(QueryMetaDataRepository repos)
The repository this metadata belongs to. |
void |
setResult(String result)
Corresponds to Query#setResult. |
void |
setResultClass(Class cls)
Corresponds to Query#setResultClass. |
void |
setSourceFile(File file)
|
void |
setUnique(boolean unique)
Corresponds to Query#setUnique. |
void |
setVariables(String variables)
Corresponds to Query#declareImports. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public QueryMetaData(String cls,
String name)
QueryMetaData with the given candidate class and
name. The candidate class can be null.
public QueryMetaData(String name,
KodoQuery q)
| Method Detail |
public String getName()
public String getCandidateClassName()
public QueryMetaDataRepository getRepository()
public void setRepository(QueryMetaDataRepository repos)
public String getLanguage()
public void setLanguage(String language)
public Boolean getIgnoreCache()
Query#getIgnoreCache. Null means default.public void setIgnoreCache(boolean ignore)
Query#setIgnoreCache.public boolean getIncludeSubclasses()
public void setIncludeSubclasses(boolean include)
public String getQueryString()
public void setQueryString(String query)
public String getFilter()
public void setFilter(String filter)
public String getOrdering()
public void setOrdering(String ordering)
Query#setOrdering.
public void setRange(long start,
long end)
Query#setRange.public long getStartIndex()
Query's range.public long getEndIndex()
Query's range.public String getImports()
public void setImports(String imports)
Query#declareImports.public String getParameters()
public void setParameters(String parameters)
Query#declareImports.public String getVariables()
public void setVariables(String variables)
Query#declareImports.public String getResult()
public void setResult(String result)
Query#setResult.public Boolean getUnique()
public void setUnique(boolean unique)
Query#setUnique.public String getGrouping()
public void setGrouping(String grouping)
Query#setGrouping.public Class getResultClass()
public void setResultClass(Class cls)
Query#setResultClass.public void setInto(KodoQuery query)
public void setFrom(KodoQuery query)
KodoQuery.public File getSourceFile()
getSourceFile in interface com.solarmetric.meta.SourceTrackerpublic void setSourceFile(File file)
|
SolarMetric Kodo JDO 3.2.4 generated on January 7 2005 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||