Class DeleteHandler
- java.lang.Object
-
- io.ebeaninternal.server.persist.dml.DmlHandler
-
- io.ebeaninternal.server.persist.dml.DeleteHandler
-
- All Implemented Interfaces:
BindableRequest
public class DeleteHandler extends DmlHandler
Delete bean handler.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bind()
Generate and bind the delete statement.int
execute()
Execute the delete non-batch.boolean
isUpdate()
Return true if this is an update request.-
Methods inherited from class io.ebeaninternal.server.persist.dml.DmlHandler
addBatch, bind, bind, bindNoLog, bindNoLog, close, executeNoBatch, getPersistRequest, now, setIdValue
-
-
-
-
Method Detail
-
isUpdate
public boolean isUpdate()
Description copied from interface:BindableRequest
Return true if this is an update request.
-
bind
public void bind() throws SQLException
Generate and bind the delete statement.- Specified by:
bind
in classDmlHandler
- Throws:
SQLException
-
execute
public int execute() throws SQLException, javax.persistence.OptimisticLockException
Execute the delete non-batch.- Specified by:
execute
in classDmlHandler
- Throws:
SQLException
javax.persistence.OptimisticLockException
-
-