org.apache.openjpa.jdbc.sql
ACTION_DELETE, ACTION_INSERT, ACTION_UNKNOWN, ACTION_UPDATE| Modifier | Constructor and Description |
|---|---|
protected |
PrimaryRow(Column[] cols,
int action,
OpenJPAStateManager owner) |
|
PrimaryRow(Table table,
int action,
OpenJPAStateManager owner)
Constructor; supply table and action.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearForeignKey(ForeignKey fk)
Clear a circular foreign key.
|
void |
clearRelationId(Column col)
Clear a circular relation id.
|
void |
copyInto(RowImpl row,
boolean whereOnly)
Copy all values from this row into the given one.
|
protected java.lang.String |
generateSQL(DBDictionary dict)
Generate the SQL for this row; the result of this method is cached.
|
java.lang.Object |
getFailedObject()
This implementation does not track failed objects.
|
ColumnIO |
getForeignKeyIO(ForeignKey fk)
Return the I/O information for the given set foreign key.
|
OpenJPAStateManager |
getForeignKeySet(ForeignKey fk)
Return the value for the given foreign key.
|
OpenJPAStateManager |
getForeignKeyWhere(ForeignKey fk)
Return the value for the given foreign key.
|
int |
getIndex()
The index of this row in ordered row list.
|
OpenJPAStateManager |
getPrimaryKey()
This implementation does not track primary keys.
|
RelationId |
getRelationIdCallback(Column col)
Return the recorded callbacks for the given relation id column.
|
OpenJPAStateManager |
getRelationIdSet(Column col)
Return the recorded value for the given relation id column.
|
boolean |
isDependent()
Mark this row as dependent on some other row.
|
protected RowImpl |
newInstance(Column[] cols,
int action)
Return a new row.
|
void |
setDependent(boolean dependent)
Mark this row as dependent on some other row.
|
void |
setFailedObject(java.lang.Object failed)
This implementation does not track failed objects.
|
void |
setForeignKey(ForeignKey fk,
ColumnIO io,
OpenJPAStateManager sm)
Set the value of the given foreign key to the given object.
|
void |
setForeignKey(ForeignKey fk,
OpenJPAStateManager sm)
Set the value of the given foreign key to the given object.
|
void |
setIndex(int idx)
The index of this row in ordered row list.
|
protected void |
setObject(Column col,
java.lang.Object val,
int metaType,
boolean overrideDefault)
All set column methods delegate to this one.
|
void |
setPrimaryKey(ColumnIO io,
OpenJPAStateManager sm)
Set the primary key to represent the given object.
|
void |
setPrimaryKey(OpenJPAStateManager sm)
Set the primary key to represent the given object.
|
void |
setRelationId(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.
|
void |
whereForeignKey(ForeignKey fk,
OpenJPAStateManager sm)
Set the foreign key equality criteria to link to the given object.
|
void |
wherePrimaryKey(OpenJPAStateManager sm)
Set the primary key equality criteria for this row.
|
canSet, canSetAny, clone, flush, flush, getAction, getColumns, getParameterCount, getSet, getSQL, getTable, getTypes, getVals, getWhere, isFlushed, isValid, setArray, setAsciiStream, setBigDecimal, setBigInteger, setBinaryStream, setBlob, setBoolean, setByte, setBytes, setCalendar, setChar, setCharacterStream, setClob, setDate, setDate, setDouble, setFloat, setFlushed, setInt, setLocale, setLong, setNull, setNull, setNumber, setObject, setRaw, setShort, setString, setTime, setTimestamp, setValid, whereArray, whereAsciiStream, whereBigDecimal, whereBigInteger, whereBinaryStream, whereBlob, whereBoolean, whereByte, whereBytes, whereCalendar, whereChar, whereCharacterStream, whereClob, whereDate, whereDate, whereDouble, whereFloat, whereInt, whereLocale, whereLong, whereNull, whereNumber, whereObject, whereObject, whereRaw, whereShort, whereString, whereTime, whereTimestamppublic PrimaryRow(Table table, int action, OpenJPAStateManager owner)
protected PrimaryRow(Column[] cols, int action, OpenJPAStateManager owner)
public boolean isDependent()
isDependent in class RowImplpublic void setDependent(boolean dependent)
public int getIndex()
public void setIndex(int idx)
public java.lang.Object getFailedObject()
RowImplgetFailedObject in interface RowgetFailedObject in class RowImplpublic void setFailedObject(java.lang.Object failed)
RowImplsetFailedObject in interface RowsetFailedObject in class RowImplpublic OpenJPAStateManager getPrimaryKey()
RowImplgetPrimaryKey in interface RowgetPrimaryKey in class RowImplpublic void setPrimaryKey(OpenJPAStateManager sm) throws java.sql.SQLException
RowsetPrimaryKey in interface RowsetPrimaryKey in class RowImpljava.sql.SQLExceptionpublic void setPrimaryKey(ColumnIO io, OpenJPAStateManager sm)
RowsetPrimaryKey in interface RowsetPrimaryKey in class RowImplio - information on which columns are settable; may be nullpublic void wherePrimaryKey(OpenJPAStateManager sm) throws java.sql.SQLException
RowwherePrimaryKey in interface RowwherePrimaryKey in class RowImpljava.sql.SQLExceptionpublic ColumnIO getForeignKeyIO(ForeignKey fk)
public OpenJPAStateManager getForeignKeySet(ForeignKey fk)
public OpenJPAStateManager getForeignKeyWhere(ForeignKey fk)
public void setForeignKey(ForeignKey fk, OpenJPAStateManager sm) throws java.sql.SQLException
RowsetForeignKey in interface RowsetForeignKey in class RowImpljava.sql.SQLExceptionpublic void setForeignKey(ForeignKey fk, ColumnIO io, OpenJPAStateManager sm) throws java.sql.SQLException
RowsetForeignKey in interface RowsetForeignKey in class RowImplio - information on which columns are settable; may be nulljava.sql.SQLExceptionpublic void whereForeignKey(ForeignKey fk, OpenJPAStateManager sm) throws java.sql.SQLException
RowwhereForeignKey in interface RowwhereForeignKey in class RowImpljava.sql.SQLExceptionpublic void clearForeignKey(ForeignKey fk) throws java.sql.SQLException
RowImplclearForeignKey in class RowImpljava.sql.SQLExceptionpublic OpenJPAStateManager getRelationIdSet(Column col)
public RelationId getRelationIdCallback(Column col)
public void setRelationId(Column col, OpenJPAStateManager sm, RelationId rel) throws java.sql.SQLException
RowsetRelationId in interface RowsetRelationId in class RowImpljava.sql.SQLExceptionpublic void clearRelationId(Column col) throws java.sql.SQLException
RowImplclearRelationId in class RowImpljava.sql.SQLExceptionprotected void setObject(Column col, java.lang.Object val, int metaType, boolean overrideDefault) throws java.sql.SQLException
RowImplprotected java.lang.String generateSQL(DBDictionary dict)
RowImplgenerateSQL in class RowImplprotected RowImpl newInstance(Column[] cols, int action)
RowImplnewInstance in class RowImpl