Class ParameterTypeUtils

java.lang.Object
io.hypersistence.utils.hibernate.type.util.ParameterTypeUtils

public class ParameterTypeUtils extends Object
ParameterizedTypeUtils - DynamicParameterizedType.ParameterType utilities holder.
Since:
2.16.0
Author:
Vlad Mihalcea
  • Method Summary

    Modifier and Type
    Method
    Description
    static <A extends Annotation>
    A
    getAnnotationOrNull(org.hibernate.usertype.DynamicParameterizedType.ParameterType parameterType, Class<A> annotationClass)
    Get the required annotation from the DynamicParameterizedType.ParameterType instance.
    static <A extends Annotation>
    List<A>
    getAnnotations(org.hibernate.usertype.DynamicParameterizedType.ParameterType parameterType, Class<A> annotationClass)
    Get the required annotations from the DynamicParameterizedType.ParameterType instance.
    static String
    getColumnType(org.hibernate.usertype.DynamicParameterizedType.ParameterType parameterType)
    Get the column type association from the DynamicParameterizedType.ParameterType instance.
    static org.hibernate.usertype.DynamicParameterizedType.ParameterType
    resolve(Properties properties)
    Resolve the DynamicParameterizedType.ParameterType instance from the provided Properties object.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • resolve

      public static org.hibernate.usertype.DynamicParameterizedType.ParameterType resolve(Properties properties)
      Resolve the DynamicParameterizedType.ParameterType instance from the provided Properties object.
      Parameters:
      properties - configuration properties
      Returns:
      DynamicParameterizedType.ParameterType instance
    • getAnnotationOrNull

      public static <A extends Annotation> A getAnnotationOrNull(org.hibernate.usertype.DynamicParameterizedType.ParameterType parameterType, Class<A> annotationClass)
      Get the required annotation from the DynamicParameterizedType.ParameterType instance.
      Parameters:
      parameterType - DynamicParameterizedType.ParameterType instance
      annotationClass - annotation class
      Returns:
      annotation
    • getAnnotations

      public static <A extends Annotation> List<A> getAnnotations(org.hibernate.usertype.DynamicParameterizedType.ParameterType parameterType, Class<A> annotationClass)
      Get the required annotations from the DynamicParameterizedType.ParameterType instance.
      Parameters:
      parameterType - DynamicParameterizedType.ParameterType instance
      annotationClass - annotation class
      Returns:
      annotations
    • getColumnType

      public static String getColumnType(org.hibernate.usertype.DynamicParameterizedType.ParameterType parameterType)
      Get the column type association from the DynamicParameterizedType.ParameterType instance.
      Parameters:
      parameterType - DynamicParameterizedType.ParameterType instance
      Returns:
      column type