|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Field mappings for primary key fields must implement this interface.
| Method Summary | |
java.lang.Object |
getPrimaryKeyValue(com.solarmetric.rd.kodo.impl.jdbc.runtime.Result res,
com.solarmetric.rd.kodo.impl.jdbc.schema.Column[] cols,
int index)
Load the primary key value for this field from the given result. |
void |
setPrimaryKeyValue(com.solarmetric.rd.kodo.impl.jdbc.runtime.Row row,
com.solarmetric.rd.kodo.impl.jdbc.schema.Column[] cols,
int index,
java.lang.Object val,
boolean set)
Set the primary key value of this mapping into the given row. |
| Method Detail |
public java.lang.Object getPrimaryKeyValue(com.solarmetric.rd.kodo.impl.jdbc.runtime.Result res,
com.solarmetric.rd.kodo.impl.jdbc.schema.Column[] cols,
int index)
throws java.sql.SQLException
res - the result to load fromcols - the columns in the row corresponding to all the
primary key columns of the owning classindex - the index in the cols array of the first
column that belongs to this primary key mapping; any
additional primary key columns will be sequentially
after the index
java.sql.SQLException
public void setPrimaryKeyValue(com.solarmetric.rd.kodo.impl.jdbc.runtime.Row row,
com.solarmetric.rd.kodo.impl.jdbc.schema.Column[] cols,
int index,
java.lang.Object val,
boolean set)
throws java.sql.SQLException
row - the row to set intocols - the columns in the row corresponding to the primary
key columns in the owning classindex - the index in the cols array of the first
column that belongs to this primary key mapping; any
additional primary key columns will be sequentially
after the indexval - the Java value of this fieldset - if true, set the value into the row; if false, add
a where condition to the row
java.sql.SQLException
|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||