| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openjpa.jdbc.meta.QueryResultMapping.PCResult
public class QueryResultMapping.PCResult
A persistence-capable result.
| Field Summary | |
|---|---|
| static String | DISCRIMINATORPath token to represent a discriminator. | 
| Method Summary | |
|---|---|
|  void | addMapping(String path,
           Object id)Map the given path to the given result id. | 
|  Class | getCandidateType()The result candidate class. | 
|  ClassMapping | getCandidateTypeMapping()Candidate mapping. | 
|  BitSet | getExcludes(List path)Return the field indexes to exclude when loading data for the given path. | 
|  Object | getMapping(String path)Return the mapping id for the given path supplied with addMapping(java.lang.String, java.lang.Object), or null if none. | 
|  String[] | getMappingPaths()Return the raw mapping paths supplied with addMapping(java.lang.String, java.lang.Object), or
 empty array if none. | 
|  boolean | hasEager(List path,
         FieldMapping field)Return true if the mapped result contains eager data for the given field at the given path. | 
|  Object | map(List path,
    Object id,
    Joins joins)Map the given request onto a result id. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final String DISCRIMINATOR
| Method Detail | 
|---|
public Class getCandidateType()
public ClassMapping getCandidateTypeMapping()
public String[] getMappingPaths()
addMapping(java.lang.String, java.lang.Object), or
 empty array if none.
public Object getMapping(String path)
addMapping(java.lang.String, java.lang.Object), or null if none.
public void addMapping(String path,
                       Object id)
public Object map(List path,
                  Object id,
                  Joins joins)
path - stack of data requests (see
 Result.startDataRequest(java.lang.Object))id - requested id or column (see
 Result APIs)joins - requested joins, or null
public boolean hasEager(List path,
                        FieldMapping field)
path - stack of data requests (see
 Result.startDataRequest(java.lang.Object))public BitSet getExcludes(List path)
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||