public interface PersistentProperty extends PersistentElement
Modifier and Type | Method and Description |
---|---|
default java.lang.String |
getCapitilizedName()
The name with the first letter in upper case as per Java bean conventions.
|
default DataType |
getDataType() |
java.lang.String |
getName()
The name of the property.
|
PersistentEntity |
getOwner()
Obtains the owner of this persistent property.
|
java.lang.String |
getTypeName()
The type of the property.
|
default 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.
|
default boolean |
isAutoPopulated() |
default boolean |
isConstructorArgument() |
default boolean |
isEnum() |
default boolean |
isGenerated()
Whether the property is generated.
|
static boolean |
isNullableMetadata(io.micronaut.core.annotation.AnnotationMetadata metadata)
Return whether the metadata indicates the instance is nullable.
|
default boolean |
isOptional()
Whether the property can be set to null.
|
default boolean |
isReadOnly()
Whether the property is read-only, for example for generated values.
|
default boolean |
isRequired()
Whether a property is required to be specified.
|
getPersistedName
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByType
@NonNull java.lang.String getName()
getName
in interface io.micronaut.core.naming.Named
@NonNull default java.lang.String getCapitilizedName()
@NonNull java.lang.String getTypeName()
@NonNull PersistentEntity getOwner()
default boolean isOptional()
default boolean isRequired()
isOptional()
,
isGenerated()
default boolean isReadOnly()
default boolean isConstructorArgument()
default boolean isGenerated()
default boolean isAutoPopulated()
boolean isAssignable(@NonNull java.lang.String type)
type
- The type namedefault boolean isAssignable(@NonNull java.lang.Class<?> type)
type
- The typedefault DataType getDataType()
default boolean isEnum()
static boolean isNullableMetadata(@NonNull io.micronaut.core.annotation.AnnotationMetadata metadata)
metadata
- The metadata