Package | Description |
---|---|
play.db.jpa |
Modifier and Type | Class and Description |
---|---|
class |
GenericModel
A super class for JPA entities
|
class |
JPASupport
Deprecated.
|
class |
Model
Base class for JPA model objects
Automatically provide a @Id Long id field
|
Modifier and Type | Method and Description |
---|---|
static <T extends JPABase> |
GenericModel.create(Class<?> type,
String name,
Map<String,String[]> params,
Annotation[] annotations)
Deprecated.
|
static <T extends JPABase> |
GenericModel.create(ParamNode rootParamNode,
String name,
Class<?> type,
Annotation[] annotations) |
static <T extends JPABase> |
GenericModel.create(String name,
Scope.Params params) |
<T extends JPABase> |
GenericModel.delete()
Delete the entity.
|
static <T extends JPABase> |
GenericModel.edit(Object o,
String name,
Map<String,String[]> params,
Annotation[] annotations)
Deprecated.
|
static <T extends JPABase> |
GenericModel.edit(ParamNode rootParamNode,
String name,
Object o,
Annotation[] annotations) |
static <T extends JPABase> |
GenericModel.edit(String dbName,
ParamNode rootParamNode,
String name,
Object o,
Annotation[] annotations) |
static <T extends JPABase> |
GenericModel.findAll()
Find all entities of this type
|
<T extends JPABase> |
JPQL.findAll(String entity) |
<T extends JPABase> |
JPQL.findAll(String dbName,
String entity) |
<T extends JPABase> |
JPQL.findBy(String entity,
String query,
Object[] params) |
<T extends JPABase> |
JPQL.findBy(String dbName,
String entity,
String query,
Object[] params) |
static <T extends JPABase> |
GenericModel.findById(Object id)
Find the entity with the corresponding id.
|
<T extends JPABase> |
GenericModel.merge()
Merge this object to obtain a managed entity (useful when the object comes from the Cache).
|
<T extends JPABase> |
GenericModel.refresh()
Refresh the entity state.
|
<T extends JPABase> |
GenericModel.save()
store (ie insert) the entity.
|
Modifier and Type | Method and Description |
---|---|
JPABase |
JPQL.create(String entity,
String name,
Scope.Params params) |
JPABase |
JPQL.create(String dbName,
String entity,
String name,
Scope.Params params) |
JPABase |
JPQL.findById(String entity,
Object id) |
JPABase |
JPQL.findById(String dbName,
String entity,
Object id) |
JPABase |
JPQL.findOneBy(String entity,
String query,
Object[] params) |
JPABase |
JPQL.findOneBy(String dbName,
String entity,
String query,
Object[] params) |
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly