|
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 | |||||||||
java.lang.Object
|
+--com.solarmetric.rd.kodo.impl.jdbc.runtime.AbstractRow
|
+--com.solarmetric.rd.kodo.impl.jdbc.meta.map.StateImageIndicator.CustomUpdate
Row implementation we use to pass to versionable mappings so they can set up the where conditions we need to add to update statements.
| Field Summary |
| Fields inherited from interface com.solarmetric.rd.kodo.impl.jdbc.runtime.Row |
ACTION_DELETE, ACTION_INSERT, ACTION_UPDATE |
| Method Summary | |
void |
flushAllRows(com.solarmetric.rd.kodo.impl.jdbc.runtime.Row row)
Flush the logical row. |
void |
flushSecondaryRow(com.solarmetric.rd.kodo.impl.jdbc.runtime.Row row)
Flush the secondary row; after flushing the row is available for reuse. |
com.solarmetric.rd.kodo.impl.jdbc.runtime.Row |
getAllRows(com.solarmetric.rd.kodo.impl.jdbc.schema.Table table,
int action)
Return a logical row representing an update that should be made to all rows of the given table. |
com.solarmetric.rd.kodo.impl.jdbc.runtime.Row |
getRow(com.solarmetric.rd.kodo.impl.jdbc.schema.Table table,
int action,
java.lang.Object oid,
boolean create)
Return the row for the given table and owner object, or null if create is false and the row has not already been created. |
com.solarmetric.rd.kodo.impl.jdbc.runtime.Row |
getSecondaryRow(com.solarmetric.rd.kodo.impl.jdbc.schema.Table table,
int action)
Return a row for the given secondary table. |
java.lang.String |
getSQL()
Return a boolean SQL expression that should be added to the WHERE clause of an UPDATE to test whether the current database record matches our stored version. |
void |
setObject(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.lang.Object val,
int metaType,
java.lang.Object arg)
Set the value of the given column in this row. |
int |
setParameters(java.sql.PreparedStatement stmnt,
int idx)
Set the prepared parameter values used in the SQL returned from getSQL(). |
void |
whereObject(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.lang.Object val,
int metaType,
java.lang.Object arg)
Set an equality condition on the value of the given column in this row. |
| Methods inherited from class com.solarmetric.rd.kodo.impl.jdbc.runtime.AbstractRow |
flushObjectId, getAction, getFailedObject, getTable, setArray, setAsciiStream, setBigDecimal, setBigInteger, setBinaryStream, setBlob, setBoolean, setByte, setBytes, setChar, setCharacterStream, setClob, setDate, setDate, setDouble, setFailedObject, setFloat, setForeignKey, setInt, setLocale, setLong, setNull, setPrimaryKey, setShort, setString, setTime, setTimestamp, toSQL, whereArray, whereAsciiStream, whereBigDecimal, whereBigInteger, whereBinaryStream, whereBlob, whereBoolean, whereByte, whereBytes, whereChar, whereCharacterStream, whereClob, whereDate, whereDate, whereDouble, whereFloat, whereForeignKey, whereInt, whereLocale, whereLong, whereNull, wherePrimaryKey, whereShort, whereString, whereTime, whereTimestamp |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public java.lang.String getSQL()
public int setParameters(java.sql.PreparedStatement stmnt,
int idx)
throws java.sql.SQLException
getSQL().
stmnt - the statement to parameterizeidx - the parameter index at which to start
java.sql.SQLException
public com.solarmetric.rd.kodo.impl.jdbc.runtime.Row getRow(com.solarmetric.rd.kodo.impl.jdbc.schema.Table table,
int action,
java.lang.Object oid,
boolean create)
RowManagercreate is false and the row has not already been created.
The action must be one of Row.ACTION_INSERT,
Row.ACTION_UPDATE, Row.ACTION_DELETE.
getRow in interface RowManager
public com.solarmetric.rd.kodo.impl.jdbc.runtime.Row getSecondaryRow(com.solarmetric.rd.kodo.impl.jdbc.schema.Table table,
int action)
RowManagerRow.ACTION_INSERT,
Row.ACTION_UPDATE, Row.ACTION_DELETE.
getSecondaryRow in interface RowManagerpublic void flushSecondaryRow(com.solarmetric.rd.kodo.impl.jdbc.runtime.Row row)
RowManager
flushSecondaryRow in interface RowManager
public com.solarmetric.rd.kodo.impl.jdbc.runtime.Row getAllRows(com.solarmetric.rd.kodo.impl.jdbc.schema.Table table,
int action)
RowManagerRow.ACTION_UPDATE, Row.ACTION_DELETE.
getAllRows in interface RowManagerpublic void flushAllRows(com.solarmetric.rd.kodo.impl.jdbc.runtime.Row row)
RowManager
flushAllRows in interface RowManager
public void setObject(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.lang.Object val,
int metaType,
java.lang.Object arg)
throws java.sql.SQLException
Row
setObject in interface Rowcol - the column being setval - the value for the columnmetaType - one of the constants from FieldMapping
indicating the type of the supplied valuearg - some JDBC types can use additional arguments
java.sql.SQLException
public void whereObject(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.lang.Object val,
int metaType,
java.lang.Object arg)
throws java.sql.SQLException
Row
whereObject in interface Rowcol - the column being setval - the value for the columnmetaType - one of the constants from FieldMapping
indicating the type of the supplied valuearg - some JDBC types can use additional arguments
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 | |||||||||