|
SolarMetric Kodo JDO 3.1.6 generated on August 25 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--kodo.jdbc.sql.AbstractRow
Abstract Row implementation that funnels all methods to the
setObjectInternal(kodo.jdbc.schema.Column, java.lang.Object, int, java.lang.Object) and whereObjectInternal(kodo.jdbc.schema.Column, java.lang.Object, int, java.lang.Object) functions.
| Fields inherited from interface kodo.jdbc.sql.Row |
ACTION_DELETE, ACTION_INSERT, ACTION_UNKNOWN, ACTION_UPDATE |
| Constructor Summary | |
AbstractRow(Table table,
int action)
Constructor. |
|
| Method Summary | |
protected void |
flushJoinValues(KodoStateManager to,
Column[] toCols,
Column[] fromCols,
boolean set,
int priority)
Flush the given instance value to the given columns. |
int |
getAction()
Return the action for this row. |
Object |
getFailedObject()
This implementation returns null by default; override to track failed objects. |
KodoStateManager |
getPrimaryKey()
This implementation returns null by default; override to track owning instances. |
Table |
getTable()
Return the table for this row. |
void |
setArray(Column col,
Array val)
Set the value of the given column in this row. |
void |
setAsciiStream(Column col,
InputStream val,
int length)
Set the value of the given column in this row. |
void |
setBigDecimal(Column col,
BigDecimal val)
Set the value of the given column in this row. |
void |
setBigInteger(Column col,
BigInteger val)
Set the value of the given column in this row. |
void |
setBinaryStream(Column col,
InputStream val,
int length)
Set the value of the given column in this row. |
void |
setBlob(Column col,
Blob val)
Set the value of the given column in this row. |
void |
setBoolean(Column col,
boolean val)
Set the value of the given column in this row. |
void |
setByte(Column col,
byte val)
Set the value of the given column in this row. |
void |
setBytes(Column col,
byte[] val)
Set the value of the given column in this row. |
void |
setChar(Column col,
char val)
Set the value of the given column in this row. |
void |
setCharacterStream(Column col,
Reader val,
int length)
Set the value of the given column in this row. |
void |
setClob(Column col,
Clob val)
Set the value of the given column in this row. |
void |
setDate(Column col,
Date val)
Set the value of the given column in this row. |
void |
setDate(Column col,
Date val,
Calendar cal)
Set the value of the given column in this row. |
void |
setDouble(Column col,
double val)
Set the value of the given column in this row. |
void |
setFailedObject(Object failed)
This implementation throws an exception by default; override to track failed objects. |
void |
setFloat(Column col,
float val)
Set the value of the given column in this row. |
void |
setForeignKey(ForeignKey fk,
KodoStateManager sm)
Set the value of the given foreign key to the given object. |
void |
setInt(Column col,
int val)
Set the value of the given column in this row. |
void |
setLocale(Column col,
Locale val)
Set the value of the given column in this row. |
void |
setLong(Column col,
long val)
Set the value of the given column in this row. |
void |
setNull(Column col)
Set the value of the given column in this row. |
void |
setObject(Column col,
Object val,
int metaType,
Object arg)
Set the value of the given column in this row. |
protected abstract void |
setObjectInternal(Column col,
Object val,
int metaType,
Object arg)
Set the given column. |
void |
setPrimaryKey(KodoStateManager sm)
Set the primary key to represent the given object. |
void |
setShort(Column col,
short val)
Set the value of the given column in this row. |
void |
setString(Column col,
String val)
Set the value of the given column in this row. |
void |
setTime(Column col,
Time val,
Calendar cal)
Set the value of the given column in this row. |
void |
setTimestamp(Column col,
Timestamp val,
Calendar cal)
Set the value of the given column in this row. |
protected void |
toSQL(Column col,
Object val,
int type,
Object arg,
DBDictionary dict,
PreparedStatement stmnt,
int idx)
Translates the given value to a prepared parameter. |
void |
whereArray(Column col,
Array val)
Set an equality condition on the value of the given column in this row. |
void |
whereAsciiStream(Column col,
InputStream val,
int length)
Set an equality condition on the value of the given column in this row. |
void |
whereBigDecimal(Column col,
BigDecimal val)
Set an equality condition on the value of the given column in this row. |
void |
whereBigInteger(Column col,
BigInteger val)
Set an equality condition on the value of the given column in this row. |
void |
whereBinaryStream(Column col,
InputStream val,
int length)
Set an equality condition on the value of the given column in this row. |
void |
whereBlob(Column col,
Blob val)
Set an equality condition on the value of the given column in this row. |
void |
whereBoolean(Column col,
boolean val)
Set an equality condition on the value of the given column in this row. |
void |
whereByte(Column col,
byte val)
Set an equality condition on the value of the given column in this row. |
void |
whereBytes(Column col,
byte[] val)
Set an equality condition on the value of the given column in this row. |
void |
whereChar(Column col,
char val)
Set an equality condition on the value of the given column in this row. |
void |
whereCharacterStream(Column col,
Reader val,
int length)
Set an equality condition on the value of the given column in this row. |
void |
whereClob(Column col,
Clob val)
Set an equality condition on the value of the given column in this row. |
void |
whereDate(Column col,
Date val)
Set an equality condition on the value of the given column in this row. |
void |
whereDate(Column col,
Date val,
Calendar cal)
Set an equality condition on the value of the given column in this row. |
void |
whereDouble(Column col,
double val)
Set an equality condition on the value of the given column in this row. |
void |
whereFloat(Column col,
float val)
Set an equality condition on the value of the given column in this row. |
void |
whereForeignKey(ForeignKey fk,
KodoStateManager sm)
Set the foreign key equality criteria to link to the given object. |
void |
whereInt(Column col,
int val)
Set an equality condition on the value of the given column in this row. |
void |
whereLocale(Column col,
Locale val)
Set an equality condition on the value of the given column in this row. |
void |
whereLong(Column col,
long val)
Set an equality condition on the value of the given column in this row. |
void |
whereNull(Column col)
Set an equality condition on the value of the given column in this row. |
void |
whereObject(Column col,
Object val,
int metaType,
Object arg)
Set an equality condition on the value of the given column in this row. |
protected abstract void |
whereObjectInternal(Column col,
Object val,
int metaType,
Object arg)
Add a where condition. |
void |
wherePrimaryKey(KodoStateManager sm)
Set the primary key equality criteria for this row. |
void |
whereShort(Column col,
short val)
Set an equality condition on the value of the given column in this row. |
void |
whereString(Column col,
String val)
Set an equality condition on the value of the given column in this row. |
void |
whereTime(Column col,
Time val,
Calendar cal)
Set an equality condition on the value of the given column in this row. |
void |
whereTimestamp(Column col,
Timestamp val,
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 |
| Constructor Detail |
public AbstractRow(Table table,
int action)
table - the table the row is a part ofaction - the action on the row| Method Detail |
public Table getTable()
RowgetTable in interface Rowpublic int getAction()
RowgetAction in interface Rowpublic KodoStateManager getPrimaryKey()
getPrimaryKey in interface Rowpublic Object getFailedObject()
getFailedObject in interface Rowpublic void setFailedObject(Object failed)
setFailedObject in interface Row
public void setPrimaryKey(KodoStateManager sm)
throws SQLException
RowsetPrimaryKey in interface Row
public void wherePrimaryKey(KodoStateManager sm)
throws SQLException
RowwherePrimaryKey in interface Row
public void setForeignKey(ForeignKey fk,
KodoStateManager sm)
throws SQLException
RowsetForeignKey in interface Row
public void whereForeignKey(ForeignKey fk,
KodoStateManager sm)
throws SQLException
RowwhereForeignKey in interface Row
protected void flushJoinValues(KodoStateManager to,
Column[] toCols,
Column[] fromCols,
boolean set,
int priority)
throws SQLException
to - the instance being joined totoCols - the columns being joined tofromCols - the columns being joined fromset - whether this should be flushed as an update or
as a where conditionpriority - the column priority to ensure
public void setArray(Column col,
Array val)
throws SQLException
RowsetArray in interface Row
public void setAsciiStream(Column col,
InputStream val,
int length)
throws SQLException
RowsetAsciiStream in interface Row
public void setBigDecimal(Column col,
BigDecimal val)
throws SQLException
RowsetBigDecimal in interface Row
public void setBigInteger(Column col,
BigInteger val)
throws SQLException
RowsetBigInteger in interface Row
public void setBinaryStream(Column col,
InputStream val,
int length)
throws SQLException
RowsetBinaryStream in interface Row
public void setBlob(Column col,
Blob val)
throws SQLException
RowsetBlob in interface Row
public void setBoolean(Column col,
boolean val)
throws SQLException
RowsetBoolean in interface Row
public void setByte(Column col,
byte val)
throws SQLException
RowsetByte in interface Row
public void setBytes(Column col,
byte[] val)
throws SQLException
RowsetBytes in interface Row
public void setChar(Column col,
char val)
throws SQLException
RowsetChar in interface Row
public void setCharacterStream(Column col,
Reader val,
int length)
throws SQLException
RowsetCharacterStream in interface Row
public void setClob(Column col,
Clob val)
throws SQLException
RowsetClob in interface Row
public void setDate(Column col,
Date val)
throws SQLException
RowsetDate in interface Row
public void setDate(Column col,
Date val,
Calendar cal)
throws SQLException
RowsetDate in interface Row
public void setDouble(Column col,
double val)
throws SQLException
RowsetDouble in interface Row
public void setFloat(Column col,
float val)
throws SQLException
RowsetFloat in interface Row
public void setInt(Column col,
int val)
throws SQLException
RowsetInt in interface Row
public void setLong(Column col,
long val)
throws SQLException
RowsetLong in interface Row
public void setLocale(Column col,
Locale val)
throws SQLException
RowsetLocale in interface Row
public void setNull(Column col)
throws SQLException
RowsetNull in interface Row
public void setShort(Column col,
short val)
throws SQLException
RowsetShort in interface Row
public void setString(Column col,
String val)
throws SQLException
RowsetString in interface Row
public void setTime(Column col,
Time val,
Calendar cal)
throws SQLException
RowsetTime in interface Row
public void setTimestamp(Column col,
Timestamp val,
Calendar cal)
throws SQLException
RowsetTimestamp in interface Row
public void whereArray(Column col,
Array val)
throws SQLException
RowwhereArray in interface Row
public void whereAsciiStream(Column col,
InputStream val,
int length)
throws SQLException
RowwhereAsciiStream in interface Row
public void whereBigDecimal(Column col,
BigDecimal val)
throws SQLException
RowwhereBigDecimal in interface Row
public void whereBigInteger(Column col,
BigInteger val)
throws SQLException
RowwhereBigInteger in interface Row
public void whereBinaryStream(Column col,
InputStream val,
int length)
throws SQLException
RowwhereBinaryStream in interface Row
public void whereBlob(Column col,
Blob val)
throws SQLException
RowwhereBlob in interface Row
public void whereBoolean(Column col,
boolean val)
throws SQLException
RowwhereBoolean in interface Row
public void whereByte(Column col,
byte val)
throws SQLException
RowwhereByte in interface Row
public void whereBytes(Column col,
byte[] val)
throws SQLException
RowwhereBytes in interface Row
public void whereChar(Column col,
char val)
throws SQLException
RowwhereChar in interface Row
public void whereCharacterStream(Column col,
Reader val,
int length)
throws SQLException
RowwhereCharacterStream in interface Row
public void whereClob(Column col,
Clob val)
throws SQLException
RowwhereClob in interface Row
public void whereDate(Column col,
Date val)
throws SQLException
RowwhereDate in interface Row
public void whereDate(Column col,
Date val,
Calendar cal)
throws SQLException
RowwhereDate in interface Row
public void whereDouble(Column col,
double val)
throws SQLException
RowwhereDouble in interface Row
public void whereFloat(Column col,
float val)
throws SQLException
RowwhereFloat in interface Row
public void whereInt(Column col,
int val)
throws SQLException
RowwhereInt in interface Row
public void whereLong(Column col,
long val)
throws SQLException
RowwhereLong in interface Row
public void whereLocale(Column col,
Locale val)
throws SQLException
RowwhereLocale in interface Row
public void whereNull(Column col)
throws SQLException
RowwhereNull in interface Row
public void whereShort(Column col,
short val)
throws SQLException
RowwhereShort in interface Row
public void whereString(Column col,
String val)
throws SQLException
RowwhereString in interface Row
public void whereTime(Column col,
Time val,
Calendar cal)
throws SQLException
RowwhereTime in interface Row
public void whereTimestamp(Column col,
Timestamp val,
Calendar cal)
throws SQLException
RowwhereTimestamp in interface Row
public void setObject(Column col,
Object val,
int metaType,
Object arg)
throws SQLException
RowsetObject in interface Rowkodo.jdbc.sql.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
public void whereObject(Column col,
Object val,
int metaType,
Object arg)
throws SQLException
RowwhereObject in interface Rowkodo.jdbc.sql.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
protected abstract void setObjectInternal(Column col,
Object val,
int metaType,
Object arg)
throws SQLException
Row.setObject(kodo.jdbc.schema.Column, java.lang.Object, int, java.lang.Object)
protected abstract void whereObjectInternal(Column col,
Object val,
int metaType,
Object arg)
throws SQLException
Row.whereObject(kodo.jdbc.schema.Column, java.lang.Object, int, java.lang.Object)
protected void toSQL(Column col,
Object val,
int type,
Object arg,
DBDictionary dict,
PreparedStatement stmnt,
int idx)
throws 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
|
SolarMetric Kodo JDO 3.1.6 generated on August 25 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||