T - The typepublic class RuntimePersistentEntity<T> extends AbstractPersistentEntity implements PersistentEntity
PersistentEntity that uses pre-computed Introspected bean data and is completely stateless.| Constructor and Description |
|---|
RuntimePersistentEntity(io.micronaut.core.beans.BeanIntrospection<T> introspection)
Default constructor.
|
RuntimePersistentEntity(java.lang.Class<T> type)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAliasName() |
java.util.Collection<RuntimeAssociation<T>> |
getAssociations()
A list of the associations for this entity.
|
RuntimePersistentProperty<T>[] |
getCompositeIdentity()
The composite id.
|
RuntimePersistentProperty<T>[] |
getConstructorArguments() |
protected RuntimePersistentEntity<T> |
getEntity(java.lang.Class<T> type)
Obtain an entity for the given type.
|
RuntimePersistentProperty<T> |
getIdentity()
Returns the identity of the instance.
|
RuntimePersistentProperty<T> |
getIdentityByName(java.lang.String name)
Obtains an identity PersistentProperty instance by name.
|
io.micronaut.core.beans.BeanIntrospection<T> |
getIntrospection() |
java.lang.String |
getName()
The entity name including any package prefix.
|
PersistentEntity |
getParentEntity()
Returns the parent entity of this entity.
|
java.util.Collection<RuntimePersistentProperty<T>> |
getPersistentProperties()
A list of properties to be persisted.
|
java.util.List<java.lang.String> |
getPersistentPropertyNames()
A list of property names that a persistent.
|
RuntimePersistentProperty<T> |
getPropertyByName(java.lang.String name)
Obtains a PersistentProperty instance by name.
|
RuntimePersistentProperty<T> |
getVersion()
Returns the version property.
|
boolean |
hasAutoPopulatedProperties() |
boolean |
hasCompositeIdentity()
Has composite identity.
|
boolean |
hasIdentity()
Has identity.
|
boolean |
hasPostLoadEventListeners()
Does the entity have post-load event listeners.
|
boolean |
hasPostPersistEventListeners()
Does the entity have post-persist event listeners.
|
boolean |
hasPostRemoveEventListeners()
Does the entity have post-remove event listeners.
|
boolean |
hasPostUpdateEventListeners()
Does the entity have post-update event listeners.
|
boolean |
hasPrePersistEventListeners()
Does the entity have pre-persist event listeners.
|
boolean |
hasPreRemoveEventListeners()
Does the entity have pre-remove event listeners.
|
boolean |
hasPreUpdateEventListeners()
Does the entity have pre-update event listeners.
|
boolean |
isOwningEntity(PersistentEntity owner)
Returns whether the specified entity asserts ownership over this
entity.
|
protected AttributeConverter<java.lang.Object,java.lang.Object> |
resolveConverter(java.lang.Class<?> converterClass)
Resolves a converter instance.
|
java.lang.String |
toString() |
equals, findNamingStrategy, getAnnotationMetadata, getNamingStrategy, getPersistedName, hashCodeclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindNamingStrategy, getDecapitalizedName, getEmbedded, getNamingStrategy, getPath, getPropertyByPath, getPropertyPath, getPropertyPath, getRootEntity, getSimpleName, isEmbeddable, isRoot, isVersioned, of, ofgetPersistedNamefindAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByTypepublic RuntimePersistentEntity(@NonNull
java.lang.Class<T> type)
type - The typepublic RuntimePersistentEntity(@NonNull
io.micronaut.core.beans.BeanIntrospection<T> introspection)
introspection - The introspection@NonNull protected AttributeConverter<java.lang.Object,java.lang.Object> resolveConverter(@NonNull java.lang.Class<?> converterClass)
converterClass - The converter classpublic boolean hasPrePersistEventListeners()
public boolean hasPreRemoveEventListeners()
public boolean hasPreUpdateEventListeners()
public boolean hasPostPersistEventListeners()
public boolean hasPostUpdateEventListeners()
public boolean hasPostRemoveEventListeners()
public boolean hasPostLoadEventListeners()
public java.lang.String toString()
toString in class java.lang.Object@NonNull public java.lang.String getAliasName()
getAliasName in interface PersistentEntitygetAliasName in class AbstractPersistentEntitypublic io.micronaut.core.beans.BeanIntrospection<T> getIntrospection()
@NonNull public java.lang.String getName()
PersistentEntitygetName in interface io.micronaut.core.naming.NamedgetName in interface PersistentEntitypublic boolean hasCompositeIdentity()
PersistentEntityhasCompositeIdentity in interface PersistentEntitypublic boolean hasIdentity()
PersistentEntityhasIdentity in interface PersistentEntity@Nullable public RuntimePersistentProperty<T>[] getCompositeIdentity()
PersistentEntitygetCompositeIdentity in interface PersistentEntity@Nullable public RuntimePersistentProperty<T> getIdentity()
PersistentEntitygetIdentity in interface PersistentEntity@Nullable public RuntimePersistentProperty<T> getVersion()
PersistentEntitygetVersion in interface PersistentEntity@NonNull public java.util.Collection<RuntimePersistentProperty<T>> getPersistentProperties()
PersistentEntitygetPersistentProperties in interface PersistentEntity@NonNull public java.util.Collection<RuntimeAssociation<T>> getAssociations()
PersistentEntityPersistentEntity.getPersistentProperties()getAssociations in interface PersistentEntity@Nullable public RuntimePersistentProperty<T> getPropertyByName(java.lang.String name)
PersistentEntitygetPropertyByName in interface PersistentEntityname - The name of the property@Nullable public RuntimePersistentProperty<T> getIdentityByName(java.lang.String name)
PersistentEntitygetIdentityByName in interface PersistentEntityname - The name of the identity property@NonNull public java.util.List<java.lang.String> getPersistentPropertyNames()
PersistentEntitygetPersistentPropertyNames in interface PersistentEntitypublic boolean isOwningEntity(PersistentEntity owner)
PersistentEntityisOwningEntity in interface PersistentEntityowner - The owning entity@Nullable public PersistentEntity getParentEntity()
PersistentEntitygetParentEntity in interface PersistentEntityprotected RuntimePersistentEntity<T> getEntity(java.lang.Class<T> type)
type - The typeio.micronaut.core.beans.exceptions.IntrospectionException - if the entity doesn't existpublic RuntimePersistentProperty<T>[] getConstructorArguments()
public boolean hasAutoPopulatedProperties()