T
- The owner typepublic class RuntimePersistentProperty<T> extends java.lang.Object implements PersistentProperty
PersistentProperty
.Modifier and Type | Field and Description |
---|---|
static RuntimePersistentProperty<java.lang.Object>[] |
EMPTY_PROPERTY_ARRAY |
Modifier and Type | Method and Description |
---|---|
io.micronaut.core.annotation.AnnotationMetadata |
getAnnotationMetadata() |
io.micronaut.core.type.Argument<?> |
getArgument() |
DataType |
getDataType() |
java.lang.String |
getName()
The name of the property.
|
RuntimePersistentEntity<T> |
getOwner()
Obtains the owner of this persistent property.
|
java.lang.String |
getPersistedName()
The persisted name is the fully qualified name including potential schema definitions.
|
io.micronaut.core.beans.BeanProperty<T,?> |
getProperty() |
java.lang.Class<?> |
getType() |
java.lang.String |
getTypeName()
The type of the property.
|
boolean |
isAssignable(java.lang.Class<?> type)
Is the property assignable to the given type.
|
boolean |
isAssignable(java.lang.String type)
Is the property assignable to the given type name.
|
boolean |
isConstructorArgument() |
boolean |
isEnum() |
boolean |
isOptional()
Whether the property can be set to null.
|
boolean |
isReadOnly()
Whether the property is read-only, for example for generated values.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCapitilizedName, isAutoPopulated, isGenerated, isNullableMetadata, isRequired
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByType
public static final RuntimePersistentProperty<java.lang.Object>[] EMPTY_PROPERTY_ARRAY
public io.micronaut.core.type.Argument<?> getArgument()
public boolean isConstructorArgument()
isConstructorArgument
in interface PersistentProperty
public final boolean isOptional()
PersistentProperty
isOptional
in interface PersistentProperty
public boolean isEnum()
isEnum
in interface PersistentProperty
public DataType getDataType()
getDataType
in interface PersistentProperty
public boolean isReadOnly()
PersistentProperty
isReadOnly
in interface PersistentProperty
@NonNull public java.lang.Class<?> getType()
@NonNull public java.lang.String getName()
PersistentProperty
getName
in interface io.micronaut.core.naming.Named
getName
in interface PersistentProperty
@NonNull public java.lang.String getTypeName()
PersistentProperty
getTypeName
in interface PersistentProperty
@NonNull public RuntimePersistentEntity<T> getOwner()
PersistentProperty
getOwner
in interface PersistentProperty
public boolean isAssignable(@NonNull java.lang.String type)
PersistentProperty
isAssignable
in interface PersistentProperty
type
- The type namepublic boolean isAssignable(@NonNull java.lang.Class<?> type)
PersistentProperty
isAssignable
in interface PersistentProperty
type
- The typepublic io.micronaut.core.annotation.AnnotationMetadata getAnnotationMetadata()
getAnnotationMetadata
in interface io.micronaut.core.annotation.AnnotationMetadataProvider
public io.micronaut.core.beans.BeanProperty<T,?> getProperty()
@NonNull public java.lang.String getPersistedName()
PersistentElement
getPersistedName
in interface PersistentElement
public java.lang.String toString()
toString
in class java.lang.Object