Package org.apache.cayenne.map
Class DefaultEntityResultSegment
java.lang.Object
org.apache.cayenne.map.DefaultEntityResultSegment
- All Implemented Interfaces:
- EntityResultSegment
- Since:
- 3.0
- 
Constructor SummaryConstructorsConstructorDescriptionDefaultEntityResultSegment(ClassDescriptor classDescriptor, Map<String, String> fields, int offset) 
- 
Method SummaryModifier and TypeMethodDescriptionintReturns a zero-based column index of the first column of this segment in the ResultSet.getColumnPath(String resultSetLabel) Performs a reverse lookup of the column path for a given ResultSet label.Returns a map of ResultSet labels keyed by column paths.
- 
Constructor Details- 
DefaultEntityResultSegmentpublic DefaultEntityResultSegment(ClassDescriptor classDescriptor, Map<String, String> fields, int offset) 
 
- 
- 
Method Details- 
getClassDescriptor- Specified by:
- getClassDescriptorin interface- EntityResultSegment
 
- 
getFieldsDescription copied from interface:EntityResultSegmentReturns a map of ResultSet labels keyed by column paths. Note that ordering of fields in the returned map is generally undefined and should not be relied upon when processing query result sets.- Specified by:
- getFieldsin interface- EntityResultSegment
 
- 
getColumnOffsetpublic int getColumnOffset()Description copied from interface:EntityResultSegmentReturns a zero-based column index of the first column of this segment in the ResultSet.- Specified by:
- getColumnOffsetin interface- EntityResultSegment
 
- 
getColumnPathDescription copied from interface:EntityResultSegmentPerforms a reverse lookup of the column path for a given ResultSet label.- Specified by:
- getColumnPathin interface- EntityResultSegment
 
 
-