Representation of a mapping in a statement (such as JDBC), and its mapping to the associated column(s) or parameters that the mapping relates to. The mapping may be for a field of a class (whether it is a real field or a surrogate), or for a parameter.
- Provides index positions of the column(s) of this field in the result clause of the statement
- Provides parameter position(s) if any of the column(s) are statement parameters, for input
For example, fields of a class in the result clause of a statement.
CLASS FIELDNUM MAPPING TABLE COLUMN POSITIONS ----------------- -------- -------------- ---------------- ---------------- class A --> --> --> TABLE_A { short fieldA; --> 1 --> ShortMapping --> COL_FIELDA --> 1 String fieldB; --> 2 --> StringMapping --> COL_FIELDB_PART1 --> 2 --> --> --> COL_FIELDB_PART2 --> 3 ... }