| Package | Description |
|---|---|
| com.avaje.ebean |
Core API (see Ebean and EbeanServer).
|
| com.avaje.ebean.config.dbplatform |
Database platform specific support
|
| com.avaje.ebean.event |
Persist and Query Event Controllers and Listeners
|
| com.avaje.ebean.text.csv |
CSV processing objects.
|
| com.avaje.ebeaninternal.api | |
| com.avaje.ebeaninternal.server.core |
Core implementation objects
|
| com.avaje.ebeaninternal.server.deploy |
Bean description
|
| com.avaje.ebeaninternal.server.idgen |
Id Generation (Sequences, UUIDGen etc)
|
| com.avaje.ebeaninternal.server.persist |
Persistence Implementation
|
| com.avaje.ebeaninternal.server.query | |
| com.avaje.ebeaninternal.server.transaction |
Transaction implementation
|
| Modifier and Type | Method and Description |
|---|---|
static Transaction |
Ebean.beginTransaction()
Start a new explicit transaction.
|
Transaction |
EbeanServer.beginTransaction()
Start a new transaction putting it into a ThreadLocal.
|
static Transaction |
Ebean.beginTransaction(TxIsolation isolation)
Start a transaction additionally specifying the isolation level.
|
Transaction |
EbeanServer.beginTransaction(TxIsolation isolation)
Start a transaction additionally specifying the isolation level.
|
Transaction |
EbeanServer.createTransaction()
Create a new transaction that is not held in TransactionThreadLocal.
|
Transaction |
EbeanServer.createTransaction(TxIsolation isolation)
Create a new transaction additionally specifying the isolation level.
|
static Transaction |
Ebean.currentTransaction()
Returns the current transaction or null if there is no current transaction
in scope.
|
Transaction |
EbeanServer.currentTransaction()
Returns the current transaction or null if there is no current transaction
in scope.
|
| Modifier and Type | Method and Description |
|---|---|
void |
EbeanServer.delete(Class<?> beanType,
Collection<?> ids,
Transaction t)
Delete several beans given their type and id values with an explicit
transaction.
|
int |
EbeanServer.delete(Class<?> beanType,
Object id,
Transaction t)
Delete the bean given its type and id with an explicit transaction.
|
int |
EbeanServer.delete(Iterator<?> it,
Transaction t)
Delete all the beans from an iterator.
|
void |
EbeanServer.delete(Object bean,
Transaction t)
Delete the bean with an explicit transaction.
|
int |
EbeanServer.deleteManyToManyAssociations(Object ownerBean,
String propertyName,
Transaction t)
Delete the associations (from the intersection table) of a ManyToMany given
the owner bean and the propertyName of the ManyToMany collection.
|
int |
EbeanServer.execute(CallableSql callableSql,
Transaction t)
Execute explicitly passing a transaction.
|
int |
EbeanServer.execute(SqlUpdate updSql,
Transaction t)
Execute explicitly passing a transaction.
|
int |
EbeanServer.execute(Update<?> update,
Transaction t)
Execute a ORM insert update or delete statement with an explicit
transaction.
|
<T> T |
EbeanServer.find(Class<T> beanType,
Object uid,
Transaction transaction)
Find a entity bean with an explicit transaction.
|
<T> FutureIds<T> |
EbeanServer.findFutureIds(Query<T> query,
Transaction t)
Execute find Id's query in a background thread.
|
<T> FutureList<T> |
EbeanServer.findFutureList(Query<T> query,
Transaction t)
Execute find list query in a background thread.
|
SqlFutureList |
EbeanServer.findFutureList(SqlQuery query,
Transaction t)
Execute find list SQL query in a background thread.
|
<T> FutureRowCount<T> |
EbeanServer.findFutureRowCount(Query<T> query,
Transaction t)
Execute find row count query in a background thread.
|
<T> List<Object> |
EbeanServer.findIds(Query<T> query,
Transaction t)
Return the Id values of the query as a List.
|
<T> QueryIterator<T> |
EbeanServer.findIterate(Query<T> query,
Transaction t)
Return a QueryIterator for the query.
|
<T> List<T> |
EbeanServer.findList(Query<T> query,
Transaction transaction)
Execute a query returning a list of beans.
|
List<SqlRow> |
EbeanServer.findList(SqlQuery query,
Transaction transaction)
Execute the sql query returning a list of MapBean.
|
<T> Map<?,T> |
EbeanServer.findMap(Query<T> query,
Transaction transaction)
Execute the query returning the entity beans in a Map.
|
Map<?,SqlRow> |
EbeanServer.findMap(SqlQuery query,
Transaction transaction)
Execute the sql query returning a map of MapBean.
|
<T> PagingList<T> |
EbeanServer.findPagingList(Query<T> query,
Transaction t,
int pageSize)
Find using a PagingList with explicit transaction and pageSize.
|
<T> int |
EbeanServer.findRowCount(Query<T> query,
Transaction transaction)
Return the number of 'top level' or 'root' entities this query should
return.
|
<T> Set<T> |
EbeanServer.findSet(Query<T> query,
Transaction transaction)
Execute the query returning a set of entity beans.
|
Set<SqlRow> |
EbeanServer.findSet(SqlQuery query,
Transaction transaction)
Execute the sql query returning a set of MapBean.
|
<T> T |
EbeanServer.findUnique(Query<T> query,
Transaction transaction)
Execute the query returning at most one entity bean.
|
SqlRow |
EbeanServer.findUnique(SqlQuery query,
Transaction transaction)
Execute the sql query returning a single MapBean or null.
|
<T> void |
EbeanServer.findVisit(Query<T> query,
QueryResultVisitor<T> visitor,
Transaction t)
Execute the query visiting the results.
|
void |
EbeanServer.insert(Object bean,
Transaction t)
Force the bean to be saved with an explicit insert.
|
int |
EbeanServer.save(Iterator<?> it,
Transaction t)
Save all the beans in the iterator with an explicit transaction.
|
void |
EbeanServer.save(Object bean,
Transaction t)
Insert or update a bean with an explicit transaction.
|
void |
EbeanServer.saveAssociation(Object ownerBean,
String propertyName,
Transaction t)
Save the associated collection or bean given the property name with a
specific transaction.
|
void |
EbeanServer.saveManyToManyAssociations(Object ownerBean,
String propertyName,
Transaction t)
Save the associations of a ManyToMany given the owner bean and the
propertyName of the ManyToMany collection.
|
void |
EbeanServer.update(Object bean,
Set<String> updateProps,
Transaction t)
Force an update of the specified properties of the bean with an explicit
transaction.
|
void |
EbeanServer.update(Object bean,
Set<String> updateProps,
Transaction t,
boolean deleteMissingChildren,
boolean updateNullProperties)
Force an update additionally specifying whether to 'deleteMissingChildren'
when the update cascades to a OneToMany or ManyToMany.
|
void |
EbeanServer.update(Object bean,
Transaction t)
Force an update of the non-null properties of the bean with an explicit
transaction.
|
| Modifier and Type | Method and Description |
|---|---|
protected ArrayList<Integer> |
SequenceIdGenerator.getMoreIds(int loadSize,
Transaction t)
Get more Id's by executing a query and reading the Id's returned.
|
protected void |
SequenceIdGenerator.loadMoreIds(int numberToLoad,
Transaction t) |
Object |
SimpleSequenceIdGenerator.nextId(Transaction t) |
Object |
SequenceIdGenerator.nextId(Transaction t)
Return the next Id.
|
Object |
IdGenerator.nextId(Transaction transaction)
return the next unique identity value.
|
| Modifier and Type | Method and Description |
|---|---|
Transaction |
BeanQueryRequest.getTransaction()
Return the Transaction associated with this request.
|
Transaction |
BeanPersistRequest.getTransaction()
Return the Transaction associated with this request.
|
| Modifier and Type | Method and Description |
|---|---|
void |
TransactionEventListenerAdapter.postTransactionCommit(Transaction tx) |
void |
TransactionEventListener.postTransactionCommit(Transaction tx)
Called after the transaction has been committed
|
void |
TransactionEventListenerAdapter.postTransactionRollback(Transaction tx,
Throwable cause) |
void |
TransactionEventListener.postTransactionRollback(Transaction tx,
Throwable cause)
Called after the transaction has been rolled back
|
| Modifier and Type | Field and Description |
|---|---|
protected Transaction |
DefaultCsvCallback.transaction
The transaction to use (if not using CsvCallback).
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
SpiTransaction
Extends Transaction with additional API required on server.
|
| Modifier and Type | Field and Description |
|---|---|
protected Transaction |
LoadRequest.transaction |
| Modifier and Type | Method and Description |
|---|---|
Transaction |
LoadRequest.getTransaction()
Return the transaction to use if this is a secondary query.
|
| Modifier and Type | Method and Description |
|---|---|
<T> CQuery<T> |
SpiEbeanServer.compileQuery(Query<T> query,
Transaction t)
Compile a query.
|
<T> SpiOrmQueryRequest<T> |
SpiEbeanServer.createQueryRequest(BeanDescriptor<T> desc,
SpiQuery<T> q,
Transaction t)
Create a query request object.
|
<T> List<Object> |
SpiEbeanServer.findIdsWithCopy(Query<T> query,
Transaction t)
Execute the findId's query but without copying the query.
|
<T> int |
SpiEbeanServer.findRowCountWithCopy(Query<T> query,
Transaction t)
Execute the findRowCount query but without copying the query.
|
| Constructor and Description |
|---|
LoadBeanRequest(LoadBeanBuffer LoadBuffer,
Transaction transaction,
boolean lazy,
String lazyLoadProperty,
boolean loadCache) |
LoadManyRequest(LoadManyBuffer loadContext,
Transaction transaction,
int batchSize,
boolean lazy,
boolean onlyIds,
boolean loadCache) |
LoadRequest(Transaction transaction,
boolean lazy) |
| Modifier and Type | Method and Description |
|---|---|
Transaction |
DefaultServer.beginTransaction()
Start a transaction.
|
Transaction |
DefaultServer.beginTransaction(TxIsolation isolation)
Start a transaction with a specific Isolation Level.
|
Transaction |
DefaultServer.createTransaction()
Creates a new Transaction that is NOT stored in TransactionThreadLocal.
|
Transaction |
DefaultServer.createTransaction(TxIsolation isolation)
Create a transaction additionally specify the Isolation level.
|
Transaction |
DefaultServer.currentTransaction()
Return the current transaction or null if there is not one currently in
scope.
|
| Modifier and Type | Method and Description |
|---|---|
<T> CQuery<T> |
DefaultServer.compileQuery(Query<T> query,
Transaction t)
Compile a query.
|
<T> SpiOrmQueryRequest<T> |
DefaultServer.createQueryRequest(BeanDescriptor<T> desc,
SpiQuery<T> query,
Transaction t) |
void |
DefaultServer.delete(Class<?> beanType,
Collection<?> ids,
Transaction t) |
int |
DefaultServer.delete(Class<?> beanType,
Object id,
Transaction t) |
int |
Persister.delete(Class<?> beanType,
Object id,
Transaction transaction)
Delete a bean given it's type and id value.
|
int |
DefaultServer.delete(Iterator<?> it,
Transaction t)
Delete all the beans in the iterator with an explicit transaction.
|
void |
DefaultServer.delete(Object bean,
Transaction t)
Delete the bean with the explicit transaction.
|
void |
Persister.delete(Object entityBean,
Transaction t)
Delete the bean.
|
void |
Persister.deleteMany(Class<?> beanType,
Collection<?> ids,
Transaction transaction)
Delete multiple beans given a collection of Id values.
|
int |
DefaultServer.deleteManyToManyAssociations(Object ownerBean,
String propertyName,
Transaction t)
Delete the associations (from the intersection table) of a ManyToMany given
the owner bean and the propertyName of the ManyToMany collection.
|
int |
Persister.deleteManyToManyAssociations(Object ownerBean,
String propertyName,
Transaction t)
Delete the associations of a ManyToMany given the owner bean and the property name of the ManyToMany.
|
int |
DefaultServer.execute(CallableSql callSql,
Transaction t)
Execute the CallableSql with an explicit transaction.
|
int |
DefaultServer.execute(SqlUpdate updSql,
Transaction t)
Execute the updateSql with an explicit transaction.
|
int |
DefaultServer.execute(Update<?> update,
Transaction t)
Execute the updateSql with an explicit transaction.
|
int |
Persister.executeCallable(CallableSql callable,
Transaction t)
Execute the CallableSql.
|
int |
Persister.executeOrmUpdate(Update<?> update,
Transaction t)
Execute the Update.
|
int |
Persister.executeSqlUpdate(SqlUpdate update,
Transaction t)
Execute the UpdateSql.
|
<T> T |
DefaultServer.find(Class<T> beanType,
Object id,
Transaction t)
Find a bean using its unique id.
|
<T> FutureIds<T> |
DefaultServer.findFutureIds(Query<T> query,
Transaction t) |
<T> FutureList<T> |
DefaultServer.findFutureList(Query<T> query,
Transaction t) |
SqlFutureList |
DefaultServer.findFutureList(SqlQuery query,
Transaction t) |
<T> FutureRowCount<T> |
DefaultServer.findFutureRowCount(Query<T> q,
Transaction t) |
<T> List<Object> |
DefaultServer.findIds(Query<T> query,
Transaction t) |
<T> List<Object> |
DefaultServer.findIdsWithCopy(Query<T> query,
Transaction t) |
<T> QueryIterator<T> |
DefaultServer.findIterate(Query<T> query,
Transaction t) |
<T> List<T> |
DefaultServer.findList(Query<T> query,
Transaction t) |
List<SqlRow> |
DefaultServer.findList(SqlQuery query,
Transaction t) |
<T> Map<?,T> |
DefaultServer.findMap(Query<T> query,
Transaction t) |
Map<?,SqlRow> |
DefaultServer.findMap(SqlQuery query,
Transaction t) |
<T> PagingList<T> |
DefaultServer.findPagingList(Query<T> query,
Transaction t,
int pageSize) |
<T> int |
DefaultServer.findRowCount(Query<T> query,
Transaction t) |
<T> int |
DefaultServer.findRowCountWithCopy(Query<T> query,
Transaction t) |
<T> Set<T> |
DefaultServer.findSet(Query<T> query,
Transaction t) |
Set<SqlRow> |
DefaultServer.findSet(SqlQuery query,
Transaction t) |
<T> T |
DefaultServer.findUnique(Query<T> query,
Transaction t) |
SqlRow |
DefaultServer.findUnique(SqlQuery query,
Transaction t) |
<T> void |
DefaultServer.findVisit(Query<T> query,
QueryResultVisitor<T> visitor,
Transaction t) |
void |
Persister.forceInsert(Object entityBean,
Transaction t)
Force an Insert using the given bean.
|
void |
Persister.forceUpdate(Object entityBean,
Set<String> updateProps,
Transaction t,
boolean deleteMissingChildren,
boolean updateNullProperties)
Force an Update using the given bean.
|
void |
DefaultServer.insert(Object bean,
Transaction t)
Force the bean to be saved with an explicit insert.
|
void |
DefaultServer.refreshMany(Object parentBean,
String propertyName,
Transaction t) |
void |
DefaultBeanLoader.refreshMany(Object parentBean,
String propertyName,
Transaction t) |
int |
DefaultServer.save(Iterator<?> it,
Transaction t)
Save all beans in the iterator with an explicit transaction.
|
void |
DefaultServer.save(Object bean,
Transaction t)
Save the bean with an explicit transaction.
|
void |
Persister.save(Object entityBean,
Transaction t)
Insert or update the bean depending on its state.
|
void |
DefaultServer.saveAssociation(Object ownerBean,
String propertyName,
Transaction t) |
void |
Persister.saveAssociation(Object parentBean,
String propertyName,
Transaction t)
Save an association (OneToMany, ManyToOne, OneToOne or ManyToMany).
|
void |
DefaultServer.saveManyToManyAssociations(Object ownerBean,
String propertyName,
Transaction t)
Save the associations of a ManyToMany given the owner bean and the
propertyName of the ManyToMany collection.
|
void |
Persister.saveManyToManyAssociations(Object ownerBean,
String propertyName,
Transaction t)
Save the associations of a ManyToMany given the owner bean and the
propertyName of the ManyToMany collection.
|
void |
DefaultServer.update(Object bean,
Set<String> updateProps,
Transaction t)
Force an update using the bean explicitly stating which properties to
include in the update.
|
void |
DefaultServer.update(Object bean,
Set<String> updateProps,
Transaction t,
boolean deleteMissingChildren,
boolean updateNullProperties)
Force an update using the bean explicitly stating which properties to
include in the update.
|
void |
DefaultServer.update(Object bean,
Transaction t)
Force an update using the bean updating non-null properties.
|
| Constructor and Description |
|---|
RelationalQueryRequest(SpiEbeanServer server,
RelationalQueryEngine engine,
SqlQuery q,
Transaction t)
Create the BeanFindRequest.
|
| Modifier and Type | Method and Description |
|---|---|
List<Object> |
BeanPropertyAssocOne.findIdsByParentId(Object parentId,
List<Object> parentIdist,
Transaction t) |
List<Object> |
BeanPropertyAssocMany.findIdsByParentId(Object parentId,
List<Object> parentIdist,
Transaction t,
ArrayList<Object> excludeDetailIds)
Find the Id's of detail beans given a parent Id or list of parent Id's.
|
Object |
BeanDescriptor.nextId(Transaction t) |
void |
BeanMapHelp.refresh(EbeanServer server,
Query<?> query,
Transaction t,
Object parentBean) |
void |
BeanPropertyAssocMany.refresh(EbeanServer server,
Query<?> query,
Transaction t,
Object parentBean)
Refresh the appropriate list set or map.
|
void |
BeanSetHelp.refresh(EbeanServer server,
Query<?> query,
Transaction t,
Object parentBean) |
void |
BeanCollectionHelp.refresh(EbeanServer server,
Query<?> query,
Transaction t,
Object parentBean)
Refresh the List Set or Map.
|
void |
BeanListHelp.refresh(EbeanServer server,
Query<?> query,
Transaction t,
Object parentBean) |
| Modifier and Type | Method and Description |
|---|---|
Object |
UuidIdGenerator.nextId(Transaction t)
Return UUID from UUID.randomUUID();
|
| Modifier and Type | Method and Description |
|---|---|
int |
DefaultPersister.delete(Class<?> beanType,
Object id,
Transaction transaction)
Delete by Id.
|
void |
DefaultPersister.delete(Object bean,
Transaction t)
Delete the bean with the explicit transaction.
|
void |
DefaultPersister.deleteMany(Class<?> beanType,
Collection<?> ids,
Transaction transaction)
Delete by a List of Id's.
|
int |
DefaultPersister.deleteManyToManyAssociations(Object ownerBean,
String propertyName,
Transaction t) |
int |
DefaultPersister.executeCallable(CallableSql callSql,
Transaction t)
Execute the CallableSql.
|
int |
DefaultPersister.executeOrmUpdate(Update<?> update,
Transaction t)
Execute the orm update.
|
int |
DefaultPersister.executeSqlUpdate(SqlUpdate updSql,
Transaction t)
Execute the updateSql.
|
void |
DefaultPersister.forceInsert(Object bean,
Transaction t)
Explicitly specify to insert this bean.
|
void |
DefaultPersister.forceUpdate(Object bean,
Set<String> updateProps,
Transaction t,
boolean deleteMissingChildren,
boolean updateNullProperties)
Force an Update using the given bean.
|
void |
DefaultPersister.save(Object bean,
Transaction t) |
void |
DefaultPersister.saveAssociation(Object parentBean,
String propertyName,
Transaction t) |
void |
DefaultPersister.saveManyToManyAssociations(Object ownerBean,
String propertyName,
Transaction t) |
| Modifier and Type | Field and Description |
|---|---|
protected Transaction |
CallableQuery.transaction |
| Modifier and Type | Method and Description |
|---|---|
Transaction |
QueryFutureList.getTransaction() |
Transaction |
CallableQuery.getTransaction() |
Transaction |
QueryFutureIds.getTransaction() |
Transaction |
QueryFutureRowCount.getTransaction() |
| Constructor and Description |
|---|
CallableQuery(SpiEbeanServer server,
SpiQuery<T> query,
Transaction t) |
CallableQueryIds(SpiEbeanServer server,
SpiQuery<T> query,
Transaction t) |
CallableQueryList(SpiEbeanServer server,
SpiQuery<T> query,
Transaction t) |
CallableQueryRowCount(SpiEbeanServer server,
SpiQuery<T> query,
Transaction t)
Note that the transaction passed in is always a new transaction solely to
find the row count so it must be cleaned up by this CallableQueryRowCount.
|
CallableSqlQueryList(EbeanServer server,
SqlQuery query,
Transaction t) |
| Modifier and Type | Class and Description |
|---|---|
class |
ExternalJdbcTransaction
Transaction based on a java.sql.Connection supplied by an external
transaction manager such as Spring.
|
class |
JdbcTransaction
JDBC Connection based transaction.
|
class |
JtaTransaction
Jta based transaction.
|
Copyright © 2014. All Rights Reserved.