|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.openjpa.meta.QueryMetaData
public class QueryMetaData
Holds metadata about named queries.
Information stored in this instance gets transfered to
new Query
instances.
Field Summary |
---|
Fields inherited from interface org.apache.openjpa.meta.MetaDataModes |
---|
MODE_ALL, MODE_ANN_MAPPING, MODE_MAPPING, MODE_MAPPING_INIT, MODE_META, MODE_NONE, MODE_QUERY |
Fields inherited from interface org.apache.openjpa.lib.meta.SourceTracker |
---|
SRC_ANNOTATIONS, SRC_OTHER, SRC_XML |
Fields inherited from interface org.apache.openjpa.lib.xml.Commentable |
---|
EMPTY_COMMENTS |
Constructor Summary | |
---|---|
protected |
QueryMetaData(String name)
Construct with the given name. |
Method Summary | |
---|---|
void |
addHint(String key,
Object value)
Add a query hint. |
Class |
getCandidateType()
The query candidate class, or null if none. |
int |
getColNumber()
|
String[] |
getComments()
|
Class |
getDefiningType()
The class that defines this query, or null if none. |
String[] |
getHintKeys()
Query hints. |
Object[] |
getHintValues()
Query hints. |
String |
getLanguage()
Return the query language. |
int |
getLineNumber()
|
String |
getName()
Return the name for this query. |
String |
getQueryString()
The full query string, or null if none. |
String |
getResourceName()
|
String |
getResultSetMappingName()
|
Class |
getResultType()
The query result class, or null if none. |
File |
getSourceFile()
|
int |
getSourceMode()
The source mode of this query. |
Object |
getSourceScope()
|
int |
getSourceType()
|
boolean |
isReadOnly()
Whether the query has been marked read-only. |
void |
setCandidateType(Class cls)
The query result class, or null if none. |
void |
setColNumber(int colNum)
|
void |
setComments(String[] comments)
|
void |
setDefiningType(Class cls)
The class that defines this query, or null if none. |
void |
setFrom(Query query)
Initialize this instance from the values held in the specified Query . |
void |
setInto(Query query)
Set query template information into the given concrete query instance. |
void |
setLanguage(String language)
Set the language for this query. |
void |
setLineNumber(int lineNum)
|
void |
setQueryString(String query)
The full query string, or null if none. |
void |
setReadOnly(boolean readOnly)
Whether the query has been marked read-only. |
void |
setResultSetMappingName(String setMappingName)
|
void |
setResultType(Class cls)
The query result class, or null if none. |
void |
setSource(File file,
Object scope,
int srcType)
|
void |
setSourceMode(int mode)
The source mode of this query. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected QueryMetaData(String name)
Method Detail |
---|
public String getName()
public Class getDefiningType()
public void setDefiningType(Class cls)
public boolean isReadOnly()
public void setReadOnly(boolean readOnly)
public Class getCandidateType()
public void setCandidateType(Class cls)
public Class getResultType()
public void setResultType(Class cls)
public String getLanguage()
public void setLanguage(String language)
public String getQueryString()
public void setQueryString(String query)
public String[] getHintKeys()
public Object[] getHintValues()
public void addHint(String key, Object value)
public String getResultSetMappingName()
public void setResultSetMappingName(String setMappingName)
public void setInto(Query query)
public void setFrom(Query query)
Query
.
public int getSourceMode()
public void setSourceMode(int mode)
public String toString()
toString
in class Object
public String[] getComments()
getComments
in interface Commentable
public void setComments(String[] comments)
setComments
in interface Commentable
public File getSourceFile()
getSourceFile
in interface SourceTracker
public Object getSourceScope()
getSourceScope
in interface SourceTracker
public int getSourceType()
getSourceType
in interface SourceTracker
public void setSource(File file, Object scope, int srcType)
public String getResourceName()
getResourceName
in interface SourceTracker
public int getLineNumber()
getLineNumber
in interface SourceTracker
public void setLineNumber(int lineNum)
public int getColNumber()
getColNumber
in interface SourceTracker
public void setColNumber(int colNum)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |