Class AbstractJsonSqlTypeDescriptor
- java.lang.Object
-
- com.vladmihalcea.hibernate.type.json.internal.AbstractJsonSqlTypeDescriptor
-
- All Implemented Interfaces:
java.io.Serializable
,org.hibernate.type.descriptor.sql.SqlTypeDescriptor
- Direct Known Subclasses:
JsonBinarySqlTypeDescriptor
,JsonBlobSqlTypeDescriptor
,JsonBytesSqlTypeDescriptor
,JsonSqlTypeDescriptor
,JsonStringSqlTypeDescriptor
public abstract class AbstractJsonSqlTypeDescriptor extends java.lang.Object implements org.hibernate.type.descriptor.sql.SqlTypeDescriptor
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractJsonSqlTypeDescriptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canBeRemapped()
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.ValueExtractor<X>
getExtractor(org.hibernate.type.descriptor.java.JavaTypeDescriptor<X> javaTypeDescriptor)
int
getSqlType()
-
-
-
Method Detail
-
getSqlType
public int getSqlType()
- Specified by:
getSqlType
in interfaceorg.hibernate.type.descriptor.sql.SqlTypeDescriptor
-
canBeRemapped
public boolean canBeRemapped()
- Specified by:
canBeRemapped
in interfaceorg.hibernate.type.descriptor.sql.SqlTypeDescriptor
-
getExtractor
public <X> org.hibernate.type.descriptor.ValueExtractor<X> getExtractor(org.hibernate.type.descriptor.java.JavaTypeDescriptor<X> javaTypeDescriptor)
- Specified by:
getExtractor
in interfaceorg.hibernate.type.descriptor.sql.SqlTypeDescriptor
-
extractJson
protected java.lang.Object extractJson(java.sql.ResultSet rs, java.lang.String name) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
extractJson
protected java.lang.Object extractJson(java.sql.CallableStatement statement, int index) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
extractJson
protected java.lang.Object extractJson(java.sql.CallableStatement statement, java.lang.String name) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
-