Class 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>
      A
      getAnnotationOrNull​(org.hibernate.usertype.DynamicParameterizedType.ParameterType parameterType, java.lang.Class<A> annotationClass)
      Get the required annotation from the DynamicParameterizedType.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 the DynamicParameterizedType.ParameterType instance.
      static java.lang.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​(java.util.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
    • Field Detail

      • COLUMN_TYPE_PATTERN

        private static final java.util.regex.Pattern COLUMN_TYPE_PATTERN
    • Constructor Detail

      • ParameterTypeUtils

        private ParameterTypeUtils()
    • Method Detail

      • resolve

        public static org.hibernate.usertype.DynamicParameterizedType.ParameterType resolve​(java.util.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 java.lang.annotation.Annotation> A getAnnotationOrNull​(org.hibernate.usertype.DynamicParameterizedType.ParameterType parameterType,
                                                                                        java.lang.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 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 the DynamicParameterizedType.ParameterType instance.
        Parameters:
        parameterType - DynamicParameterizedType.ParameterType instance
        annotationClass - annotation class
        Returns:
        annotations
      • getColumnType

        public static java.lang.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