com.vladmihalcea.hibernate.type.json.internal
Class JsonSqlTypeDescriptor

java.lang.Object
  extended by com.vladmihalcea.hibernate.type.json.internal.AbstractJsonSqlTypeDescriptor
      extended by com.vladmihalcea.hibernate.type.json.internal.JsonSqlTypeDescriptor
All Implemented Interfaces:
Serializable, org.hibernate.type.descriptor.sql.SqlTypeDescriptor, org.hibernate.usertype.ParameterizedType

public class JsonSqlTypeDescriptor
extends AbstractJsonSqlTypeDescriptor
implements org.hibernate.usertype.ParameterizedType

Author:
Vlad Mihalcea
See Also:
Serialized Form

Constructor Summary
JsonSqlTypeDescriptor()
           
JsonSqlTypeDescriptor(Properties properties)
           
 
Method Summary
protected  Object extractJson(CallableStatement statement, int index)
           
protected  Object extractJson(CallableStatement statement, String name)
           
protected  Object extractJson(ResultSet rs, String name)
           
<X> org.hibernate.type.descriptor.ValueBinder<X>
getBinder(org.hibernate.type.descriptor.java.JavaTypeDescriptor<X> javaTypeDescriptor)
           
 int getSqlType()
           
 void setParameterValues(Properties parameters)
           
 
Methods inherited from class com.vladmihalcea.hibernate.type.json.internal.AbstractJsonSqlTypeDescriptor
canBeRemapped, getExtractor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonSqlTypeDescriptor

public JsonSqlTypeDescriptor()

JsonSqlTypeDescriptor

public JsonSqlTypeDescriptor(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 Object extractJson(ResultSet rs,
                             String name)
                      throws SQLException
Overrides:
extractJson in class AbstractJsonSqlTypeDescriptor
Throws:
SQLException

extractJson

protected Object extractJson(CallableStatement statement,
                             int index)
                      throws SQLException
Overrides:
extractJson in class AbstractJsonSqlTypeDescriptor
Throws:
SQLException

extractJson

protected Object extractJson(CallableStatement statement,
                             String name)
                      throws SQLException
Overrides:
extractJson in class AbstractJsonSqlTypeDescriptor
Throws:
SQLException

getSqlType

public int getSqlType()
Specified by:
getSqlType in interface org.hibernate.type.descriptor.sql.SqlTypeDescriptor
Overrides:
getSqlType in class AbstractJsonSqlTypeDescriptor

setParameterValues

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


Copyright © 2022. All rights reserved.