| Package | Description |
|---|---|
| com.avaje.ebean |
Core API (see Ebean and EbeanServer).
|
| com.avaje.ebeaninternal.api | |
| com.avaje.ebeaninternal.server.core |
Core implementation objects
|
| com.avaje.ebeaninternal.server.persist |
Persistence Implementation
|
| com.avaje.ebeaninternal.server.querydefn |
| Modifier and Type | Method and Description |
|---|---|
static <T> Update<T> |
Ebean.createNamedUpdate(Class<T> beanType,
String namedUpdate)
Create a named orm update.
|
<T> Update<T> |
EbeanServer.createNamedUpdate(Class<T> beanType,
String namedUpdate)
Create a named update for an entity bean (refer
Ebean.createNamedUpdate(Class, String)). |
static <T> Update<T> |
Ebean.createUpdate(Class<T> beanType,
String ormUpdate)
Create a orm update where you will supply the insert/update or delete
statement (rather than using a named one that is already defined using the
@NamedUpdates annotation).
|
<T> Update<T> |
EbeanServer.createUpdate(Class<T> beanType,
String ormUpdate)
Create a update for an entity bean where you will manually specify the
insert update or delete statement.
|
Update<T> |
Update.set(int position,
Object value)
Set an ordered bind parameter.
|
Update<T> |
Update.set(String name,
Object value)
Set a named parameter.
|
Update<T> |
Update.setNotifyCache(boolean notifyCache)
Set this to false if you do not want the cache to invalidate related
objects.
|
Update<T> |
Update.setNull(int position,
int jdbcType)
Set an ordered parameter that is null.
|
Update<T> |
Update.setNull(String name,
int jdbcType)
Set a named parameter that is null.
|
Update<T> |
Update.setNullParameter(int position,
int jdbcType)
Set an ordered parameter that is null (same as bind).
|
Update<T> |
Update.setNullParameter(String name,
int jdbcType)
Bind a named parameter that is null (same as bind).
|
Update<T> |
Update.setParameter(int position,
Object value)
Set and ordered bind parameter (same as bind).
|
Update<T> |
Update.setParameter(String name,
Object param)
Bind a named parameter (same as bind).
|
Update<T> |
Update.setTimeout(int secs)
Set a timeout for statement execution.
|
| Modifier and Type | Method and Description |
|---|---|
int |
EbeanServer.execute(Update<?> update)
Execute a ORM insert update or delete statement using the current
transaction.
|
int |
EbeanServer.execute(Update<?> update,
Transaction t)
Execute a ORM insert update or delete statement with an explicit
transaction.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
SpiUpdate<T>
Internal extension to the Update interface.
|
| Modifier and Type | Method and Description |
|---|---|
<T> Update<T> |
DefaultServer.createNamedUpdate(Class<T> beanType,
String namedUpdate) |
<T> Update<T> |
DefaultServer.createUpdate(Class<T> beanType,
String ormUpdate) |
| Modifier and Type | Method and Description |
|---|---|
int |
DefaultServer.execute(Update<?> update)
Execute the orm update.
|
int |
DefaultServer.execute(Update<?> update,
Transaction t)
Execute the updateSql with an explicit transaction.
|
int |
Persister.executeOrmUpdate(Update<?> update,
Transaction t)
Execute the Update.
|
| Modifier and Type | Method and Description |
|---|---|
int |
DefaultPersister.executeOrmUpdate(Update<?> update,
Transaction t)
Execute the orm update.
|
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultOrmUpdate<T>
Default implementation of OrmUpdate.
|
Copyright © 2014. All Rights Reserved.