public class DelegatePublish extends Object implements InterceptPublish
Can you used for testing purposes when you want to create a test double that only replaces some of the underlying functionality of the EbeanServer.
| Constructor and Description |
|---|
DelegatePublish(com.avaje.ebean.EbeanServer delegate) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
draftRestore(Class<T> beanType,
Object id) |
<T> T |
draftRestore(Class<T> beanType,
Object id,
com.avaje.ebean.Transaction transaction) |
<T> List<T> |
draftRestore(com.avaje.ebean.Query<T> query) |
<T> List<T> |
draftRestore(com.avaje.ebean.Query<T> query,
com.avaje.ebean.Transaction transaction) |
<T> T |
publish(Class<T> beanType,
Object id) |
<T> T |
publish(Class<T> beanType,
Object id,
com.avaje.ebean.Transaction transaction) |
<T> List<T> |
publish(com.avaje.ebean.Query<T> query) |
<T> List<T> |
publish(com.avaje.ebean.Query<T> query,
com.avaje.ebean.Transaction transaction) |
public DelegatePublish(com.avaje.ebean.EbeanServer delegate)
public <T> T publish(Class<T> beanType, Object id, com.avaje.ebean.Transaction transaction)
publish in interface InterceptPublishpublic <T> T publish(Class<T> beanType, Object id)
publish in interface InterceptPublishpublic <T> List<T> publish(com.avaje.ebean.Query<T> query, com.avaje.ebean.Transaction transaction)
publish in interface InterceptPublishpublic <T> List<T> publish(com.avaje.ebean.Query<T> query)
publish in interface InterceptPublishpublic <T> T draftRestore(Class<T> beanType, Object id, com.avaje.ebean.Transaction transaction)
draftRestore in interface InterceptPublishpublic <T> T draftRestore(Class<T> beanType, Object id)
draftRestore in interface InterceptPublishpublic <T> List<T> draftRestore(com.avaje.ebean.Query<T> query, com.avaje.ebean.Transaction transaction)
draftRestore in interface InterceptPublishpublic <T> List<T> draftRestore(com.avaje.ebean.Query<T> query)
draftRestore in interface InterceptPublishCopyright © 2016. All rights reserved.