类 DefaultEnhancementContext

    • 构造器详细资料

      • DefaultEnhancementContext

        public DefaultEnhancementContext()
    • 方法详细资料

      • getLoadingClassLoader

        public ClassLoader getLoadingClassLoader()
        从接口复制的说明: EnhancementContext
        Obtain access to the ClassLoader that can be used to load Class references. In JPA SPI terms, this should be a "temporary class loader" as defined by PersistenceUnitInfo.getNewTempClassLoader()
        指定者:
        getLoadingClassLoader 在接口中 EnhancementContext
        返回:
        the classloader for this class
      • isEntityClass

        public boolean isEntityClass​(UnloadedClass classDescriptor)
        look for @Entity annotation
        指定者:
        isEntityClass 在接口中 EnhancementContext
        参数:
        classDescriptor - The descriptor of the class to check.
        返回:
        true if the class is an entity; false otherwise.
      • isCompositeClass

        public boolean isCompositeClass​(UnloadedClass classDescriptor)
        look for @Embeddable annotation
        指定者:
        isCompositeClass 在接口中 EnhancementContext
        参数:
        classDescriptor - The descriptor of the class to check.
        返回:
        true if the class is an embeddable/component; false otherwise.
      • isMappedSuperclassClass

        public boolean isMappedSuperclassClass​(UnloadedClass classDescriptor)
        look for @MappedSuperclass annotation
        指定者:
        isMappedSuperclassClass 在接口中 EnhancementContext
        参数:
        classDescriptor - The descriptor of the class to check.
        返回:
        true if the class is a mapped super class; false otherwise.
      • doDirtyCheckingInline

        public boolean doDirtyCheckingInline​(UnloadedClass classDescriptor)
        从接口复制的说明: EnhancementContext
        Should we in-line dirty checking for persistent attributes for this class?
        指定者:
        doDirtyCheckingInline 在接口中 EnhancementContext
        参数:
        classDescriptor - The descriptor of the class to check.
        返回:
        true
      • isPersistentField

        public boolean isPersistentField​(UnloadedField ctField)
        look for @Transient annotation
        指定者:
        isPersistentField 在接口中 EnhancementContext
        参数:
        ctField - The field reference.
        返回:
        true if the field is ; false otherwise.
      • isMappedCollection

        public boolean isMappedCollection​(UnloadedField field)
        look for @OneToMany, @ManyToMany and @ElementCollection annotations
        指定者:
        isMappedCollection 在接口中 EnhancementContext
        参数:
        field - the field to check
        返回:
        true if the field is mapped