Class SourcePersistentProperty
java.lang.Object
io.micronaut.data.processor.model.SourcePersistentProperty
- All Implemented Interfaces:
- io.micronaut.core.annotation.AnnotatedElement,- io.micronaut.core.annotation.AnnotationMetadata,- io.micronaut.core.annotation.AnnotationMetadataDelegate,- io.micronaut.core.annotation.AnnotationMetadataProvider,- io.micronaut.core.annotation.AnnotationSource,- io.micronaut.core.naming.Described,- io.micronaut.core.naming.Named,- PersistentElement,- PersistentProperty,- io.micronaut.inject.ast.annotation.MutableAnnotationMetadataDelegate<io.micronaut.inject.ast.Element>,- io.micronaut.inject.ast.Element,- io.micronaut.inject.ast.TypedElement
- Direct Known Subclasses:
- SourceAssociation
@Internal
public class SourcePersistentProperty
extends Object
implements PersistentProperty, io.micronaut.inject.ast.TypedElement
Source code level implementation of 
PersistentProperty.- Since:
- 1.0.0
- Author:
- graemerocher
- 
Field SummaryFields inherited from interface io.micronaut.core.annotation.AnnotationMetadataCLASS_NAME_SUFFIX, EMPTY_METADATA, VALUE_MEMBERFields inherited from interface io.micronaut.core.annotation.AnnotationSourceEMPTYFields inherited from interface io.micronaut.inject.ast.ElementEMPTY_ELEMENT_ARRAYFields inherited from interface io.micronaut.inject.ast.annotation.MutableAnnotationMetadataDelegateEMPTY
- 
Method SummaryModifier and TypeMethodDescriptionbooleanio.micronaut.core.annotation.AnnotationMetadata@Nullable StringReturns converter class name if present.@NonNull StringgetName()The name of the property.@NonNull PersistentEntitygetOwner()Obtains the owner of this persistent property.@NonNull StringThe persisted name is the fully qualified name including potential schema definitions.@NonNull io.micronaut.inject.ast.PropertyElement@NonNull io.micronaut.inject.ast.ClassElementgetType()@NonNull StringThe type of the property.inthashCode()booleanisAssignable(@NonNull String type) Is the property assignable to the given type name.booleanisEnum()booleanWhether the property can be set to null.booleanbooleanisPublic()toString()Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.micronaut.core.annotation.AnnotatedElementisDeclaredNonNull, isDeclaredNullable, isNonNull, isNullableMethods inherited from interface io.micronaut.core.annotation.AnnotationMetadataenumValuesSet, enumValuesSet, getValues, hasDeclaredStereotype, hasEvaluatedExpressions, hasStereotypeNonRepeating, isAnnotationPresent, isDeclaredAnnotationPresentMethods inherited from interface io.micronaut.core.annotation.AnnotationMetadataDelegatebooleanValue, booleanValue, booleanValue, booleanValue, classValue, classValue, classValue, classValue, classValues, classValues, classValues, classValues, copyAnnotationMetadata, doubleValue, doubleValue, doubleValue, enumValue, enumValue, enumValue, enumValue, enumValues, enumValues, enumValues, enumValues, findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, findRepeatableAnnotation, findRepeatableAnnotation, getAnnotation, getAnnotation, getAnnotationNameByStereotype, getAnnotationNameByStereotype, getAnnotationNames, getAnnotationNamesByStereotype, getAnnotationNamesByStereotype, getAnnotationType, getAnnotationType, getAnnotationTypeByStereotype, getAnnotationTypeByStereotype, getAnnotationTypesByStereotype, getAnnotationTypesByStereotype, getAnnotationTypesByStereotype, getAnnotationValuesByName, getAnnotationValuesByStereotype, getAnnotationValuesByType, getDeclaredAnnotation, getDeclaredAnnotation, getDeclaredAnnotationNameByStereotype, getDeclaredAnnotationNames, getDeclaredAnnotationNamesByStereotype, getDeclaredAnnotationTypeByStereotype, getDeclaredAnnotationTypeByStereotype, getDeclaredAnnotationValuesByName, getDeclaredAnnotationValuesByType, getDeclaredMetadata, getDeclaredStereotypeAnnotationNames, getDefaultValue, getDefaultValue, getDefaultValue, getDefaultValue, getDefaultValues, getStereotypeAnnotationNames, getTargetAnnotationMetadata, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValues, getValues, hasAnnotation, hasAnnotation, hasDeclaredAnnotation, hasDeclaredAnnotation, hasDeclaredStereotype, hasDeclaredStereotype, hasDeclaredStereotype, hasPropertyExpressions, hasSimpleAnnotation, hasSimpleDeclaredAnnotation, hasStereotype, hasStereotype, hasStereotype, hasStereotype, intValue, intValue, intValue, isAnnotationPresent, isDeclaredAnnotationPresent, isEmpty, isFalse, isFalse, isPresent, isPresent, isRepeatableAnnotation, isRepeatableAnnotation, isTrue, isTrue, longValue, longValue, stringValue, stringValue, stringValue, stringValue, stringValues, stringValues, stringValues, stringValues, synthesize, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByTypeMethods inherited from interface io.micronaut.inject.ast.Elementannotate, annotate, annotate, annotate, annotate, getDescription, getDescription, getDocumentation, getModifiers, getSimpleName, isAbstract, isFinal, isPackagePrivate, isPrivate, isStatic, isSynthetic, removeAnnotation, removeAnnotation, removeAnnotationIf, removeStereotype, removeStereotype, withAnnotationMetadataMethods inherited from interface io.micronaut.data.model.PersistentPropertygetCapitilizedName, getConverter, getJsonDataType, isAssignable, isAutoPopulated, isConstructorArgument, isGenerated, isReadOnly, isRequiredMethods inherited from interface io.micronaut.inject.ast.TypedElementgetArrayDimensions, getGenericType, isArray, isPrimitive, isVoid
- 
Method Details- 
isOptionalpublic 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.
 
- 
equals
- 
getDataType- Specified by:
- getDataTypein interface- PersistentProperty
- Returns:
- The data type
 
- 
hashCodepublic int hashCode()
- 
getAnnotationMetadatapublic io.micronaut.core.annotation.AnnotationMetadata getAnnotationMetadata()- Specified by:
- getAnnotationMetadatain interface- io.micronaut.core.annotation.AnnotationMetadataProvider
 
- 
getNameDescription copied from interface:PersistentPropertyThe name of the property.- Specified by:
- getNamein interface- io.micronaut.inject.ast.Element
- Specified by:
- getNamein interface- io.micronaut.core.naming.Named
- Specified by:
- getNamein interface- PersistentProperty
- Returns:
- The property name
 
- 
isProtectedpublic boolean isProtected()- Specified by:
- isProtectedin interface- io.micronaut.inject.ast.Element
 
- 
isPublicpublic boolean isPublic()- Specified by:
- isPublicin interface- io.micronaut.inject.ast.Element
 
- 
getNativeType- Specified by:
- getNativeTypein interface- io.micronaut.inject.ast.Element
 
- 
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
 
- 
getPropertyElement@NonNull public @NonNull io.micronaut.inject.ast.PropertyElement getPropertyElement()- Returns:
- The property element.
 
- 
getType@NonNull public @NonNull io.micronaut.inject.ast.ClassElement getType()- Specified by:
- getTypein interface- io.micronaut.inject.ast.TypedElement
 
- 
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.
 
- 
getConverterClassNameReturns converter class name if present.- Returns:
- the converter's class name
 
- 
toString
 
-