SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool

com.solarmetric.rd.kodo.impl.jdbc.runtime
Interface Row

All Known Implementing Classes:
AbstractRow

public interface Row

Logical representation of a table row for insert/update/delete. The ExecutionManager is responsible for implementing rows to do something useful when the values are set.


Field Summary
static int ACTION_DELETE
          Mark the row for deletion.
static int ACTION_INSERT
          Mark the row for inserttion.
static int ACTION_UPDATE
          Mark the row for update.
 
Method Summary
 int getAction()
          Return the action for this row.
 java.lang.Object getFailedObject()
          Return the failed object to include in optimistic lock exceptions.
 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)
          Set the failed object to include in the optimistic lock exception that will be thrown if this update results in an update count of 0 when executed.
 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 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.
 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.
 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 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.
 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.
 

Field Detail

ACTION_UPDATE

public static final int ACTION_UPDATE
Mark the row for update.

See Also:
Constant Field Values

ACTION_INSERT

public static final int ACTION_INSERT
Mark the row for inserttion.

See Also:
Constant Field Values

ACTION_DELETE

public static final int ACTION_DELETE
Mark the row for deletion.

See Also:
Constant Field Values
Method Detail

getTable

public com.solarmetric.rd.kodo.impl.jdbc.schema.Table getTable()
Return the table for this row.


getAction

public int getAction()
Return the action for this row.


getFailedObject

public java.lang.Object getFailedObject()
Return the failed object to include in optimistic lock exceptions.


setFailedObject

public void setFailedObject(java.lang.Object failed)
Set the failed object to include in the optimistic lock exception that will be thrown if this update results in an update count of 0 when executed. Leave null to avoid checking the update count.


setPrimaryKey

public void setPrimaryKey(java.lang.Object oid,
                          com.solarmetric.rd.kodo.impl.jdbc.meta.ClassMapping mapping)
                   throws java.sql.SQLException
Set the primary key to the given object's id.

Parameters:
oid - the object id from which to extract the primary key values
mapping - the class mapping for this row
java.sql.SQLException

wherePrimaryKey

public void wherePrimaryKey(java.lang.Object oid,
                            com.solarmetric.rd.kodo.impl.jdbc.meta.ClassMapping mapping)
                     throws java.sql.SQLException
Set the primary key equality criteria for this row.

Parameters:
oid - the object id from which to extract the primary key values
mapping - the class mapping for this row
java.sql.SQLException

setForeignKey

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
Set the value for the given foreign key.

Parameters:
fk - the foreign key to set
oid - the object id from which to extract the foreign key values
mapping - the class mapping for the related object
java.sql.SQLException

whereForeignKey

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
Set the object id value for the given foreign key.

Parameters:
fk - the foreign key to set
oid - the object id from which to extract the foreign key values
mapping - the class mapping for the related object
java.sql.SQLException

setArray

public void setArray(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
                     java.sql.Array val)
              throws java.sql.SQLException
Set the value of the given column in this row.

java.sql.SQLException

setAsciiStream

public void setAsciiStream(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
                           java.io.InputStream val,
                           int length)
                    throws java.sql.SQLException
Set the value of the given column in this row.

java.sql.SQLException

setBigDecimal

public void setBigDecimal(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
                          java.math.BigDecimal val)
                   throws java.sql.SQLException
Set the value of the given column in this row.

java.sql.SQLException

setBigInteger

public void setBigInteger(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
                          java.math.BigInteger val)
                   throws java.sql.SQLException
Set the value of the given column in this row.

java.sql.SQLException

setBinaryStream

public void setBinaryStream(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
                            java.io.InputStream val,
                            int length)
                     throws java.sql.SQLException
Set the value of the given column in this row.

java.sql.SQLException

setBlob

public void setBlob(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
                    java.sql.Blob val)
             throws java.sql.SQLException
Set the value of the given column in this row.

java.sql.SQLException

setBoolean

public void setBoolean(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
                       boolean val)
                throws java.sql.SQLException
Set the value of the given column in this row.

java.sql.SQLException

setByte

public void setByte(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
                    byte val)
             throws java.sql.SQLException
Set the value of the given column in this row.

java.sql.SQLException

setBytes

public void setBytes(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
                     byte[] val)
              throws java.sql.SQLException
Set the value of the given column in this row.

java.sql.SQLException

setChar

public void setChar(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
                    char val)
             throws java.sql.SQLException
Set the value of the given column in this row.

java.sql.SQLException

setCharacterStream

public void setCharacterStream(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
                               java.io.Reader val,
                               int length)
                        throws java.sql.SQLException
Set the value of the given column in this row.

java.sql.SQLException

setClob

public void setClob(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
                    java.sql.Clob val)
             throws java.sql.SQLException
Set the value of the given column in this row.

java.sql.SQLException

setDate

public void setDate(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
                    java.util.Date val)
             throws java.sql.SQLException
Set the value of the given column in this row.

java.sql.SQLException

setDate

public void setDate(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
                    java.sql.Date val,
                    java.util.Calendar cal)
             throws java.sql.SQLException
Set the value of the given column in this row.

java.sql.SQLException

setDouble

public void setDouble(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
                      double val)
               throws java.sql.SQLException
Set the value of the given column in this row.

java.sql.SQLException

setFloat

public void setFloat(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
                     float val)
              throws java.sql.SQLException
Set the value of the given column in this row.

java.sql.SQLException

setInt

public void setInt(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
                   int val)
            throws java.sql.SQLException
Set the value of the given column in this row.

java.sql.SQLException

setLong

public void setLong(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
                    long val)
             throws java.sql.SQLException
Set the value of the given column in this row.

java.sql.SQLException

setLocale

public void setLocale(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
                      java.util.Locale val)
               throws java.sql.SQLException
Set the value of the given column in this row.

java.sql.SQLException

setNull

public void setNull(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col)
             throws java.sql.SQLException
Set the value of the given column in this row.

java.sql.SQLException

setObject

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
Set the value of the given column in this row.

Parameters:
col - the column being set
val - the value for the column
metaType - one of the constants from FieldMapping indicating the type of the supplied value
arg - some JDBC types can use additional arguments
java.sql.SQLException

setShort

public void setShort(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
                     short val)
              throws java.sql.SQLException
Set the value of the given column in this row.

java.sql.SQLException

setString

public void setString(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
                      java.lang.String val)
               throws java.sql.SQLException
Set the value of the given column in this row.

java.sql.SQLException

setTime

public void setTime(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
                    java.sql.Time val,
                    java.util.Calendar cal)
             throws java.sql.SQLException
Set the value of the given column in this row.

java.sql.SQLException

setTimestamp

public void setTimestamp(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
                         java.sql.Timestamp val,
                         java.util.Calendar cal)
                  throws java.sql.SQLException
Set the value of the given column in this row.

java.sql.SQLException

whereArray

public void whereArray(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
                       java.sql.Array val)
                throws java.sql.SQLException
Set an equality condition on the value of the given column in this row.

java.sql.SQLException

whereAsciiStream

public void whereAsciiStream(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
                             java.io.InputStream val,
                             int length)
                      throws java.sql.SQLException
Set an equality condition on the value of the given column in this row.

java.sql.SQLException

whereBigDecimal

public void whereBigDecimal(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
                            java.math.BigDecimal val)
                     throws java.sql.SQLException
Set an equality condition on the value of the given column in this row.

java.sql.SQLException

whereBigInteger

public void whereBigInteger(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
                            java.math.BigInteger val)
                     throws java.sql.SQLException
Set an equality condition on the value of the given column in this row.

java.sql.SQLException

whereBinaryStream

public void whereBinaryStream(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
                              java.io.InputStream val,
                              int length)
                       throws java.sql.SQLException
Set an equality condition on the value of the given column in this row.

java.sql.SQLException

whereBlob

public void whereBlob(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
                      java.sql.Blob val)
               throws java.sql.SQLException
Set an equality condition on the value of the given column in this row.

java.sql.SQLException

whereBoolean

public void whereBoolean(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
                         boolean val)
                  throws java.sql.SQLException
Set an equality condition on the value of the given column in this row.

java.sql.SQLException

whereByte

public void whereByte(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
                      byte val)
               throws java.sql.SQLException
Set an equality condition on the value of the given column in this row.

java.sql.SQLException

whereBytes

public void whereBytes(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
                       byte[] val)
                throws java.sql.SQLException
Set an equality condition on the value of the given column in this row.

java.sql.SQLException

whereChar

public void whereChar(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
                      char val)
               throws java.sql.SQLException
Set an equality condition on the value of the given column in this row.

java.sql.SQLException

whereCharacterStream

public void whereCharacterStream(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
                                 java.io.Reader val,
                                 int length)
                          throws java.sql.SQLException
Set an equality condition on the value of the given column in this row.

java.sql.SQLException

whereClob

public void whereClob(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
                      java.sql.Clob val)
               throws java.sql.SQLException
Set an equality condition on the value of the given column in this row.

java.sql.SQLException

whereDate

public void whereDate(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
                      java.util.Date val)
               throws java.sql.SQLException
Set an equality condition on the value of the given column in this row.

java.sql.SQLException

whereDate

public void whereDate(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
                      java.sql.Date val,
                      java.util.Calendar cal)
               throws java.sql.SQLException
Set an equality condition on the value of the given column in this row.

java.sql.SQLException

whereDouble

public void whereDouble(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
                        double val)
                 throws java.sql.SQLException
Set an equality condition on the value of the given column in this row.

java.sql.SQLException

whereFloat

public void whereFloat(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
                       float val)
                throws java.sql.SQLException
Set an equality condition on the value of the given column in this row.

java.sql.SQLException

whereInt

public void whereInt(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
                     int val)
              throws java.sql.SQLException
Set an equality condition on the value of the given column in this row.

java.sql.SQLException

whereLong

public void whereLong(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
                      long val)
               throws java.sql.SQLException
Set an equality condition on the value of the given column in this row.

java.sql.SQLException

whereLocale

public void whereLocale(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
                        java.util.Locale val)
                 throws java.sql.SQLException
Set an equality condition on the value of the given column in this row.

java.sql.SQLException

whereNull

public void whereNull(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col)
               throws java.sql.SQLException
Set an equality condition on the value of the given column in this row.

java.sql.SQLException

whereObject

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
Set an equality condition on the value of the given column in this row.

Parameters:
col - the column being set
val - the value for the column
metaType - one of the constants from FieldMapping indicating the type of the supplied value
arg - some JDBC types can use additional arguments
java.sql.SQLException

whereShort

public void whereShort(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
                       short val)
                throws java.sql.SQLException
Set an equality condition on the value of the given column in this row.

java.sql.SQLException

whereString

public void whereString(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
                        java.lang.String val)
                 throws java.sql.SQLException
Set an equality condition on the value of the given column in this row.

java.sql.SQLException

whereTime

public void whereTime(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
                      java.sql.Time val,
                      java.util.Calendar cal)
               throws java.sql.SQLException
Set an equality condition on the value of the given column in this row.

java.sql.SQLException

whereTimestamp

public void whereTimestamp(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col,
                           java.sql.Timestamp val,
                           java.util.Calendar cal)
                    throws java.sql.SQLException
Set an equality condition on the value of the given column in this row.

java.sql.SQLException

SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool

Copyright 2001,2002,2003 SolarMetric, Inc. All Rights Reserved.