public class AttributeConverterDefinition extends Object
AttributeConverterDescriptor| Constructor and Description |
|---|
AttributeConverterDefinition(AttributeConverter attributeConverter,
boolean autoApply) |
| Modifier and Type | Method and Description |
|---|---|
static AttributeConverterDefinition |
from(AttributeConverter attributeConverter)
Build an AttributeConverterDefinition from an AttributeConverter instance.
|
static AttributeConverterDefinition |
from(AttributeConverter attributeConverter,
boolean autoApply)
Build an AttributeConverterDefinition from the AttributeConverter instance and
whether or not to auto-apply it.
|
static AttributeConverterDefinition |
from(Class<? extends AttributeConverter> attributeConverterClass)
Build an AttributeConverterDefinition from the AttributeConverter Class reference.
|
static AttributeConverterDefinition |
from(Class<? extends AttributeConverter> attributeConverterClass,
boolean autoApply)
Build an AttributeConverterDefinition from the AttributeConverter Class reference and
whether or not to auto-apply it.
|
AttributeConverter |
getAttributeConverter() |
Class |
getDatabaseColumnType() |
Class |
getEntityAttributeType() |
boolean |
isAutoApply() |
String |
toString() |
public AttributeConverterDefinition(AttributeConverter attributeConverter, boolean autoApply)
public static AttributeConverterDefinition from(Class<? extends AttributeConverter> attributeConverterClass, boolean autoApply)
attributeConverterClass - The AttributeConverter ClassautoApply - Should the AttributeConverter be auto-applied?public static AttributeConverterDefinition from(Class<? extends AttributeConverter> attributeConverterClass)
Converter annotation 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, false is assumed.attributeConverterClass - The converter classpublic static AttributeConverterDefinition from(AttributeConverter attributeConverter)
Converter annotation 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, false is assumed.attributeConverter - The AttributeConverter instancepublic static AttributeConverterDefinition from(AttributeConverter attributeConverter, boolean autoApply)
attributeConverter - The AttributeConverter instanceautoApply - Should the AttributeConverter be auto-applied?public AttributeConverter getAttributeConverter()
public boolean isAutoApply()
public Class getEntityAttributeType()
public Class getDatabaseColumnType()
Copyright © 2017 JBoss by Red Hat. All rights reserved.