Class JsonStringSqlTypeDescriptor
- java.lang.Object
-
- com.vladmihalcea.hibernate.type.json.internal.AbstractJsonSqlTypeDescriptor
-
- com.vladmihalcea.hibernate.type.json.internal.JsonStringSqlTypeDescriptor
-
- All Implemented Interfaces:
java.io.Serializable
,org.hibernate.type.descriptor.sql.SqlTypeDescriptor
public class JsonStringSqlTypeDescriptor extends AbstractJsonSqlTypeDescriptor
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static JsonStringSqlTypeDescriptor
INSTANCE
-
Constructor Summary
Constructors Constructor Description JsonStringSqlTypeDescriptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Object
extractJson(java.sql.CallableStatement statement, int index)
protected java.lang.Object
extractJson(java.sql.CallableStatement statement, java.lang.String name)
protected java.lang.Object
extractJson(java.sql.ResultSet rs, java.lang.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
-
-
-
-
Field Detail
-
INSTANCE
public static final JsonStringSqlTypeDescriptor INSTANCE
-
-
Method Detail
-
getSqlType
public int getSqlType()
- Specified by:
getSqlType
in interfaceorg.hibernate.type.descriptor.sql.SqlTypeDescriptor
- Overrides:
getSqlType
in classAbstractJsonSqlTypeDescriptor
-
getBinder
public <X> org.hibernate.type.descriptor.ValueBinder<X> getBinder(org.hibernate.type.descriptor.java.JavaTypeDescriptor<X> javaTypeDescriptor)
-
extractJson
protected java.lang.Object extractJson(java.sql.ResultSet rs, java.lang.String name) throws java.sql.SQLException
- Overrides:
extractJson
in classAbstractJsonSqlTypeDescriptor
- Throws:
java.sql.SQLException
-
extractJson
protected java.lang.Object extractJson(java.sql.CallableStatement statement, int index) throws java.sql.SQLException
- Overrides:
extractJson
in classAbstractJsonSqlTypeDescriptor
- 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 classAbstractJsonSqlTypeDescriptor
- Throws:
java.sql.SQLException
-
-