Package org.apache.openjpa.jdbc.sql
Class RowImpl
- java.lang.Object
-
- org.apache.openjpa.jdbc.sql.RowImpl
-
- Direct Known Subclasses:
PrimaryRow,SecondaryRow,StateComparisonVersionStrategy.CustomUpdate
public class RowImpl extends Object implements Row, Cloneable
BasicRowimplementation.- Author:
- Abe White
-
-
Field Summary
Fields Modifier and Type Field Description protected byteflagsstatic ObjectNULLstatic intRAWprotected static intVALID-
Fields inherited from interface org.apache.openjpa.jdbc.sql.Row
ACTION_DELETE, ACTION_INSERT, ACTION_UNKNOWN, ACTION_UPDATE
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanSet(ColumnIO io, int i, boolean nullValue)Return true if the given column index is settable.protected booleancanSetAny(ColumnIO io, int i, boolean nullValue)Return true if any of the given column indexes are settable.voidclearForeignKey(ForeignKey fk)Clear a circular foreign key.voidclearRelationId(Column col)Clear a circular relation id.Objectclone()Performs a proper deep clone.voidcopyInto(RowImpl row, boolean whereOnly)Copy all values from this row into the given one.voidflush(PreparedStatement stmnt, int idx, DBDictionary dict, JDBCStore store)Flush the row's values to the given prepared statement.voidflush(PreparedStatement stmnt, DBDictionary dict, JDBCStore store)Flush the row's values to the given prepared statement.protected StringgenerateSQL(DBDictionary dict)Generate the SQL for this row; the result of this method is cached.intgetAction()Return the action for this row.Column[]getColumns()ObjectgetFailedObject()This implementation does not track failed objects.intgetParameterCount()The number of parameters that will be set for this row.OpenJPAStateManagergetPrimaryKey()This implementation does not track primary keys.ObjectgetSet(Column col)Return the value set for update on the given column.StringgetSQL(DBDictionary dict)Return the SQL for the operation on this row.TablegetTable()Return the table for this row.int[]getTypes()Object[]getVals()ObjectgetWhere(Column col)Return the value set for where on the given column.booleanisDependent()Secondary rows cannot be dependent.booleanisFlushed()booleanisValid()Whether this row has information set on it.protected RowImplnewInstance(Column[] cols, int action)Return a new row.voidsetArray(Column col, Array val)Set the value of the given column in this row.voidsetAsciiStream(Column col, InputStream val, int length)Set the value of the given column in this row.voidsetBigDecimal(Column col, BigDecimal val)Set the value of the given column in this row.voidsetBigInteger(Column col, BigInteger val)Set the value of the given column in this row.voidsetBinaryStream(Column col, InputStream val, int length)Set the value of the given column in this row.voidsetBlob(Column col, Blob val)Set the value of the given column in this row.voidsetBoolean(Column col, boolean val)Set the value of the given column in this row.voidsetByte(Column col, byte val)Set the value of the given column in this row.voidsetBytes(Column col, byte[] val)Set the value of the given column in this row.voidsetCalendar(Column col, Calendar val)Set the value of the given column in this row.voidsetChar(Column col, char val)Set the value of the given column in this row.voidsetCharacterStream(Column col, Reader val, int length)Set the value of the given column in this row.voidsetClob(Column col, Clob val)Set the value of the given column in this row.voidsetDate(Column col, Date val, Calendar cal)Set the value of the given column in this row.voidsetDate(Column col, Date val)Set the value of the given column in this row.voidsetDouble(Column col, double val)Set the value of the given column in this row.voidsetFailedObject(Object failed)This implementation does not track failed objects.voidsetFloat(Column col, float val)Set the value of the given column in this row.voidsetFlushed(boolean isFlushed)voidsetForeignKey(ForeignKey fk, ColumnIO io, OpenJPAStateManager sm)Set the value of the given foreign key to the given object.voidsetForeignKey(ForeignKey fk, OpenJPAStateManager sm)Set the value of the given foreign key to the given object.voidsetInt(Column col, int val)Set the value of the given column in this row.voidsetLocale(Column col, Locale val)Set the value of the given column in this row.voidsetLong(Column col, long val)Set the value of the given column in this row.voidsetNull(Column col)Set the value of the given column in this row.voidsetNull(Column col, boolean overrideDefault)Set the value of the given column in this row.voidsetNumber(Column col, Number val)Set the value of the given column in this row.voidsetObject(Column col, Object val)Set the value of the given column in this row.protected voidsetObject(Column col, Object val, int metaType, boolean overrideDefault)All set column methods delegate to this one.voidsetPrimaryKey(ColumnIO io, OpenJPAStateManager sm)Set the primary key to represent the given object.voidsetPrimaryKey(OpenJPAStateManager sm)Set the primary key to represent the given object.voidsetRaw(Column col, String val)Set a DB understood value for the given column.voidsetRelationId(Column col, OpenJPAStateManager sm, RelationId rel)Set the value of the given column to the identity of given instance, using the given callback to create the column value.voidsetShort(Column col, short val)Set the value of the given column in this row.voidsetString(Column col, String val)Set the value of the given column in this row.voidsetTime(Column col, Time val, Calendar cal)Set the value of the given column in this row.voidsetTimestamp(Column col, Timestamp val, Calendar cal)Set the value of the given column in this row.voidsetValid(boolean valid)Whether this row has information set on it.voidwhereArray(Column col, Array val)Set an equality condition on the value of the given column in this row.voidwhereAsciiStream(Column col, InputStream val, int length)Set an equality condition on the value of the given column in this row.voidwhereBigDecimal(Column col, BigDecimal val)Set an equality condition on the value of the given column in this row.voidwhereBigInteger(Column col, BigInteger val)Set an equality condition on the value of the given column in this row.voidwhereBinaryStream(Column col, InputStream val, int length)Set an equality condition on the value of the given column in this row.voidwhereBlob(Column col, Blob val)Set an equality condition on the value of the given column in this row.voidwhereBoolean(Column col, boolean val)Set an equality condition on the value of the given column in this row.voidwhereByte(Column col, byte val)Set an equality condition on the value of the given column in this row.voidwhereBytes(Column col, byte[] val)Set an equality condition on the value of the given column in this row.voidwhereCalendar(Column col, Calendar val)Set an equality condition on the value of the given column in this row.voidwhereChar(Column col, char val)Set an equality condition on the value of the given column in this row.voidwhereCharacterStream(Column col, Reader val, int length)Set an equality condition on the value of the given column in this row.voidwhereClob(Column col, Clob val)Set an equality condition on the value of the given column in this row.voidwhereDate(Column col, Date val, Calendar cal)Set an equality condition on the value of the given column in this row.voidwhereDate(Column col, Date val)Set an equality condition on the value of the given column in this row.voidwhereDouble(Column col, double val)Set an equality condition on the value of the given column in this row.voidwhereFloat(Column col, float val)Set an equality condition on the value of the given column in this row.voidwhereForeignKey(ForeignKey fk, OpenJPAStateManager sm)Set the foreign key equality criteria to link to the given object.voidwhereInt(Column col, int val)Set an equality condition on the value of the given column in this row.voidwhereLocale(Column col, Locale val)Set an equality condition on the value of the given column in this row.voidwhereLong(Column col, long val)Set an equality condition on the value of the given column in this row.voidwhereNull(Column col)Set an equality condition on the value of the given column in this row.voidwhereNumber(Column col, Number val)Set an equality condition on the value of the given column in this row.voidwhereObject(Column col, Object val)Set an equality condition on the value of the given column in this row.protected voidwhereObject(Column col, Object val, int metaType)All where column methods delegate to this one.voidwherePrimaryKey(OpenJPAStateManager sm)Set the primary key equality criteria for this row.voidwhereRaw(Column col, String val)Set a DB understood where condition for the given column.voidwhereShort(Column col, short val)Set an equality condition on the value of the given column in this row.voidwhereString(Column col, String val)Set an equality condition on the value of the given column in this row.voidwhereTime(Column col, Time val, Calendar cal)Set an equality condition on the value of the given column in this row.voidwhereTimestamp(Column col, Timestamp val, Calendar cal)Set an equality condition on the value of the given column in this row.
-
-
-
Field Detail
-
NULL
public static final Object NULL
-
VALID
protected static final int VALID
- See Also:
- Constant Field Values
-
RAW
public static final int RAW
- See Also:
- Constant Field Values
-
flags
protected byte flags
-
-
Method Detail
-
getTable
public Table getTable()
Description copied from interface:RowReturn the table for this row.
-
getColumns
public Column[] getColumns()
-
getAction
public int getAction()
Description copied from interface:RowReturn the action for this row.
-
isValid
public boolean isValid()
Description copied from interface:RowWhether this row has information set on it.
-
setValid
public void setValid(boolean valid)
Description copied from interface:RowWhether this row has information set on it.
-
getPrimaryKey
public OpenJPAStateManager getPrimaryKey()
This implementation does not track primary keys.- Specified by:
getPrimaryKeyin interfaceRow
-
getFailedObject
public Object getFailedObject()
This implementation does not track failed objects.- Specified by:
getFailedObjectin interfaceRow
-
setFailedObject
public void setFailedObject(Object failed)
This implementation does not track failed objects.- Specified by:
setFailedObjectin interfaceRow
-
isDependent
public boolean isDependent()
Secondary rows cannot be dependent.
-
setPrimaryKey
public void setPrimaryKey(OpenJPAStateManager sm) throws SQLException
Description copied from interface:RowSet the primary key to represent the given object.- Specified by:
setPrimaryKeyin interfaceRow- Throws:
SQLException
-
setPrimaryKey
public void setPrimaryKey(ColumnIO io, OpenJPAStateManager sm) throws SQLException
Description copied from interface:RowSet the primary key to represent the given object.- Specified by:
setPrimaryKeyin interfaceRow- Parameters:
io- information on which columns are settable; may be null- Throws:
SQLException
-
wherePrimaryKey
public void wherePrimaryKey(OpenJPAStateManager sm) throws SQLException
Description copied from interface:RowSet the primary key equality criteria for this row.- Specified by:
wherePrimaryKeyin interfaceRow- Throws:
SQLException
-
setForeignKey
public void setForeignKey(ForeignKey fk, OpenJPAStateManager sm) throws SQLException
Description copied from interface:RowSet the value of the given foreign key to the given object. If the related type uses table-per-class mappings, the foreign key may be targeted at an independent superclass table.- Specified by:
setForeignKeyin interfaceRow- Throws:
SQLException
-
setForeignKey
public void setForeignKey(ForeignKey fk, ColumnIO io, OpenJPAStateManager sm) throws SQLException
Description copied from interface:RowSet the value of the given foreign key to the given object. If the related type uses table-per-class mappings, the foreign key may be targeted at an independent superclass table.- Specified by:
setForeignKeyin interfaceRowio- information on which columns are settable; may be null- Throws:
SQLException
-
whereForeignKey
public void whereForeignKey(ForeignKey fk, OpenJPAStateManager sm) throws SQLException
Description copied from interface:RowSet the foreign key equality criteria to link to the given object. If the related type uses table-per-class mappings, the foreign key may be targeted at an independent superclass table.- Specified by:
whereForeignKeyin interfaceRow- Throws:
SQLException
-
clearForeignKey
public void clearForeignKey(ForeignKey fk) throws SQLException
Clear a circular foreign key.- Throws:
SQLException
-
canSetAny
protected boolean canSetAny(ColumnIO io, int i, boolean nullValue)
Return true if any of the given column indexes are settable.
-
canSet
protected boolean canSet(ColumnIO io, int i, boolean nullValue)
Return true if the given column index is settable.
-
setRelationId
public void setRelationId(Column col, OpenJPAStateManager sm, RelationId rel) throws SQLException
Description copied from interface:RowSet the value of the given column to the identity of given instance, using the given callback to create the column value. This method is used for mappings that store some serialized form of id values, but must make sure that the related object's id is assigned (which might require an insert if the instance uses auto-increment) before it is serialized.- Specified by:
setRelationIdin interfaceRow- Throws:
SQLException
-
clearRelationId
public void clearRelationId(Column col) throws SQLException
Clear a circular relation id.- Throws:
SQLException
-
setArray
public void setArray(Column col, Array val) throws SQLException
Description copied from interface:RowSet the value of the given column in this row.- Specified by:
setArrayin interfaceRow- Throws:
SQLException
-
setAsciiStream
public void setAsciiStream(Column col, InputStream val, int length) throws SQLException
Description copied from interface:RowSet the value of the given column in this row.- Specified by:
setAsciiStreamin interfaceRow- Throws:
SQLException
-
setBigDecimal
public void setBigDecimal(Column col, BigDecimal val) throws SQLException
Description copied from interface:RowSet the value of the given column in this row.- Specified by:
setBigDecimalin interfaceRow- Throws:
SQLException
-
setBigInteger
public void setBigInteger(Column col, BigInteger val) throws SQLException
Description copied from interface:RowSet the value of the given column in this row.- Specified by:
setBigIntegerin interfaceRow- Throws:
SQLException
-
setBinaryStream
public void setBinaryStream(Column col, InputStream val, int length) throws SQLException
Description copied from interface:RowSet the value of the given column in this row.- Specified by:
setBinaryStreamin interfaceRow- Throws:
SQLException
-
setBlob
public void setBlob(Column col, Blob val) throws SQLException
Description copied from interface:RowSet the value of the given column in this row.- Specified by:
setBlobin interfaceRow- Throws:
SQLException
-
setBoolean
public void setBoolean(Column col, boolean val) throws SQLException
Description copied from interface:RowSet the value of the given column in this row.- Specified by:
setBooleanin interfaceRow- Throws:
SQLException
-
setByte
public void setByte(Column col, byte val) throws SQLException
Description copied from interface:RowSet the value of the given column in this row.- Specified by:
setBytein interfaceRow- Throws:
SQLException
-
setBytes
public void setBytes(Column col, byte[] val) throws SQLException
Description copied from interface:RowSet the value of the given column in this row.- Specified by:
setBytesin interfaceRow- Throws:
SQLException
-
setCalendar
public void setCalendar(Column col, Calendar val) throws SQLException
Description copied from interface:RowSet the value of the given column in this row.- Specified by:
setCalendarin interfaceRow- Throws:
SQLException
-
setChar
public void setChar(Column col, char val) throws SQLException
Description copied from interface:RowSet the value of the given column in this row.- Specified by:
setCharin interfaceRow- Throws:
SQLException
-
setCharacterStream
public void setCharacterStream(Column col, Reader val, int length) throws SQLException
Description copied from interface:RowSet the value of the given column in this row.- Specified by:
setCharacterStreamin interfaceRow- Throws:
SQLException
-
setClob
public void setClob(Column col, Clob val) throws SQLException
Description copied from interface:RowSet the value of the given column in this row.- Specified by:
setClobin interfaceRow- Throws:
SQLException
-
setDate
public void setDate(Column col, Date val) throws SQLException
Description copied from interface:RowSet the value of the given column in this row.- Specified by:
setDatein interfaceRow- Throws:
SQLException
-
setDate
public void setDate(Column col, Date val, Calendar cal) throws SQLException
Description copied from interface:RowSet the value of the given column in this row.- Specified by:
setDatein interfaceRow- Throws:
SQLException
-
setDouble
public void setDouble(Column col, double val) throws SQLException
Description copied from interface:RowSet the value of the given column in this row.- Specified by:
setDoublein interfaceRow- Throws:
SQLException
-
setFloat
public void setFloat(Column col, float val) throws SQLException
Description copied from interface:RowSet the value of the given column in this row.- Specified by:
setFloatin interfaceRow- Throws:
SQLException
-
setInt
public void setInt(Column col, int val) throws SQLException
Description copied from interface:RowSet the value of the given column in this row.- Specified by:
setIntin interfaceRow- Throws:
SQLException
-
setLong
public void setLong(Column col, long val) throws SQLException
Description copied from interface:RowSet the value of the given column in this row.- Specified by:
setLongin interfaceRow- Throws:
SQLException
-
setLocale
public void setLocale(Column col, Locale val) throws SQLException
Description copied from interface:RowSet the value of the given column in this row.- Specified by:
setLocalein interfaceRow- Throws:
SQLException
-
setNull
public void setNull(Column col) throws SQLException
Description copied from interface:RowSet the value of the given column in this row.- Specified by:
setNullin interfaceRow- Throws:
SQLException
-
setNull
public void setNull(Column col, boolean overrideDefault) throws SQLException
Description copied from interface:RowSet the value of the given column in this row.- Specified by:
setNullin interfaceRowoverrideDefault- whether to set this column to null even if this is an insert and the column has a default- Throws:
SQLException
-
setNumber
public void setNumber(Column col, Number val) throws SQLException
Description copied from interface:RowSet the value of the given column in this row.- Specified by:
setNumberin interfaceRow- Throws:
SQLException
-
setRaw
public void setRaw(Column col, String val) throws SQLException
Description copied from interface:RowSet a DB understood value for the given column. The value will not be parameterized and instead be inserted as raw SQL.- Specified by:
setRawin interfaceRow- Throws:
SQLException
-
setShort
public void setShort(Column col, short val) throws SQLException
Description copied from interface:RowSet the value of the given column in this row.- Specified by:
setShortin interfaceRow- Throws:
SQLException
-
setString
public void setString(Column col, String val) throws SQLException
Description copied from interface:RowSet the value of the given column in this row.- Specified by:
setStringin interfaceRow- Throws:
SQLException
-
setTime
public void setTime(Column col, Time val, Calendar cal) throws SQLException
Description copied from interface:RowSet the value of the given column in this row.- Specified by:
setTimein interfaceRow- Throws:
SQLException
-
setTimestamp
public void setTimestamp(Column col, Timestamp val, Calendar cal) throws SQLException
Description copied from interface:RowSet the value of the given column in this row.- Specified by:
setTimestampin interfaceRow- Throws:
SQLException
-
setObject
public void setObject(Column col, Object val) throws SQLException
Description copied from interface:RowSet the value of the given column in this row.- Specified by:
setObjectin interfaceRow- Parameters:
col- the column being setval- the value for the column- Throws:
SQLException
-
whereArray
public void whereArray(Column col, Array val) throws SQLException
Description copied from interface:RowSet an equality condition on the value of the given column in this row.- Specified by:
whereArrayin interfaceRow- Throws:
SQLException
-
whereAsciiStream
public void whereAsciiStream(Column col, InputStream val, int length) throws SQLException
Description copied from interface:RowSet an equality condition on the value of the given column in this row.- Specified by:
whereAsciiStreamin interfaceRow- Throws:
SQLException
-
whereBigDecimal
public void whereBigDecimal(Column col, BigDecimal val) throws SQLException
Description copied from interface:RowSet an equality condition on the value of the given column in this row.- Specified by:
whereBigDecimalin interfaceRow- Throws:
SQLException
-
whereBigInteger
public void whereBigInteger(Column col, BigInteger val) throws SQLException
Description copied from interface:RowSet an equality condition on the value of the given column in this row.- Specified by:
whereBigIntegerin interfaceRow- Throws:
SQLException
-
whereBinaryStream
public void whereBinaryStream(Column col, InputStream val, int length) throws SQLException
Description copied from interface:RowSet an equality condition on the value of the given column in this row.- Specified by:
whereBinaryStreamin interfaceRow- Throws:
SQLException
-
whereBlob
public void whereBlob(Column col, Blob val) throws SQLException
Description copied from interface:RowSet an equality condition on the value of the given column in this row.- Specified by:
whereBlobin interfaceRow- Throws:
SQLException
-
whereBoolean
public void whereBoolean(Column col, boolean val) throws SQLException
Description copied from interface:RowSet an equality condition on the value of the given column in this row.- Specified by:
whereBooleanin interfaceRow- Throws:
SQLException
-
whereByte
public void whereByte(Column col, byte val) throws SQLException
Description copied from interface:RowSet an equality condition on the value of the given column in this row.- Specified by:
whereBytein interfaceRow- Throws:
SQLException
-
whereBytes
public void whereBytes(Column col, byte[] val) throws SQLException
Description copied from interface:RowSet an equality condition on the value of the given column in this row.- Specified by:
whereBytesin interfaceRow- Throws:
SQLException
-
whereCalendar
public void whereCalendar(Column col, Calendar val) throws SQLException
Description copied from interface:RowSet an equality condition on the value of the given column in this row.- Specified by:
whereCalendarin interfaceRow- Throws:
SQLException
-
whereChar
public void whereChar(Column col, char val) throws SQLException
Description copied from interface:RowSet an equality condition on the value of the given column in this row.- Specified by:
whereCharin interfaceRow- Throws:
SQLException
-
whereCharacterStream
public void whereCharacterStream(Column col, Reader val, int length) throws SQLException
Description copied from interface:RowSet an equality condition on the value of the given column in this row.- Specified by:
whereCharacterStreamin interfaceRow- Throws:
SQLException
-
whereClob
public void whereClob(Column col, Clob val) throws SQLException
Description copied from interface:RowSet an equality condition on the value of the given column in this row.- Specified by:
whereClobin interfaceRow- Throws:
SQLException
-
whereDate
public void whereDate(Column col, Date val) throws SQLException
Description copied from interface:RowSet an equality condition on the value of the given column in this row.- Specified by:
whereDatein interfaceRow- Throws:
SQLException
-
whereDate
public void whereDate(Column col, Date val, Calendar cal) throws SQLException
Description copied from interface:RowSet an equality condition on the value of the given column in this row.- Specified by:
whereDatein interfaceRow- Throws:
SQLException
-
whereDouble
public void whereDouble(Column col, double val) throws SQLException
Description copied from interface:RowSet an equality condition on the value of the given column in this row.- Specified by:
whereDoublein interfaceRow- Throws:
SQLException
-
whereFloat
public void whereFloat(Column col, float val) throws SQLException
Description copied from interface:RowSet an equality condition on the value of the given column in this row.- Specified by:
whereFloatin interfaceRow- Throws:
SQLException
-
whereInt
public void whereInt(Column col, int val) throws SQLException
Description copied from interface:RowSet an equality condition on the value of the given column in this row.- Specified by:
whereIntin interfaceRow- Throws:
SQLException
-
whereLong
public void whereLong(Column col, long val) throws SQLException
Description copied from interface:RowSet an equality condition on the value of the given column in this row.- Specified by:
whereLongin interfaceRow- Throws:
SQLException
-
whereLocale
public void whereLocale(Column col, Locale val) throws SQLException
Description copied from interface:RowSet an equality condition on the value of the given column in this row.- Specified by:
whereLocalein interfaceRow- Throws:
SQLException
-
whereNull
public void whereNull(Column col) throws SQLException
Description copied from interface:RowSet an equality condition on the value of the given column in this row.- Specified by:
whereNullin interfaceRow- Throws:
SQLException
-
whereNumber
public void whereNumber(Column col, Number val) throws SQLException
Description copied from interface:RowSet an equality condition on the value of the given column in this row.- Specified by:
whereNumberin interfaceRow- Throws:
SQLException
-
whereRaw
public void whereRaw(Column col, String val) throws SQLException
Description copied from interface:RowSet a DB understood where condition for the given column. The value will not be parameterized and instead be inserted as raw SQL.- Specified by:
whereRawin interfaceRow- Throws:
SQLException
-
whereShort
public void whereShort(Column col, short val) throws SQLException
Description copied from interface:RowSet an equality condition on the value of the given column in this row.- Specified by:
whereShortin interfaceRow- Throws:
SQLException
-
whereString
public void whereString(Column col, String val) throws SQLException
Description copied from interface:RowSet an equality condition on the value of the given column in this row.- Specified by:
whereStringin interfaceRow- Throws:
SQLException
-
whereTime
public void whereTime(Column col, Time val, Calendar cal) throws SQLException
Description copied from interface:RowSet an equality condition on the value of the given column in this row.- Specified by:
whereTimein interfaceRow- Throws:
SQLException
-
whereTimestamp
public void whereTimestamp(Column col, Timestamp val, Calendar cal) throws SQLException
Description copied from interface:RowSet an equality condition on the value of the given column in this row.- Specified by:
whereTimestampin interfaceRow- Throws:
SQLException
-
whereObject
public void whereObject(Column col, Object val) throws SQLException
Description copied from interface:RowSet an equality condition on the value of the given column in this row.- Specified by:
whereObjectin interfaceRow- Parameters:
col- the column being setval- the value for the column- Throws:
SQLException
-
setObject
protected void setObject(Column col, Object val, int metaType, boolean overrideDefault) throws SQLException
All set column methods delegate to this one. Set the given object unless this is an insert and the given column is auto-assigned.- Throws:
SQLException
-
whereObject
protected void whereObject(Column col, Object val, int metaType) throws SQLException
All where column methods delegate to this one.- Throws:
SQLException
-
getSQL
public String getSQL(DBDictionary dict)
Return the SQL for the operation on this row.
-
generateSQL
protected String generateSQL(DBDictionary dict)
Generate the SQL for this row; the result of this method is cached.
-
getParameterCount
public int getParameterCount()
The number of parameters that will be set for this row.
-
flush
public void flush(PreparedStatement stmnt, DBDictionary dict, JDBCStore store) throws SQLException
Flush the row's values to the given prepared statement.- Throws:
SQLException
-
flush
public void flush(PreparedStatement stmnt, int idx, DBDictionary dict, JDBCStore store) throws SQLException
Flush the row's values to the given prepared statement.- Throws:
SQLException
-
copyInto
public void copyInto(RowImpl row, boolean whereOnly)
Copy all values from this row into the given one.- Parameters:
whereOnly- if true, only copy where conditions
-
getVals
public Object[] getVals()
-
getTypes
public int[] getTypes()
-
isFlushed
public boolean isFlushed()
-
setFlushed
public void setFlushed(boolean isFlushed)
-
-