Class RuntimePersistentProperty<T>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      io.micronaut.core.annotation.AnnotationMetadata getAnnotationMetadata()  
      io.micronaut.core.type.Argument<?> getArgument()  
      AttributeConverter<java.lang.Object,​java.lang.Object> getConverter()  
      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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface io.micronaut.core.annotation.AnnotationMetadataProvider

        findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByType
      • Methods inherited from interface io.micronaut.core.annotation.AnnotationSource

        getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclared
    • Method Detail

      • getArgument

        public io.micronaut.core.type.Argument<?> getArgument()
        Returns:
        The argument for this property.
      • isEnum

        public boolean isEnum()
        Specified by:
        isEnum in interface PersistentProperty
        Returns:
        Returns whether the property is an enum.
      • isReadOnly

        public boolean isReadOnly()
        Description copied from interface: PersistentProperty
        Whether the property is read-only, for example for generated values.
        Specified by:
        isReadOnly in interface PersistentProperty
        Returns:
        True if it is read-only
      • getType

        @NonNull
        public java.lang.Class<?> getType()
        Returns:
        The property type, unwrapped if primitive
      • getName

        @NonNull
        public java.lang.String getName()
        Description copied from interface: PersistentProperty
        The name of the property.
        Specified by:
        getName in interface io.micronaut.core.naming.Named
        Specified by:
        getName in interface PersistentProperty
        Returns:
        The property name
      • isAssignable

        public boolean isAssignable​(@NonNull
                                    java.lang.String type)
        Description copied from interface: PersistentProperty
        Is the property assignable to the given type name.
        Specified by:
        isAssignable in interface PersistentProperty
        Parameters:
        type - The type name
        Returns:
        True if it is
      • isAssignable

        public boolean isAssignable​(@NonNull
                                    java.lang.Class<?> type)
        Description copied from interface: PersistentProperty
        Is the property assignable to the given type.
        Specified by:
        isAssignable in interface PersistentProperty
        Parameters:
        type - The type
        Returns:
        True it is
      • getAnnotationMetadata

        public io.micronaut.core.annotation.AnnotationMetadata getAnnotationMetadata()
        Specified by:
        getAnnotationMetadata in interface io.micronaut.core.annotation.AnnotationMetadataProvider
      • getProperty

        public io.micronaut.core.beans.BeanProperty<T,​?> getProperty()
        Returns:
        The backing bean property
      • getPersistedName

        @NonNull
        public java.lang.String getPersistedName()
        Description copied from interface: PersistentElement
        The persisted name is the fully qualified name including potential schema definitions.
        Specified by:
        getPersistedName in interface PersistentElement
        Returns:
        The persisted name.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object