|
||||||||||
| 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_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 | |
|---|---|
QueryResultMapping(String name,
MappingRepository repos)
Construct with the given name. |
|
| Method Summary | |
|---|---|
void |
addColumnResult(Object id)
Add the id of a mapped column in the query result. |
QueryResultMapping.PCResult |
addPCResult(Class<?> candidate)
Add a mapped persistence-capable result with the given candidate type. |
int |
getColNumber()
|
Object[] |
getColumnResults()
Ids of mapped scalar columns in the result. |
String[] |
getComments()
|
Class<?> |
getDefiningType()
The class that defines this query result, or null if none. |
int |
getLineNumber()
|
int |
getListingIndex()
Relative order of result mapping in metadata. |
String |
getName()
Return the name for this query result. |
QueryResultMapping.PCResult[] |
getPCResults()
Return the mapped persistence-capable types in the query result. |
String |
getResourceName()
|
File |
getSourceFile()
|
int |
getSourceMode()
The source mode of this query result. |
Object |
getSourceScope()
|
int |
getSourceType()
|
void |
setColNumber(int colNum)
|
void |
setComments(String[] comments)
|
void |
setDefiningType(Class<?> cls)
The class that defines this query result, or null if none. |
void |
setLineNumber(int lineNum)
|
void |
setListingIndex(int idx)
Relative order of result mapping in metadata. |
void |
setSource(File file,
Object scope,
int srcType)
|
void |
setSourceMode(int mode)
The source mode of this query result. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
QueryResultMapping(String name,
MappingRepository repos)
| Method Detail |
|---|
public String getName()
public Class<?> getDefiningType()
public void setDefiningType(Class<?> cls)
public Object[] getColumnResults()
Resultpublic void addColumnResult(Object id)
Resultpublic QueryResultMapping.PCResult[] getPCResults()
public QueryResultMapping.PCResult addPCResult(Class<?> candidate)
public int getSourceMode()
public void setSourceMode(int mode)
public int getListingIndex()
public void setListingIndex(int idx)
public String toString()
toString in class Objectpublic String[] getComments()
getComments in interface Commentablepublic void setComments(String[] comments)
setComments in interface Commentablepublic File getSourceFile()
getSourceFile in interface SourceTrackerpublic Object getSourceScope()
getSourceScope in interface SourceTrackerpublic int getSourceType()
getSourceType in interface SourceTracker
public void setSource(File file,
Object scope,
int srcType)
public String getResourceName()
getResourceName in interface SourceTrackerpublic int getLineNumber()
getLineNumber in interface SourceTrackerpublic void setLineNumber(int lineNum)
public int getColNumber()
getColNumber in interface SourceTrackerpublic void setColNumber(int colNum)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||