|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jpox.store.StatementExpressionIndex
Maintain an index for the mapping field vs columns in a JDBC statement. Each field for a Request (in a Statement) must have one instance of this containing the field Number + Mapping + the columns
e.g. CLASS FIELDNUMBER MAPPING TABLE EXPRESSION INDEX (JDBC) ----------------- ----------- -------------- ---------------- ---------------- class A --> --> --> TABLE_A { int fieldA; --> 1 --> IntegerMapping --> COL_FIELDA --> 1 String fieldB; --> 2 --> StringMapping --> COL_FIELDB_PART1 --> 2 --> --> --> COL_FIELDB_PART2 --> 3 ... }
Constructor Summary | |
StatementExpressionIndex()
|
Method Summary | |
java.lang.String |
getColumnName()
Accessor for the column name (if any). |
int[] |
getExpressionIndex()
Accessor for the expression index(es). |
JavaTypeMapping |
getMapping()
Accessor for the mapping for the field. |
int[] |
getParameterIndex()
Accessor for the parameter index(es). |
void |
setColumnName(java.lang.String colName)
Mutator for the column name (alias). |
void |
setExpressionIndex(int[] is)
Mutator for the JDBC expression index(es). |
void |
setMapping(JavaTypeMapping mapping)
Mutator for the mapping for the field. |
void |
setParameterIndex(int[] is)
|
java.lang.String |
toString()
Method to return a string version of this object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public StatementExpressionIndex()
Method Detail |
public int[] getExpressionIndex()
public JavaTypeMapping getMapping()
public java.lang.String getColumnName()
public void setExpressionIndex(int[] is)
is
- The expression indexpublic void setMapping(JavaTypeMapping mapping)
mapping
- The mappingpublic void setColumnName(java.lang.String colName)
colName
- The name of the column (alias).public int[] getParameterIndex()
public void setParameterIndex(int[] is)
is
- The parameter indexpublic java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |