public class AttributeConverterDefinition
extends java.lang.Object
AttributeConverterDescriptor| Constructor and Description |
|---|
AttributeConverterDefinition(javax.persistence.AttributeConverter attributeConverter,
boolean autoApply) |
| Modifier and Type | Method and Description |
|---|---|
static AttributeConverterDefinition |
from(javax.persistence.AttributeConverter attributeConverter)
Build an AttributeConverterDefinition from an AttributeConverter instance.
|
static AttributeConverterDefinition |
from(javax.persistence.AttributeConverter attributeConverter,
boolean autoApply)
Build an AttributeConverterDefinition from the AttributeConverter instance and
whether or not to auto-apply it.
|
static AttributeConverterDefinition |
from(java.lang.Class<? extends javax.persistence.AttributeConverter> attributeConverterClass)
Build an AttributeConverterDefinition from the AttributeConverter Class reference.
|
static AttributeConverterDefinition |
from(java.lang.Class<? extends javax.persistence.AttributeConverter> attributeConverterClass,
boolean autoApply)
Build an AttributeConverterDefinition from the AttributeConverter Class reference and
whether or not to auto-apply it.
|
javax.persistence.AttributeConverter |
getAttributeConverter() |
java.lang.Class |
getDatabaseColumnType() |
java.lang.Class |
getEntityAttributeType() |
boolean |
isAutoApply() |
java.lang.String |
toString() |
public AttributeConverterDefinition(javax.persistence.AttributeConverter attributeConverter,
boolean autoApply)
public static AttributeConverterDefinition from(java.lang.Class<? extends javax.persistence.AttributeConverter> attributeConverterClass, boolean autoApply)
attributeConverterClass - The AttributeConverter ClassautoApply - Should the AttributeConverter be auto-applied?public static AttributeConverterDefinition from(java.lang.Class<? extends javax.persistence.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(javax.persistence.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(javax.persistence.AttributeConverter attributeConverter, boolean autoApply)
attributeConverter - The AttributeConverter instanceautoApply - Should the AttributeConverter be auto-applied?public javax.persistence.AttributeConverter getAttributeConverter()
public boolean isAutoApply()
public java.lang.Class getEntityAttributeType()
public java.lang.Class getDatabaseColumnType()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.