public class JPATypeConverterUtils extends Object
| Constructor and Description |
|---|
JPATypeConverterUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Class |
getAttributeTypeForAttributeConverter(Class<? extends javax.persistence.AttributeConverter> converterCls,
Class attrTypeFallback)
Convenience method that takes the class of an AttributeConverter class, and returns the attribute type that it is for.
|
static Class |
getDatabaseTypeForAttributeConverter(Class<? extends javax.persistence.AttributeConverter> converterCls,
Class attrType,
Class dbTypeFallback)
Convenience method that takes the class of an AttributeConverter class, and returns the datastore type that it is for.
|
public static Class getAttributeTypeForAttributeConverter(Class<? extends javax.persistence.AttributeConverter> converterCls, Class attrTypeFallback)
converterCls - The converter classattrTypeFallback - The fallback to return if the attribute type is not foundpublic static Class getDatabaseTypeForAttributeConverter(Class<? extends javax.persistence.AttributeConverter> converterCls, Class attrType, Class dbTypeFallback)
converterCls - The converter classattrType - Type for the attributedbTypeFallback - The fallback to return if the datastore type is not foundCopyright © 2017. All rights reserved.