类 AttributeConverterDefinition
- java.lang.Object
-
- org.hibernate.cfg.AttributeConverterDefinition
-
- 所有已实现的接口:
AttributeConverterInfo
@Deprecated public class AttributeConverterDefinition extends Object implements AttributeConverterInfo
已过时。(since 5.3) forces the converter instance to be built too early, which precludes the ability to resolve them from CDI, etc. SeeConverterDescriptorinsteadExternalized representation of an AttributeConverter- 作者:
- Steve Ebersole
-
-
构造器概要
构造器 构造器 说明 AttributeConverterDefinition(javax.persistence.AttributeConverter attributeConverter, boolean autoApply)已过时。
-
方法概要
所有方法 静态方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 static AttributeConverterDefinitionfrom(Class<? extends javax.persistence.AttributeConverter> attributeConverterClass)已过时。Build an AttributeConverterDefinition from the AttributeConverter Class reference.static AttributeConverterDefinitionfrom(Class<? extends javax.persistence.AttributeConverter> attributeConverterClass, boolean autoApply)已过时。Build an AttributeConverterDefinition from the AttributeConverter Class reference and whether or not to auto-apply it.static AttributeConverterDefinitionfrom(javax.persistence.AttributeConverter attributeConverter)已过时。Build an AttributeConverterDefinition from an AttributeConverter instance.static AttributeConverterDefinitionfrom(javax.persistence.AttributeConverter attributeConverter, boolean autoApply)已过时。Build an AttributeConverterDefinition from the AttributeConverter instance and whether or not to auto-apply it.javax.persistence.AttributeConvertergetAttributeConverter()已过时。Class<? extends javax.persistence.AttributeConverter>getConverterClass()已过时。ClassgetDatabaseColumnType()已过时。ClassgetEntityAttributeType()已过时。booleanisAutoApply()已过时。ConverterDescriptortoConverterDescriptor(MetadataBuildingContext context)已过时。StringtoString()已过时。
-
-
-
方法详细资料
-
from
public static AttributeConverterDefinition from(Class<? extends javax.persistence.AttributeConverter> attributeConverterClass, boolean autoApply)
已过时。Build an AttributeConverterDefinition from the AttributeConverter Class reference and whether or not to auto-apply it.- 参数:
attributeConverterClass- The AttributeConverter ClassautoApply- Should the AttributeConverter be auto-applied?- 返回:
- The constructed definition
-
from
public static AttributeConverterDefinition from(Class<? extends javax.persistence.AttributeConverter> attributeConverterClass)
已过时。Build an AttributeConverterDefinition from the AttributeConverter Class reference. The converter is searched for aConverterannotation to determine whether it should be treated as auto-apply. If the annotation is present,Converter.autoApply()is used to make that determination. If the annotation is not present,falseis assumed.- 参数:
attributeConverterClass- The converter class- 返回:
- The constructed definition
-
from
public static AttributeConverterDefinition from(javax.persistence.AttributeConverter attributeConverter)
已过时。Build an AttributeConverterDefinition from an AttributeConverter instance. The converter is searched for aConverterannotation to determine whether it should be treated as auto-apply. If the annotation is present,Converter.autoApply()is used to make that determination. If the annotation is not present,falseis assumed.- 参数:
attributeConverter- The AttributeConverter instance- 返回:
- The constructed definition
-
from
public static AttributeConverterDefinition from(javax.persistence.AttributeConverter attributeConverter, boolean autoApply)
已过时。Build an AttributeConverterDefinition from the AttributeConverter instance and whether or not to auto-apply it.- 参数:
attributeConverter- The AttributeConverter instanceautoApply- Should the AttributeConverter be auto-applied?- 返回:
- The constructed definition
-
getAttributeConverter
public javax.persistence.AttributeConverter getAttributeConverter()
已过时。
-
isAutoApply
public boolean isAutoApply()
已过时。
-
getEntityAttributeType
public Class getEntityAttributeType()
已过时。
-
getDatabaseColumnType
public Class getDatabaseColumnType()
已过时。
-
getConverterClass
public Class<? extends javax.persistence.AttributeConverter> getConverterClass()
已过时。- 指定者:
getConverterClass在接口中AttributeConverterInfo
-
toConverterDescriptor
public ConverterDescriptor toConverterDescriptor(MetadataBuildingContext context)
已过时。- 指定者:
toConverterDescriptor在接口中AttributeConverterInfo
-
-