public class DelegateDelete extends Object implements InterceptDelete
| Constructor and Description |
|---|
DelegateDelete(com.avaje.ebean.EbeanServer delegate)
Construct with a EbeanServer to delegate and using ImmediateBackgroundExecutor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
delete(Class<?> beanType,
Object id,
com.avaje.ebean.Transaction transaction) |
boolean |
delete(Object bean,
com.avaje.ebean.Transaction t) |
int |
delete(com.avaje.ebean.Query<?> query,
com.avaje.ebean.Transaction transaction) |
int |
deleteAll(Class<?> beanType,
Collection<?> ids,
com.avaje.ebean.Transaction transaction) |
int |
deleteAll(Collection<?> c) |
int |
deleteAll(Collection<?> c,
com.avaje.ebean.Transaction transaction) |
int |
deleteAllPermanent(Class<?> beanType,
Collection<?> ids) |
int |
deleteAllPermanent(Class<?> beanType,
Collection<?> ids,
com.avaje.ebean.Transaction transaction) |
int |
deleteAllPermanent(Collection<?> beans) |
int |
deleteAllPermanent(Collection<?> beans,
com.avaje.ebean.Transaction transaction) |
int |
deletePermanent(Class<?> beanType,
Object id) |
int |
deletePermanent(Class<?> beanType,
Object id,
com.avaje.ebean.Transaction transaction) |
boolean |
deletePermanent(Object bean) |
boolean |
deletePermanent(Object bean,
com.avaje.ebean.Transaction transaction) |
public DelegateDelete(com.avaje.ebean.EbeanServer delegate)
This delegate will be used on all method calls that are not overwritten.
public int deleteAll(Collection<?> c) throws javax.persistence.OptimisticLockException
deleteAll in interface InterceptDeletejavax.persistence.OptimisticLockExceptionpublic int deleteAll(Collection<?> c, com.avaje.ebean.Transaction transaction) throws javax.persistence.OptimisticLockException
deleteAll in interface InterceptDeletejavax.persistence.OptimisticLockExceptionpublic int delete(com.avaje.ebean.Query<?> query, com.avaje.ebean.Transaction transaction) throws javax.persistence.OptimisticLockException
delete in interface InterceptDeletejavax.persistence.OptimisticLockExceptionpublic int delete(Class<?> beanType, Object id, com.avaje.ebean.Transaction transaction)
delete in interface InterceptDeletepublic int deletePermanent(Class<?> beanType, Object id)
deletePermanent in interface InterceptDeletepublic int deletePermanent(Class<?> beanType, Object id, com.avaje.ebean.Transaction transaction)
deletePermanent in interface InterceptDeletepublic int deleteAll(Class<?> beanType, Collection<?> ids, com.avaje.ebean.Transaction transaction)
deleteAll in interface InterceptDeletepublic boolean delete(Object bean, com.avaje.ebean.Transaction t) throws javax.persistence.OptimisticLockException
delete in interface InterceptDeletejavax.persistence.OptimisticLockExceptionpublic boolean deletePermanent(Object bean)
deletePermanent in interface InterceptDeletepublic boolean deletePermanent(Object bean, com.avaje.ebean.Transaction transaction)
deletePermanent in interface InterceptDeletepublic int deleteAllPermanent(Collection<?> beans)
deleteAllPermanent in interface InterceptDeletepublic int deleteAllPermanent(Collection<?> beans, com.avaje.ebean.Transaction transaction)
deleteAllPermanent in interface InterceptDeletepublic int deleteAllPermanent(Class<?> beanType, Collection<?> ids)
deleteAllPermanent in interface InterceptDeletepublic int deleteAllPermanent(Class<?> beanType, Collection<?> ids, com.avaje.ebean.Transaction transaction)
deleteAllPermanent in interface InterceptDeleteCopyright © 2016. All rights reserved.