play.db.jpa
类 JPABase

java.lang.Object
  继承者 play.db.jpa.JPABase
所有已实现的接口:
java.io.Serializable, Model
直接已知子类:
GenericModel

@MappedSuperclass
public class JPABase
extends java.lang.Object
implements java.io.Serializable, Model

A super class for JPA entities

另请参见:
序列化表格

嵌套类摘要
static class JPABase.JPAQueryException
           
 
从接口 play.db.Model 继承的嵌套类/接口
Model.BinaryField, Model.Choices, Model.Factory, Model.Manager, Model.Property
 
字段摘要
 boolean willBeSaved
           
 
构造方法摘要
JPABase()
           
 
方法摘要
 void _delete()
           
 java.lang.Object _key()
           
 void _save()
           
 EntityManager em()
          Retrieve the current entityManager
 boolean equals(java.lang.Object other)
          JPASupport instances a and b are equals if either a == b or a and b have same key and class
 java.lang.Object getEntityId()
          已过时。 
static JPAConfig getJPAConfig(java.lang.Class clazz)
          Returns the correct JPAConfig used to manage this entity-class
 JPAContext getJPAContext()
           
 int hashCode()
           
 boolean isPersistent()
           
 java.lang.String toString()
           
 
从类 java.lang.Object 继承的方法
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

字段详细信息

willBeSaved

public transient boolean willBeSaved
构造方法详细信息

JPABase

public JPABase()
方法详细信息

getJPAContext

public JPAContext getJPAContext()

getJPAConfig

public static JPAConfig getJPAConfig(java.lang.Class clazz)
Returns the correct JPAConfig used to manage this entity-class


_save

public void _save()
指定者:
接口 Model 中的 _save

_delete

public void _delete()
指定者:
接口 Model 中的 _delete

_key

public java.lang.Object _key()
指定者:
接口 Model 中的 _key

em

public EntityManager em()
Retrieve the current entityManager

返回:
the current entityManager

isPersistent

public boolean isPersistent()

equals

public boolean equals(java.lang.Object other)
JPASupport instances a and b are equals if either a == b or a and b have same key and class

覆盖:
java.lang.Object 中的 equals
参数:
other -
返回:
true if equality condition above is verified

hashCode

public int hashCode()
覆盖:
java.lang.Object 中的 hashCode

toString

public java.lang.String toString()
覆盖:
java.lang.Object 中的 toString

getEntityId

@Deprecated
public java.lang.Object getEntityId()
已过时。 



Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly