public class StatementMappingIndex extends Object
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
...
}
| Constructor and Description |
|---|
StatementMappingIndex(JavaTypeMapping mapping) |
| Modifier and Type | Method and Description |
|---|---|
void |
addParameterOccurrence(int[] positions)
Method to register statement position(s) that this mapping is used as a parameter.
|
String |
getColumnAlias()
Accessor for the column name alias (if any).
|
int[] |
getColumnPositions()
Accessor for the column position(s).
|
JavaTypeMapping |
getMapping() |
int |
getNumberOfParameterOccurrences()
Accessor for the number of times this mapping is used as a parameter.
|
int[] |
getParameterPositionsForOccurrence(int num)
Accessor for the parameter positions for this occurrence of use of the mapping as a parameter.
|
void |
removeParameterOccurrence(int[] positions)
Method to deregister statement positions that this mapping is used as a parameter.
|
void |
setColumnAlias(String alias)
Mutator for the column name (alias).
|
void |
setColumnPositions(int[] pos)
Mutator for the column positions in the result clause of a statement.
|
void |
setMapping(JavaTypeMapping mapping) |
String |
toString()
Method to return a string version of this object.
|
public StatementMappingIndex(JavaTypeMapping mapping)
public JavaTypeMapping getMapping()
public void setMapping(JavaTypeMapping mapping)
public String getColumnAlias()
public void setColumnAlias(String alias)
alias - The name of the column (alias).public int[] getColumnPositions()
public void setColumnPositions(int[] pos)
pos - The column position(s)public void addParameterOccurrence(int[] positions)
positions - The parameter positions in the statement.public void removeParameterOccurrence(int[] positions)
positions - The param positions to deregisterpublic int getNumberOfParameterOccurrences()
public int[] getParameterPositionsForOccurrence(int num)
num - The occurrence of using this mapping as a parameter.Copyright © 2013. All Rights Reserved.