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 String |
generateSQL(DBDictionary dict)
Generate the SQL for this row; the result of this method is cached.
|
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(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,
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.
|
String |
toString() |
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 Object getFailedObject()
RowImplgetFailedObject in interface RowgetFailedObject in class RowImplpublic void setFailedObject(Object failed)
RowImplsetFailedObject in interface RowsetFailedObject in class RowImplpublic OpenJPAStateManager getPrimaryKey()
RowImplgetPrimaryKey in interface RowgetPrimaryKey in class RowImplpublic void setPrimaryKey(OpenJPAStateManager sm) throws SQLException
RowsetPrimaryKey in interface RowsetPrimaryKey in class RowImplSQLExceptionpublic 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 SQLException
RowwherePrimaryKey in interface RowwherePrimaryKey in class RowImplSQLExceptionpublic ColumnIO getForeignKeyIO(ForeignKey fk)
public OpenJPAStateManager getForeignKeySet(ForeignKey fk)
public OpenJPAStateManager getForeignKeyWhere(ForeignKey fk)
public void setForeignKey(ForeignKey fk, OpenJPAStateManager sm) throws SQLException
RowsetForeignKey in interface RowsetForeignKey in class RowImplSQLExceptionpublic void setForeignKey(ForeignKey fk, ColumnIO io, OpenJPAStateManager sm) throws SQLException
RowsetForeignKey in interface RowsetForeignKey in class RowImplio - information on which columns are settable; may be nullSQLExceptionpublic void whereForeignKey(ForeignKey fk, OpenJPAStateManager sm) throws SQLException
RowwhereForeignKey in interface RowwhereForeignKey in class RowImplSQLExceptionpublic void clearForeignKey(ForeignKey fk) throws SQLException
RowImplclearForeignKey in class RowImplSQLExceptionpublic OpenJPAStateManager getRelationIdSet(Column col)
public RelationId getRelationIdCallback(Column col)
public void setRelationId(Column col, OpenJPAStateManager sm, RelationId rel) throws SQLException
RowsetRelationId in interface RowsetRelationId in class RowImplSQLExceptionpublic void clearRelationId(Column col) throws SQLException
RowImplclearRelationId in class RowImplSQLExceptionprotected void setObject(Column col, Object val, int metaType, boolean overrideDefault) throws SQLException
RowImplsetObject in class RowImplSQLExceptionprotected String generateSQL(DBDictionary dict)
RowImplgenerateSQL in class RowImplprotected RowImpl newInstance(Column[] cols, int action)
RowImplnewInstance in class RowImplpublic void copyInto(RowImpl row, boolean whereOnly)
RowImplCopyright © 2006–2020 Apache Software Foundation. All rights reserved.