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(java.lang.Class<?> type,
java.lang.String name,
java.util.Map<java.lang.String,java.lang.String[]> params,
java.lang.annotation.Annotation[] annotations)
Deprecated.
|
static <T extends JPABase> |
GenericModel.create(ParamNode rootParamNode,
java.lang.String name,
java.lang.Class<?> type,
java.lang.annotation.Annotation[] annotations)
Create a new model
|
static <T extends JPABase> |
GenericModel.create(java.lang.String name,
Scope.Params params)
Create the new entity
|
<T extends JPABase> |
GenericModel.delete()
Delete the entity.
|
static <T extends JPABase> |
GenericModel.edit(java.lang.Object o,
java.lang.String name,
java.util.Map<java.lang.String,java.lang.String[]> params,
java.lang.annotation.Annotation[] annotations)
Deprecated.
|
static <T extends JPABase> |
GenericModel.edit(ParamNode rootParamNode,
java.lang.String name,
java.lang.Object o,
java.lang.annotation.Annotation[] annotations)
Edit a model
|
static <T extends JPABase> |
GenericModel.edit(java.lang.String dbName,
ParamNode rootParamNode,
java.lang.String name,
java.lang.Object o,
java.lang.annotation.Annotation[] annotations)
Edit a model
|
static <T extends JPABase> |
GenericModel.findAll()
Find all entities of this type
|
<T extends JPABase> |
JPQL.findAll(java.lang.String entity) |
<T extends JPABase> |
JPQL.findAll(java.lang.String dbName,
java.lang.String entity) |
<T extends JPABase> |
JPQL.findBy(java.lang.String entity,
java.lang.String query,
java.lang.Object[] params) |
<T extends JPABase> |
JPQL.findBy(java.lang.String dbName,
java.lang.String entity,
java.lang.String query,
java.lang.Object[] params) |
static <T extends JPABase> |
GenericModel.findById(java.lang.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(java.lang.String entity,
java.lang.String name,
Scope.Params params) |
JPABase |
JPQL.create(java.lang.String dbName,
java.lang.String entity,
java.lang.String name,
Scope.Params params) |
JPABase |
JPQL.findById(java.lang.String entity,
java.lang.Object id) |
JPABase |
JPQL.findById(java.lang.String dbName,
java.lang.String entity,
java.lang.Object id) |
JPABase |
JPQL.findOneBy(java.lang.String entity,
java.lang.String query,
java.lang.Object[] params) |
JPABase |
JPQL.findOneBy(java.lang.String dbName,
java.lang.String entity,
java.lang.String query,
java.lang.Object[] params) |
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly