|
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
Abstract Row implementation that funnels all methods to the
Row.setObject(com.solarmetric.rd.kodo.impl.jdbc.schema.Column, java.lang.Object, int, java.lang.Object) and Row.whereObject(com.solarmetric.rd.kodo.impl.jdbc.schema.Column, java.lang.Object, int, java.lang.Object) functions.
| Field Summary |
| Fields inherited from interface com.solarmetric.rd.kodo.impl.jdbc.runtime.Row |
ACTION_DELETE, ACTION_INSERT, ACTION_UPDATE |
| Constructor Summary | |
AbstractRow(com.solarmetric.rd.kodo.impl.jdbc.schema.Table table,
int action)
Constructor. |
|
| Method Summary | |
protected void |
flushObjectId(com.solarmetric.rd.kodo.impl.jdbc.schema.Column[] cols,
java.lang.Object oid,
com.solarmetric.rd.kodo.impl.jdbc.meta.ClassMapping mapping,
boolean set)
Flush the given oid value to the given columns. |
int |
getAction()
Return the action for this row. |
java.lang.Object |
getFailedObject()
This implementation returns null by default; override to track failed objects. |
com.solarmetric.rd.kodo.impl.jdbc.schema.Table |
getTable()
Return the table for this row. |
void |
setArray(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.sql.Array val)
Set the value of the given column in this row. |
void |
setAsciiStream(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.io.InputStream val,
int length)
Set the value of the given column in this row. |
void |
setBigDecimal(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.math.BigDecimal val)
Set the value of the given column in this row. |
void |
setBigInteger(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.math.BigInteger val)
Set the value of the given column in this row. |
void |
setBinaryStream(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.io.InputStream val,
int length)
Set the value of the given column in this row. |
void |
setBlob(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.sql.Blob val)
Set the value of the given column in this row. |
void |
setBoolean(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
boolean val)
Set the value of the given column in this row. |
void |
setByte(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
byte val)
Set the value of the given column in this row. |
void |
setBytes(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
byte[] val)
Set the value of the given column in this row. |
void |
setChar(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
char val)
Set the value of the given column in this row. |
void |
setCharacterStream(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.io.Reader val,
int length)
Set the value of the given column in this row. |
void |
setClob(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.sql.Clob val)
Set the value of the given column in this row. |
void |
setDate(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.util.Date val)
Set the value of the given column in this row. |
void |
setDate(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.sql.Date val,
java.util.Calendar cal)
Set the value of the given column in this row. |
void |
setDouble(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
double val)
Set the value of the given column in this row. |
void |
setFailedObject(java.lang.Object failed)
This implementation throws an exception by default; override to track failed objects. |
void |
setFloat(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
float val)
Set the value of the given column in this row. |
void |
setForeignKey(com.solarmetric.rd.kodo.impl.jdbc.schema.ForeignKey fk,
java.lang.Object oid,
com.solarmetric.rd.kodo.impl.jdbc.meta.ClassMapping mapping)
Set the value for the given foreign key. |
void |
setInt(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
int val)
Set the value of the given column in this row. |
void |
setLocale(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.util.Locale val)
Set the value of the given column in this row. |
void |
setLong(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
long val)
Set the value of the given column in this row. |
void |
setNull(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col)
Set the value of the given column in this row. |
void |
setPrimaryKey(java.lang.Object oid,
com.solarmetric.rd.kodo.impl.jdbc.meta.ClassMapping mapping)
Set the primary key to the given object's id. |
void |
setShort(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
short val)
Set the value of the given column in this row. |
void |
setString(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.lang.String val)
Set the value of the given column in this row. |
void |
setTime(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.sql.Time val,
java.util.Calendar cal)
Set the value of the given column in this row. |
void |
setTimestamp(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.sql.Timestamp val,
java.util.Calendar cal)
Set the value of the given column in this row. |
protected void |
toSQL(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.lang.Object val,
int type,
java.lang.Object arg,
com.solarmetric.rd.kodo.impl.jdbc.schema.DBDictionary dict,
java.sql.PreparedStatement stmnt,
int idx)
Translates the given value to a prepared parameter. |
void |
whereArray(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.sql.Array val)
Set an equality condition on the value of the given column in this row. |
void |
whereAsciiStream(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.io.InputStream val,
int length)
Set an equality condition on the value of the given column in this row. |
void |
whereBigDecimal(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.math.BigDecimal val)
Set an equality condition on the value of the given column in this row. |
void |
whereBigInteger(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.math.BigInteger val)
Set an equality condition on the value of the given column in this row. |
void |
whereBinaryStream(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.io.InputStream val,
int length)
Set an equality condition on the value of the given column in this row. |
void |
whereBlob(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.sql.Blob val)
Set an equality condition on the value of the given column in this row. |
void |
whereBoolean(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
boolean val)
Set an equality condition on the value of the given column in this row. |
void |
whereByte(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
byte val)
Set an equality condition on the value of the given column in this row. |
void |
whereBytes(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
byte[] val)
Set an equality condition on the value of the given column in this row. |
void |
whereChar(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
char val)
Set an equality condition on the value of the given column in this row. |
void |
whereCharacterStream(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.io.Reader val,
int length)
Set an equality condition on the value of the given column in this row. |
void |
whereClob(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.sql.Clob val)
Set an equality condition on the value of the given column in this row. |
void |
whereDate(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.util.Date val)
Set an equality condition on the value of the given column in this row. |
void |
whereDate(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.sql.Date val,
java.util.Calendar cal)
Set an equality condition on the value of the given column in this row. |
void |
whereDouble(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
double val)
Set an equality condition on the value of the given column in this row. |
void |
whereFloat(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
float val)
Set an equality condition on the value of the given column in this row. |
void |
whereForeignKey(com.solarmetric.rd.kodo.impl.jdbc.schema.ForeignKey fk,
java.lang.Object oid,
com.solarmetric.rd.kodo.impl.jdbc.meta.ClassMapping mapping)
Set the object id value for the given foreign key. |
void |
whereInt(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
int val)
Set an equality condition on the value of the given column in this row. |
void |
whereLocale(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.util.Locale val)
Set an equality condition on the value of the given column in this row. |
void |
whereLong(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
long val)
Set an equality condition on the value of the given column in this row. |
void |
whereNull(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col)
Set an equality condition on the value of the given column in this row. |
void |
wherePrimaryKey(java.lang.Object oid,
com.solarmetric.rd.kodo.impl.jdbc.meta.ClassMapping mapping)
Set the primary key equality criteria for this row. |
void |
whereShort(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
short val)
Set an equality condition on the value of the given column in this row. |
void |
whereString(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.lang.String val)
Set an equality condition on the value of the given column in this row. |
void |
whereTime(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.sql.Time val,
java.util.Calendar cal)
Set an equality condition on the value of the given column in this row. |
void |
whereTimestamp(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.sql.Timestamp val,
java.util.Calendar cal)
Set an equality condition on the value of the given column in this row. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.solarmetric.rd.kodo.impl.jdbc.runtime.Row |
setObject, whereObject |
| Constructor Detail |
public AbstractRow(com.solarmetric.rd.kodo.impl.jdbc.schema.Table table,
int action)
table - the table the row is a part ofaction - the action on the row| Method Detail |
public com.solarmetric.rd.kodo.impl.jdbc.schema.Table getTable()
Row
getTable in interface Rowpublic int getAction()
Row
getAction in interface Rowpublic java.lang.Object getFailedObject()
getFailedObject in interface Rowpublic void setFailedObject(java.lang.Object failed)
setFailedObject in interface Row
public void setPrimaryKey(java.lang.Object oid,
com.solarmetric.rd.kodo.impl.jdbc.meta.ClassMapping mapping)
throws java.sql.SQLException
Row
setPrimaryKey in interface Rowoid - the object id from which to extract the
primary key valuesmapping - the class mapping for this row
java.sql.SQLException
public void wherePrimaryKey(java.lang.Object oid,
com.solarmetric.rd.kodo.impl.jdbc.meta.ClassMapping mapping)
throws java.sql.SQLException
Row
wherePrimaryKey in interface Rowoid - the object id from which to extract the
primary key valuesmapping - the class mapping for this row
java.sql.SQLException
public void setForeignKey(com.solarmetric.rd.kodo.impl.jdbc.schema.ForeignKey fk,
java.lang.Object oid,
com.solarmetric.rd.kodo.impl.jdbc.meta.ClassMapping mapping)
throws java.sql.SQLException
Row
setForeignKey in interface Rowfk - the foreign key to setoid - the object id from which to extract the
foreign key valuesmapping - the class mapping for the related object
java.sql.SQLException
public void whereForeignKey(com.solarmetric.rd.kodo.impl.jdbc.schema.ForeignKey fk,
java.lang.Object oid,
com.solarmetric.rd.kodo.impl.jdbc.meta.ClassMapping mapping)
throws java.sql.SQLException
Row
whereForeignKey in interface Rowfk - the foreign key to setoid - the object id from which to extract the
foreign key valuesmapping - the class mapping for the related object
java.sql.SQLException
protected void flushObjectId(com.solarmetric.rd.kodo.impl.jdbc.schema.Column[] cols,
java.lang.Object oid,
com.solarmetric.rd.kodo.impl.jdbc.meta.ClassMapping mapping,
boolean set)
throws java.sql.SQLException
cols - the pk columns, in primary key field orderoid - the object id to flushmapping - the class mapping for the oid's owner classset - whether this should be flushed as an update or
as a where condition
java.sql.SQLException
public void setArray(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.sql.Array val)
throws java.sql.SQLException
Row
setArray in interface Rowjava.sql.SQLException
public void setAsciiStream(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.io.InputStream val,
int length)
throws java.sql.SQLException
Row
setAsciiStream in interface Rowjava.sql.SQLException
public void setBigDecimal(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.math.BigDecimal val)
throws java.sql.SQLException
Row
setBigDecimal in interface Rowjava.sql.SQLException
public void setBigInteger(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.math.BigInteger val)
throws java.sql.SQLException
Row
setBigInteger in interface Rowjava.sql.SQLException
public void setBinaryStream(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.io.InputStream val,
int length)
throws java.sql.SQLException
Row
setBinaryStream in interface Rowjava.sql.SQLException
public void setBlob(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.sql.Blob val)
throws java.sql.SQLException
Row
setBlob in interface Rowjava.sql.SQLException
public void setBoolean(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
boolean val)
throws java.sql.SQLException
Row
setBoolean in interface Rowjava.sql.SQLException
public void setByte(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
byte val)
throws java.sql.SQLException
Row
setByte in interface Rowjava.sql.SQLException
public void setBytes(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
byte[] val)
throws java.sql.SQLException
Row
setBytes in interface Rowjava.sql.SQLException
public void setChar(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
char val)
throws java.sql.SQLException
Row
setChar in interface Rowjava.sql.SQLException
public void setCharacterStream(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.io.Reader val,
int length)
throws java.sql.SQLException
Row
setCharacterStream in interface Rowjava.sql.SQLException
public void setClob(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.sql.Clob val)
throws java.sql.SQLException
Row
setClob in interface Rowjava.sql.SQLException
public void setDate(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.util.Date val)
throws java.sql.SQLException
Row
setDate in interface Rowjava.sql.SQLException
public void setDate(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.sql.Date val,
java.util.Calendar cal)
throws java.sql.SQLException
Row
setDate in interface Rowjava.sql.SQLException
public void setDouble(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
double val)
throws java.sql.SQLException
Row
setDouble in interface Rowjava.sql.SQLException
public void setFloat(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
float val)
throws java.sql.SQLException
Row
setFloat in interface Rowjava.sql.SQLException
public void setInt(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
int val)
throws java.sql.SQLException
Row
setInt in interface Rowjava.sql.SQLException
public void setLong(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
long val)
throws java.sql.SQLException
Row
setLong in interface Rowjava.sql.SQLException
public void setLocale(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.util.Locale val)
throws java.sql.SQLException
Row
setLocale in interface Rowjava.sql.SQLException
public void setNull(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col)
throws java.sql.SQLException
Row
setNull in interface Rowjava.sql.SQLException
public void setShort(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
short val)
throws java.sql.SQLException
Row
setShort in interface Rowjava.sql.SQLException
public void setString(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.lang.String val)
throws java.sql.SQLException
Row
setString in interface Rowjava.sql.SQLException
public void setTime(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.sql.Time val,
java.util.Calendar cal)
throws java.sql.SQLException
Row
setTime in interface Rowjava.sql.SQLException
public void setTimestamp(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.sql.Timestamp val,
java.util.Calendar cal)
throws java.sql.SQLException
Row
setTimestamp in interface Rowjava.sql.SQLException
public void whereArray(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.sql.Array val)
throws java.sql.SQLException
Row
whereArray in interface Rowjava.sql.SQLException
public void whereAsciiStream(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.io.InputStream val,
int length)
throws java.sql.SQLException
Row
whereAsciiStream in interface Rowjava.sql.SQLException
public void whereBigDecimal(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.math.BigDecimal val)
throws java.sql.SQLException
Row
whereBigDecimal in interface Rowjava.sql.SQLException
public void whereBigInteger(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.math.BigInteger val)
throws java.sql.SQLException
Row
whereBigInteger in interface Rowjava.sql.SQLException
public void whereBinaryStream(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.io.InputStream val,
int length)
throws java.sql.SQLException
Row
whereBinaryStream in interface Rowjava.sql.SQLException
public void whereBlob(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.sql.Blob val)
throws java.sql.SQLException
Row
whereBlob in interface Rowjava.sql.SQLException
public void whereBoolean(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
boolean val)
throws java.sql.SQLException
Row
whereBoolean in interface Rowjava.sql.SQLException
public void whereByte(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
byte val)
throws java.sql.SQLException
Row
whereByte in interface Rowjava.sql.SQLException
public void whereBytes(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
byte[] val)
throws java.sql.SQLException
Row
whereBytes in interface Rowjava.sql.SQLException
public void whereChar(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
char val)
throws java.sql.SQLException
Row
whereChar in interface Rowjava.sql.SQLException
public void whereCharacterStream(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.io.Reader val,
int length)
throws java.sql.SQLException
Row
whereCharacterStream in interface Rowjava.sql.SQLException
public void whereClob(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.sql.Clob val)
throws java.sql.SQLException
Row
whereClob in interface Rowjava.sql.SQLException
public void whereDate(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.util.Date val)
throws java.sql.SQLException
Row
whereDate in interface Rowjava.sql.SQLException
public void whereDate(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.sql.Date val,
java.util.Calendar cal)
throws java.sql.SQLException
Row
whereDate in interface Rowjava.sql.SQLException
public void whereDouble(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
double val)
throws java.sql.SQLException
Row
whereDouble in interface Rowjava.sql.SQLException
public void whereFloat(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
float val)
throws java.sql.SQLException
Row
whereFloat in interface Rowjava.sql.SQLException
public void whereInt(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
int val)
throws java.sql.SQLException
Row
whereInt in interface Rowjava.sql.SQLException
public void whereLong(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
long val)
throws java.sql.SQLException
Row
whereLong in interface Rowjava.sql.SQLException
public void whereLocale(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.util.Locale val)
throws java.sql.SQLException
Row
whereLocale in interface Rowjava.sql.SQLException
public void whereNull(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col)
throws java.sql.SQLException
Row
whereNull in interface Rowjava.sql.SQLException
public void whereShort(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
short val)
throws java.sql.SQLException
Row
whereShort in interface Rowjava.sql.SQLException
public void whereString(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.lang.String val)
throws java.sql.SQLException
Row
whereString in interface Rowjava.sql.SQLException
public void whereTime(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.sql.Time val,
java.util.Calendar cal)
throws java.sql.SQLException
Row
whereTime in interface Rowjava.sql.SQLException
public void whereTimestamp(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.sql.Timestamp val,
java.util.Calendar cal)
throws java.sql.SQLException
Row
whereTimestamp in interface Rowjava.sql.SQLException
protected void toSQL(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
java.lang.Object val,
int type,
java.lang.Object arg,
com.solarmetric.rd.kodo.impl.jdbc.schema.DBDictionary dict,
java.sql.PreparedStatement stmnt,
int idx)
throws java.sql.SQLException
col - the column being setval - the value of the columntype - the field mapping type code for the valuearg - the extra arg passed to the set/whereObject method,
if anydict - the dictionary in usestmnt - the prepared statement to parameterizeidx - the index of the parameter in the prepared statement
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 | |||||||||