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

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

public class JsonStringSqlTypeDescriptor
extends AbstractJsonSqlTypeDescriptor

Author:
Vlad Mihalcea
See Also:
Serialized Form

Field Summary
static JsonStringSqlTypeDescriptor INSTANCE
           
 
Constructor Summary
JsonStringSqlTypeDescriptor()
           
 
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()
           
 
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
 

Field Detail

INSTANCE

public static final JsonStringSqlTypeDescriptor INSTANCE
Constructor Detail

JsonStringSqlTypeDescriptor

public JsonStringSqlTypeDescriptor()
Method Detail

getSqlType

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

getBinder

public <X> org.hibernate.type.descriptor.ValueBinder<X> getBinder(org.hibernate.type.descriptor.java.JavaTypeDescriptor<X> javaTypeDescriptor)

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


Copyright © 2020. All rights reserved.