@java.lang.SuppressWarnings("rawtypes") public interface PersistentEntity extends Initializable
Represents a persistent entity.
Type Params | Return Type | Name and description |
---|---|---|
|
public boolean |
addOwner(java.lang.Class type) Add a class to the owners list of this PersistentEntity |
|
public java.util.List<Association> |
getAssociations() A list of the associations for this entity. |
|
public PersistentProperty[] |
getCompositeIdentity() The composite id |
|
public java.lang.String |
getDecapitalizedName()
|
|
public java.lang.String |
getDiscriminator() The discriminator used when persisting subclasses of an inheritance hierarchy |
|
public java.util.List<Embedded> |
getEmbedded() A list of embedded associations for this entity. |
|
public PersistentProperty |
getIdentity() Returns the identity of the instance |
|
public java.lang.Class |
getJavaClass()
|
|
public ClassMapping |
getMapping() Defines the mapping between this persistent entity and an external form |
|
public MappingContext |
getMappingContext() Obtains the MappingContext where this PersistentEntity is defined |
|
public java.lang.String |
getName() The entity name including any package prefix |
|
public PersistentEntity |
getParentEntity() Returns the parent entity of this entity |
|
public java.util.List<PersistentProperty> |
getPersistentProperties() A list of properties to be persisted |
|
public java.util.List<java.lang.String> |
getPersistentPropertyNames() A list of property names that a persistent |
|
public PersistentProperty |
getPropertyByName(java.lang.String name) Obtains a PersistentProperty instance by name |
|
public EntityReflector |
getReflector()
|
|
public PersistentEntity |
getRootEntity() Obtains the root entity of an inheritance hierarchy |
|
public TenantId |
getTenantId()
|
|
public PersistentProperty |
getVersion() Returns the version property. |
|
public boolean |
hasProperty(java.lang.String name, java.lang.Class type) Checks whether an entity has a bean property of the given name and type |
|
public boolean |
isExternal() Whether this PersistentEntity is mapped using a different store. |
|
public boolean |
isIdentityName(java.lang.String propertyName) True if the given property is the identifier |
|
public boolean |
isInstance(java.lang.Object obj) Tests whether the given instance is an instance of this persistent entity |
|
public boolean |
isMultiTenant()
|
|
public boolean |
isOwningEntity(PersistentEntity owner) Returns whether the specified entity asserts ownership over this entity |
|
public boolean |
isRoot() Whether this entity is a root entity |
|
public boolean |
isVersioned() Is the entity versioned for optimistic locking. |
|
public java.lang.Object |
newInstance() Constructs a new instance |
|
public void |
setExternal(boolean external) Whether this PersistentEntity is mapped using a different store. |
Methods inherited from class | Name |
---|---|
interface Initializable |
initialize, isInitialized |
Add a class to the owners list of this PersistentEntity
type
- The class to addA list of the associations for this entity. This is typically a subset of the list returned by getPersistentProperties()
The composite id
The discriminator used when persisting subclasses of an inheritance hierarchy
A list of embedded associations for this entity. This is typically a subset of the list returned by getPersistentProperties()
Returns the identity of the instance
Defines the mapping between this persistent entity and an external form
Obtains the MappingContext where this PersistentEntity is defined
The entity name including any package prefix
Returns the parent entity of this entity
A list of properties to be persisted
A list of property names that a persistent
Obtains a PersistentProperty instance by name
name
- The name of the property
Obtains the root entity of an inheritance hierarchy
Returns the version property.
Checks whether an entity has a bean property of the given name and type
name
- The nametype
- The typeWhether this PersistentEntity is mapped using a different store. Used for cross store persistence.
True if the given property is the identifier
propertyName
- the property nameTests whether the given instance is an instance of this persistent entity
obj
- The object
Returns whether the specified entity asserts ownership over this entity
owner
- The owning entityWhether this entity is a root entity
Is the entity versioned for optimistic locking.
Constructs a new instance
Whether this PersistentEntity is mapped using a different store. Used for cross store persistence.
external
- true if this entity is externally mapped