Class JsonSqlTypeDescriptor

  • All Implemented Interfaces:
    java.io.Serializable, org.hibernate.type.descriptor.sql.SqlTypeDescriptor, org.hibernate.usertype.ParameterizedType

    public class JsonSqlTypeDescriptor
    extends AbstractJsonSqlTypeDescriptor
    implements org.hibernate.usertype.ParameterizedType
    See Also:
    Serialized Form
    • Field Detail

      • dialect

        private volatile org.hibernate.dialect.Dialect dialect
      • properties

        private volatile java.util.Properties properties
    • Constructor Detail

      • JsonSqlTypeDescriptor

        public JsonSqlTypeDescriptor()
      • JsonSqlTypeDescriptor

        public JsonSqlTypeDescriptor​(java.util.Properties properties)
    • Method Detail

      • getBinder

        public <X> org.hibernate.type.descriptor.ValueBinder<X> getBinder​(org.hibernate.type.descriptor.java.JavaTypeDescriptor<X> javaTypeDescriptor)
        Specified by:
        getBinder in interface org.hibernate.type.descriptor.sql.SqlTypeDescriptor
      • extractJson

        protected java.lang.Object extractJson​(java.sql.ResultSet rs,
                                               java.lang.String name)
                                        throws java.sql.SQLException
        Overrides:
        extractJson in class AbstractJsonSqlTypeDescriptor
        Throws:
        java.sql.SQLException
      • extractJson

        protected java.lang.Object extractJson​(java.sql.CallableStatement statement,
                                               int index)
                                        throws java.sql.SQLException
        Overrides:
        extractJson in class AbstractJsonSqlTypeDescriptor
        Throws:
        java.sql.SQLException
      • extractJson

        protected java.lang.Object extractJson​(java.sql.CallableStatement statement,
                                               java.lang.String name)
                                        throws java.sql.SQLException
        Overrides:
        extractJson in class AbstractJsonSqlTypeDescriptor
        Throws:
        java.sql.SQLException
      • setParameterValues

        public void setParameterValues​(java.util.Properties parameters)
        Specified by:
        setParameterValues in interface org.hibernate.usertype.ParameterizedType