|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.openjpa.jdbc.meta.QueryResultMapping
public class QueryResultMapping
Mapping of a query result set to scalar and/or persistence-capable object-level values.
Nested Class Summary | |
---|---|
class |
QueryResultMapping.PCResult
A persistence-capable result. |
Field Summary |
---|
Fields inherited from interface org.apache.openjpa.meta.MetaDataModes |
---|
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 |
Method Summary | |
---|---|
void |
addColumnResult(java.lang.Object id)
Add the id of a mapped column in the query result. |
QueryResultMapping.PCResult |
addPCResult(java.lang.Class candidate)
Add a mapped persistence-capable result with the given candidate type. |
java.lang.Object[] |
getColumnResults()
Ids of mapped scalar columns in the result. |
java.lang.String[] |
getComments()
|
java.lang.Class |
getDefiningType()
The class that defines this query result, or null if none. |
int |
getListingIndex()
Relative order of result mapping in metadata. |
java.lang.String |
getName()
Return the name for this query result. |
QueryResultMapping.PCResult[] |
getPCResults()
Return the mapped persistence-capable types in the query result. |
java.lang.String |
getResourceName()
|
java.io.File |
getSourceFile()
|
int |
getSourceMode()
The source mode of this query result. |
java.lang.Object |
getSourceScope()
|
int |
getSourceType()
|
void |
setComments(java.lang.String[] comments)
|
void |
setDefiningType(java.lang.Class cls)
The class that defines this query result, or null if none. |
void |
setListingIndex(int idx)
Relative order of result mapping in metadata. |
void |
setSource(java.io.File file,
java.lang.Object scope,
int srcType)
|
void |
setSourceMode(int mode)
The source mode of this query result. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public java.lang.String getName()
public java.lang.Class getDefiningType()
public void setDefiningType(java.lang.Class cls)
public java.lang.Object[] getColumnResults()
Result
public void addColumnResult(java.lang.Object id)
Result
public QueryResultMapping.PCResult[] getPCResults()
public QueryResultMapping.PCResult addPCResult(java.lang.Class candidate)
public int getSourceMode()
public void setSourceMode(int mode)
public int getListingIndex()
public void setListingIndex(int idx)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String[] getComments()
getComments
in interface org.apache.openjpa.lib.xml.Commentable
public void setComments(java.lang.String[] comments)
setComments
in interface org.apache.openjpa.lib.xml.Commentable
public java.io.File getSourceFile()
getSourceFile
in interface org.apache.openjpa.lib.meta.SourceTracker
public java.lang.Object getSourceScope()
getSourceScope
in interface org.apache.openjpa.lib.meta.SourceTracker
public int getSourceType()
getSourceType
in interface org.apache.openjpa.lib.meta.SourceTracker
public void setSource(java.io.File file, java.lang.Object scope, int srcType)
public java.lang.String getResourceName()
getResourceName
in interface org.apache.openjpa.lib.meta.SourceTracker
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |