public class JsonBytesSqlTypeDescriptor extends AbstractJsonSqlTypeDescriptor
Modifier and Type | Field and Description |
---|---|
static String |
CHARSET |
static JsonBytesSqlTypeDescriptor |
INSTANCE |
Constructor and Description |
---|
JsonBytesSqlTypeDescriptor() |
JsonBytesSqlTypeDescriptor(int jdbcType) |
Modifier and Type | Method and Description |
---|---|
protected Object |
extractJson(CallableStatement statement,
int index) |
protected Object |
extractJson(CallableStatement statement,
String name) |
protected Object |
extractJson(ResultSet rs,
String name) |
protected String |
fromJsonBytes(byte[] jsonBytes) |
<X> org.hibernate.type.descriptor.ValueBinder<X> |
getBinder(org.hibernate.type.descriptor.java.JavaTypeDescriptor<X> javaTypeDescriptor) |
int |
getSqlType() |
static JsonBytesSqlTypeDescriptor |
of(org.hibernate.dialect.Database database) |
protected byte[] |
toJsonBytes(String jsonValue) |
canBeRemapped, getExtractor
public static final JsonBytesSqlTypeDescriptor INSTANCE
public static final String CHARSET
public JsonBytesSqlTypeDescriptor()
public JsonBytesSqlTypeDescriptor(int jdbcType)
public static JsonBytesSqlTypeDescriptor of(org.hibernate.dialect.Database database)
public int getSqlType()
getSqlType
in interface org.hibernate.type.descriptor.sql.SqlTypeDescriptor
getSqlType
in class AbstractJsonSqlTypeDescriptor
public <X> org.hibernate.type.descriptor.ValueBinder<X> getBinder(org.hibernate.type.descriptor.java.JavaTypeDescriptor<X> javaTypeDescriptor)
protected Object extractJson(ResultSet rs, String name) throws SQLException
extractJson
in class AbstractJsonSqlTypeDescriptor
SQLException
protected Object extractJson(CallableStatement statement, int index) throws SQLException
extractJson
in class AbstractJsonSqlTypeDescriptor
SQLException
protected Object extractJson(CallableStatement statement, String name) throws SQLException
extractJson
in class AbstractJsonSqlTypeDescriptor
SQLException
protected byte[] toJsonBytes(String jsonValue)
protected String fromJsonBytes(byte[] jsonBytes)
Copyright © 2022. All rights reserved.