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,io.micronaut.data.model.PersistentElement,io.micronaut.data.model.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 io.micronaut.data.model.PersistentProperty, io.micronaut.inject.ast.TypedElement
Source code level implementation of
PersistentProperty.- Since:
- 1.0.0
-
Field Summary
Fields inherited from interface io.micronaut.core.annotation.AnnotationMetadata
CLASS_NAME_SUFFIX, EMPTY_METADATA, VALUE_MEMBERFields inherited from interface io.micronaut.core.annotation.AnnotationSource
EMPTYFields inherited from interface io.micronaut.inject.ast.Element
EMPTY_ELEMENT_ARRAYFields inherited from interface io.micronaut.inject.ast.annotation.MutableAnnotationMetadataDelegate
EMPTY -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAlias()io.micronaut.core.annotation.AnnotationMetadata@Nullable StringReturns converter class name if present.io.micronaut.data.model.DataType@NonNull StringgetName()@NonNull io.micronaut.data.model.PersistentEntitygetOwner()@NonNull String@NonNull io.micronaut.inject.ast.PropertyElement@NonNull io.micronaut.inject.ast.ClassElementgetType()@NonNull StringinthashCode()booleanisAssignable(@NonNull String type) booleanisEnum()booleanbooleanbooleanisPublic()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.micronaut.core.annotation.AnnotatedElement
isDeclaredNonNull, isDeclaredNullable, isNonNull, isNullableMethods inherited from interface io.micronaut.core.annotation.AnnotationMetadata
enumValuesSet, enumValuesSet, getValues, hasDeclaredStereotype, hasEvaluatedExpressions, hasStereotypeNonRepeating, isAnnotationPresent, isDeclaredAnnotationPresentMethods inherited from interface io.micronaut.core.annotation.AnnotationMetadataDelegate
booleanValue, 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.Element
annotate, 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.PersistentProperty
getCapitalizedName, getCapitilizedName, getConverter, getJsonDataType, isAssignable, isAutoPopulated, isConstructorArgument, isGenerated, isReadOnly, isRequiredMethods inherited from interface io.micronaut.inject.ast.TypedElement
getArrayDimensions, getGenericType, isArray, isPrimitive, isVoid
-
Method Details
-
getAlias
- Specified by:
getAliasin interfaceio.micronaut.data.model.PersistentProperty
-
isOptional
public boolean isOptional()- Specified by:
isOptionalin interfaceio.micronaut.data.model.PersistentProperty
-
isEnum
public boolean isEnum()- Specified by:
isEnumin interfaceio.micronaut.data.model.PersistentProperty
-
equals
-
getDataType
public io.micronaut.data.model.DataType getDataType()- Specified by:
getDataTypein interfaceio.micronaut.data.model.PersistentProperty
-
hashCode
public int hashCode() -
getAnnotationMetadata
public io.micronaut.core.annotation.AnnotationMetadata getAnnotationMetadata()- Specified by:
getAnnotationMetadatain interfaceio.micronaut.core.annotation.AnnotationMetadataProvider
-
getName
- Specified by:
getNamein interfaceio.micronaut.inject.ast.Element- Specified by:
getNamein interfaceio.micronaut.core.naming.Named- Specified by:
getNamein interfaceio.micronaut.data.model.PersistentProperty
-
isProtected
public boolean isProtected()- Specified by:
isProtectedin interfaceio.micronaut.inject.ast.Element
-
isPublic
public boolean isPublic()- Specified by:
isPublicin interfaceio.micronaut.inject.ast.Element
-
getNativeType
- Specified by:
getNativeTypein interfaceio.micronaut.inject.ast.Element
-
getTypeName
- Specified by:
getTypeNamein interfaceio.micronaut.data.model.PersistentProperty
-
getOwner
@NonNull public @NonNull io.micronaut.data.model.PersistentEntity getOwner()- Specified by:
getOwnerin interfaceio.micronaut.data.model.PersistentProperty
-
isAssignable
- Specified by:
isAssignablein interfaceio.micronaut.data.model.PersistentProperty
-
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 interfaceio.micronaut.inject.ast.TypedElement
-
getPersistedName
- Specified by:
getPersistedNamein interfaceio.micronaut.data.model.PersistentElement
-
getConverterClassName
Returns converter class name if present.- Returns:
- the converter's class name
-
toString
-