|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PersistentEntity
Represents a persistent entity
Method Summary | |
---|---|
List<Association> |
getAssociations()
A list of the associations for this entity. |
String |
getDecapitalizedName()
|
String |
getDiscriminator()
The discriminator used when persisting subclasses of an inheritance hierarchy |
PersistentProperty |
getIdentity()
Returns the identity of the instance |
Class |
getJavaClass()
|
ClassMapping |
getMapping()
Defines the mapping between this persistent entity and an external form |
MappingContext |
getMappingContext()
Obtains the MappingContext where this PersistentEntity is defined |
String |
getName()
The entity name including any package prefix |
PersistentEntity |
getParentEntity()
Returns the parent entity of this entity |
List<PersistentProperty> |
getPersistentProperties()
A list of properties to be persisted |
List<String> |
getPersistentPropertyNames()
A list of property names that a persistent |
PersistentProperty |
getPropertyByName(String name)
Obtains a PersistentProperty instance by name |
PersistentEntity |
getRootEntity()
Obtains the root entity of an inheritance hierarchy |
boolean |
hasProperty(String name,
Class type)
Checks whether an entity has a bean property of the given name and type |
boolean |
isInstance(Object obj)
Tests whether the given instance is an instance of this persistent entity |
boolean |
isOwningEntity(PersistentEntity owner)
Returns whether the specified entity asserts ownership over this entity |
boolean |
isRoot()
Whether this entity is a root entity |
Object |
newInstance()
Constructs a new instance |
Methods inherited from interface org.springframework.datastore.mapping.lifecycle.Initializable |
---|
initialize |
Method Detail |
---|
String getName()
PersistentProperty getIdentity()
List<PersistentProperty> getPersistentProperties()
List<Association> getAssociations()
getPersistentProperties()
PersistentProperty getPropertyByName(String name)
name
- The name of the property
Class getJavaClass()
boolean isInstance(Object obj)
obj
- The object
ClassMapping getMapping()
Object newInstance()
List<String> getPersistentPropertyNames()
String getDecapitalizedName()
boolean isOwningEntity(PersistentEntity owner)
owner
- The owning entity
PersistentEntity getParentEntity()
PersistentEntity getRootEntity()
boolean isRoot()
String getDiscriminator()
MappingContext getMappingContext()
boolean hasProperty(String name, Class type)
name
- The nametype
- The type
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |