Class SoftDeleteDbRowOp
java.lang.Object
org.apache.cayenne.access.flush.operation.BaseDbRowOp
org.apache.cayenne.access.flush.operation.DeleteDbRowOp
org.apache.cayenne.access.flush.operation.SoftDeleteDbRowOp
- All Implemented Interfaces:
DbRowOp,DbRowOpWithQualifier,DbRowOpWithValues
A "soft" delete op that is executed as an UPDATE setting the soft-delete flag column to
true instead of a
SQL DELETE, leaving the row physically in the table. For all other purposes — sorting, merging, snapshot cache
eviction and the rest of the flush postprocessing — it behaves exactly like a DeleteDbRowOp.- Since:
- 5.0
-
Field Summary
FieldsFields inherited from class org.apache.cayenne.access.flush.operation.DeleteDbRowOp
qualifierFields inherited from class org.apache.cayenne.access.flush.operation.BaseDbRowOp
changeId, entity, hashCode, object -
Constructor Summary
ConstructorsConstructorDescriptionSoftDeleteDbRowOp(Persistent object, DbEntity entity, ObjectId id, DbAttribute deletedAttribute) -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(DbRowOpVisitor<T> visitor) booleanisSameBatch(DbRowOp rowOp) toString()Methods inherited from class org.apache.cayenne.access.flush.operation.DeleteDbRowOp
equals, getQualifier, setChangeIdMethods inherited from class org.apache.cayenne.access.flush.operation.BaseDbRowOp
entitiesHaveSameNameAndDataMap, getChangeId, getEntity, getObject, hashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.cayenne.access.flush.operation.DbRowOp
getChangeId, getEntity, getObject
-
Field Details
-
values
-
-
Constructor Details
-
SoftDeleteDbRowOp
public SoftDeleteDbRowOp(Persistent object, DbEntity entity, ObjectId id, DbAttribute deletedAttribute)
-
-
Method Details
-
accept
- Specified by:
acceptin interfaceDbRowOp- Overrides:
acceptin classDeleteDbRowOp
-
getValues
- Specified by:
getValuesin interfaceDbRowOpWithValues
-
isSameBatch
- Specified by:
isSameBatchin interfaceDbRowOp- Overrides:
isSameBatchin classDeleteDbRowOp- Parameters:
rowOp- to check- Returns:
- is this and rowOp operations belong to same sql batch
-
toString
- Overrides:
toStringin classDeleteDbRowOp
-