Package io.micronaut.data.model.runtime
Class RuntimePersistentProperty<T>
java.lang.Object
io.micronaut.data.model.runtime.RuntimePersistentProperty<T>
- Type Parameters:
- T- The owner type
- All Implemented Interfaces:
- io.micronaut.core.annotation.AnnotationMetadataProvider,- io.micronaut.core.annotation.AnnotationSource,- io.micronaut.core.naming.Named,- PersistentElement,- PersistentProperty
- Direct Known Subclasses:
- RuntimeAssociation
A runtime representation of 
PersistentProperty.- Since:
- 1.0.0
- Author:
- graemerocher
- 
Field SummaryFieldsFields inherited from interface io.micronaut.core.annotation.AnnotationSourceEMPTY
- 
Method SummaryModifier and TypeMethodDescriptionio.micronaut.core.annotation.AnnotationMetadataio.micronaut.core.type.Argument<Object>@NonNull StringgetName()The name of the property.@NonNull RuntimePersistentEntity<T>getOwner()Obtains the owner of this persistent property.@NonNull StringThe persisted name is the fully qualified name including potential schema definitions.@NonNull Class<?>getType()@NonNull StringThe type of the property.booleanisAssignable(@NonNull Class<?> type) Is the property assignable to the given type.booleanisAssignable(@NonNull String type) Is the property assignable to the given type name.booleanbooleanisEnum()final booleanWhether the property can be set to null.booleanWhether the property is read-only, for example for generated values.toString()Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.micronaut.core.annotation.AnnotationMetadataProviderfindAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getTargetAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByTypeMethods inherited from interface io.micronaut.core.annotation.AnnotationSourcegetAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclaredMethods inherited from interface io.micronaut.data.model.PersistentPropertygetCapitilizedName, isAutoPopulated, isGenerated, isRequired
- 
Field Details- 
EMPTY_PROPERTY_ARRAY
 
- 
- 
Method Details- 
getArgument- Returns:
- The argument for this property.
 
- 
isConstructorArgumentpublic boolean isConstructorArgument()- Specified by:
- isConstructorArgumentin interface- PersistentProperty
- Returns:
- Is the property also a constructor argument.
 
- 
isOptionalpublic final boolean isOptional()Description copied from interface:PersistentPropertyWhether the property can be set to null.- Specified by:
- isOptionalin interface- PersistentProperty
- Returns:
- True if it can
 
- 
isEnumpublic boolean isEnum()- Specified by:
- isEnumin interface- PersistentProperty
- Returns:
- Returns whether the property is an enum.
 
- 
getDataType- Specified by:
- getDataTypein interface- PersistentProperty
- Returns:
- The data type
 
- 
getJsonDataType- Specified by:
- getJsonDataTypein interface- PersistentProperty
- Returns:
- The json data type for DataType.JSONfields. If none specified, default isJsonDataType.DEFAULT.
 
- 
isReadOnlypublic boolean isReadOnly()Description copied from interface:PersistentPropertyWhether the property is read-only, for example for generated values.- Specified by:
- isReadOnlyin interface- PersistentProperty
- Returns:
- True if it is read-only
 
- 
getType- Returns:
- The property type, unwrapped if primitive
 
- 
getNameDescription copied from interface:PersistentPropertyThe name of the property.- Specified by:
- getNamein interface- io.micronaut.core.naming.Named
- Specified by:
- getNamein interface- PersistentProperty
- Returns:
- The property name
 
- 
getTypeNameDescription copied from interface:PersistentPropertyThe type of the property.- Specified by:
- getTypeNamein interface- PersistentProperty
- Returns:
- The property type
 
- 
getOwnerDescription copied from interface:PersistentPropertyObtains the owner of this persistent property.- Specified by:
- getOwnerin interface- PersistentProperty
- Returns:
- The owner
 
- 
isAssignableDescription copied from interface:PersistentPropertyIs the property assignable to the given type name.- Specified by:
- isAssignablein interface- PersistentProperty
- Parameters:
- type- The type name
- Returns:
- True if it is
 
- 
isAssignableDescription copied from interface:PersistentPropertyIs the property assignable to the given type.- Specified by:
- isAssignablein interface- PersistentProperty
- Parameters:
- type- The type
- Returns:
- True it is
 
- 
getAnnotationMetadatapublic io.micronaut.core.annotation.AnnotationMetadata getAnnotationMetadata()- Specified by:
- getAnnotationMetadatain interface- io.micronaut.core.annotation.AnnotationMetadataProvider
 
- 
getProperty- Returns:
- The backing bean property
 
- 
getConverter- Specified by:
- getConverterin interface- PersistentProperty
- Returns:
- Returns possible property convertor.
 
- 
getPersistedNameDescription copied from interface:PersistentElementThe persisted name is the fully qualified name including potential schema definitions.- Specified by:
- getPersistedNamein interface- PersistentElement
- Returns:
- The persisted name.
 
- 
toString
 
-