|
||||||||||
上一个 下一个 | 框架 无框架 |
使用 JPABase 的软件包 | |
---|---|
play.db.jpa |
play.db.jpa 中 JPABase 的使用 |
---|
play.db.jpa 中 JPABase 的子类 | |
---|---|
class |
GenericModel
A super class for JPA entities |
class |
JPASupport
已过时。 |
class |
Model
Base class for JPA model objects Automatically provide a @Id Long id field |
类型参数类型为 JPABase 的 play.db.jpa 中的方法 | ||
---|---|---|
static
|
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)
已过时。 |
|
static
|
GenericModel.create(ParamNode rootParamNode,
java.lang.String name,
java.lang.Class<?> type,
java.lang.annotation.Annotation[] annotations)
|
|
static
|
GenericModel.create(java.lang.String name,
Scope.Params params)
|
|
|
GenericModel.delete()
Delete the entity. |
|
static
|
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)
已过时。 |
|
static
|
GenericModel.edit(ParamNode rootParamNode,
java.lang.String name,
java.lang.Object o,
java.lang.annotation.Annotation[] annotations)
|
|
static
|
GenericModel.findAll()
Find all entities of this type |
|
static
|
GenericModel.findById(java.lang.Object id)
Find the entity with the corresponding id. |
|
|
GenericModel.merge()
Merge this object to obtain a managed entity (usefull when the object comes from the Cache). |
|
|
GenericModel.refresh()
Refresh the entity state. |
|
|
GenericModel.save()
store (ie insert) the entity. |
返回 JPABase 的 play.db.jpa 中的方法 | |
---|---|
JPABase |
JPQL.create(java.lang.String entity,
java.lang.String name,
Scope.Params params)
|
JPABase |
JPQL.findById(java.lang.String entity,
java.lang.Object id)
|
JPABase |
JPQL.findOneBy(java.lang.String entity,
java.lang.String query,
java.lang.Object[] params)
|
|
||||||||||
上一个 下一个 | 框架 无框架 |