public class DelegateSave extends Object implements InterceptSave
| Constructor and Description |
|---|
DelegateSave(com.avaje.ebean.EbeanServer delegate)
Construct with a EbeanServer to delegate and using ImmediateBackgroundExecutor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
insert(Object bean,
com.avaje.ebean.Transaction t) |
void |
insertAll(Collection<?> beans,
com.avaje.ebean.Transaction t) |
Object |
nextId(Class<?> beanType) |
void |
save(Object bean,
com.avaje.ebean.Transaction transaction) |
int |
saveAll(Collection<?> beans,
com.avaje.ebean.Transaction transaction) |
void |
update(Object bean,
com.avaje.ebean.Transaction t) |
void |
update(Object bean,
com.avaje.ebean.Transaction transaction,
boolean deleteMissingChildren) |
void |
updateAll(Collection<?> beans,
com.avaje.ebean.Transaction transaction) |
public DelegateSave(com.avaje.ebean.EbeanServer delegate)
This delegate will be used on all method calls that are not overwritten.
public Object nextId(Class<?> beanType)
nextId in interface InterceptSavepublic void save(Object bean, com.avaje.ebean.Transaction transaction) throws javax.persistence.OptimisticLockException
save in interface InterceptSavejavax.persistence.OptimisticLockExceptionpublic int saveAll(Collection<?> beans, com.avaje.ebean.Transaction transaction) throws javax.persistence.OptimisticLockException
saveAll in interface InterceptSavejavax.persistence.OptimisticLockExceptionpublic void update(Object bean, com.avaje.ebean.Transaction t) throws javax.persistence.OptimisticLockException
update in interface InterceptSavejavax.persistence.OptimisticLockExceptionpublic void update(Object bean, com.avaje.ebean.Transaction transaction, boolean deleteMissingChildren) throws javax.persistence.OptimisticLockException
update in interface InterceptSavejavax.persistence.OptimisticLockExceptionpublic void updateAll(Collection<?> beans, com.avaje.ebean.Transaction transaction) throws javax.persistence.OptimisticLockException
updateAll in interface InterceptSavejavax.persistence.OptimisticLockExceptionpublic void insert(Object bean, com.avaje.ebean.Transaction t)
insert in interface InterceptSavepublic void insertAll(Collection<?> beans, com.avaje.ebean.Transaction t)
insertAll in interface InterceptSaveCopyright © 2016. All rights reserved.