Class HardDeleteDbRowOpFactory

java.lang.Object
org.apache.cayenne.access.flush.operation.HardDeleteDbRowOpFactory
All Implemented Interfaces:
DeleteDbRowOpFactory

public class HardDeleteDbRowOpFactory extends Object implements DeleteDbRowOpFactory
Default implementation of DeleteDbRowOpFactory producing plain DeleteDbRowOp that translate to SQL DELETE.
Since:
5.0
  • Constructor Details

    • HardDeleteDbRowOpFactory

      public HardDeleteDbRowOpFactory()
  • Method Details

    • createOp

      public DeleteDbRowOp createOp(Persistent object, DbEntity entity, ObjectId id)
      Description copied from interface: DeleteDbRowOpFactory
      Creates a delete op for a given object and target table.
      Specified by:
      createOp in interface DeleteDbRowOpFactory
      Parameters:
      object - the object being deleted
      entity - the target DbEntity (may be the root table or an additional / flattened table)
      id - the id of the row being deleted
      Returns:
      a delete op