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 and Description
    `DeleteInsertDbRowOp(DeleteDbRowOp delete, InsertDbRowOp insert)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and 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 Detail

    - #### DeleteInsertDbRowOp

          public DeleteInsertDbRowOp(DeleteDbRowOp delete,
                                     InsertDbRowOp insert)

  - ### Method Detail

    - #### 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

Copyright © 2001–2021 Apache Cayenne. All rights reserved.