Class ParameterTypeUtils
- java.lang.Object
-
- com.vladmihalcea.hibernate.type.util.ParameterTypeUtils
-
public class ParameterTypeUtils extends java.lang.Object
ParameterizedTypeUtils
-DynamicParameterizedType.ParameterType
utilities holder.- Since:
- 2.16.0
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.regex.Pattern
COLUMN_TYPE_PATTERN
-
Constructor Summary
Constructors Modifier Constructor Description private
ParameterTypeUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <A extends java.lang.annotation.Annotation>
AgetAnnotationOrNull(org.hibernate.usertype.DynamicParameterizedType.ParameterType parameterType, java.lang.Class<A> annotationClass)
Get the required annotation from theDynamicParameterizedType.ParameterType
instance.static <A extends java.lang.annotation.Annotation>
java.util.List<A>getAnnotations(org.hibernate.usertype.DynamicParameterizedType.ParameterType parameterType, java.lang.Class<A> annotationClass)
Get the required annotations from theDynamicParameterizedType.ParameterType
instance.static java.lang.String
getColumnType(org.hibernate.usertype.DynamicParameterizedType.ParameterType parameterType)
Get the column type association from theDynamicParameterizedType.ParameterType
instance.static org.hibernate.usertype.DynamicParameterizedType.ParameterType
resolve(java.util.Properties properties)
Resolve theDynamicParameterizedType.ParameterType
instance from the providedProperties
object.
-
-
-
Method Detail
-
resolve
public static org.hibernate.usertype.DynamicParameterizedType.ParameterType resolve(java.util.Properties properties)
Resolve theDynamicParameterizedType.ParameterType
instance from the providedProperties
object.- Parameters:
properties
- configuration properties- Returns:
DynamicParameterizedType.ParameterType
instance
-
getAnnotationOrNull
public static <A extends java.lang.annotation.Annotation> A getAnnotationOrNull(org.hibernate.usertype.DynamicParameterizedType.ParameterType parameterType, java.lang.Class<A> annotationClass)
Get the required annotation from theDynamicParameterizedType.ParameterType
instance.- Parameters:
parameterType
-DynamicParameterizedType.ParameterType
instanceannotationClass
- annotation class- Returns:
- annotation
-
getAnnotations
public static <A extends java.lang.annotation.Annotation> java.util.List<A> getAnnotations(org.hibernate.usertype.DynamicParameterizedType.ParameterType parameterType, java.lang.Class<A> annotationClass)
Get the required annotations from theDynamicParameterizedType.ParameterType
instance.- Parameters:
parameterType
-DynamicParameterizedType.ParameterType
instanceannotationClass
- annotation class- Returns:
- annotations
-
getColumnType
public static java.lang.String getColumnType(org.hibernate.usertype.DynamicParameterizedType.ParameterType parameterType)
Get the column type association from theDynamicParameterizedType.ParameterType
instance.- Parameters:
parameterType
-DynamicParameterizedType.ParameterType
instance- Returns:
- column type
-
-