Package org.apache.cayenne.access.flush.operation

# Class DeleteInsertDbRowOp

java.lang.Object
org.apache.cayenne.access.flush.operation.BaseDbRowOp
org.apache.cayenne.access.flush.operation.DeleteInsertDbRowOp

All Implemented Interfaces:
  `DbRowOp`

public class DeleteInsertDbRowOp extends BaseDbRowOp
Special case op, that describes delete/insert sequence of different objects that have same ObjectId (known example: meaningful PK set to same value as used before).

Since:
  4.2

- ## Field Summary

  ### Fields inherited from class org.apache.cayenne.access.flush.operation.BaseDbRowOp

  `changeId, entity, hashCode, object`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DeleteInsertDbRowOp(DeleteDbRowOp delete, InsertDbRowOp insert)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `<T> T`
  `accept(DbRowOpVisitor<T> visitor)`
  `boolean`
  `isSameBatch(DbRowOp rowOp)`

  ### Methods inherited from class org.apache.cayenne.access.flush.operation.BaseDbRowOp

  `equals, getChangeId, getEntity, getObject, hashCode, toString`

  ### Methods inherited from class java.lang.Object

  `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### DeleteInsertDbRowOp

    public DeleteInsertDbRowOp(DeleteDbRowOp delete, InsertDbRowOp insert)

- ## Method Details

  - ### accept

    public <T> T accept(DbRowOpVisitor<T> visitor)

  - ### isSameBatch

    public boolean isSameBatch(DbRowOp rowOp)
    Parameters:
      `rowOp` - to check
    Returns:
      is this and rowOp operations belong to same sql batch