Class JsonBytesJdbcTypeDescriptor
java.lang.Object
io.hypersistence.utils.hibernate.type.json.internal.AbstractJsonJdbcTypeDescriptor
io.hypersistence.utils.hibernate.type.json.internal.JsonBytesJdbcTypeDescriptor
- All Implemented Interfaces:
Serializable,org.hibernate.type.descriptor.jdbc.JdbcType
- Author:
- Vlad Mihalcea
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectextractJson(CallableStatement statement, int index) protected ObjectextractJson(CallableStatement statement, String name) protected ObjectextractJson(ResultSet rs, int paramIndex) protected StringfromJsonBytes(byte[] jsonBytes) <X> org.hibernate.type.descriptor.ValueBinder<X>getBinder(org.hibernate.type.descriptor.java.JavaType<X> JavaType) intstatic JsonBytesJdbcTypeDescriptorof(org.hibernate.dialect.Database database) protected byte[]toJsonBytes(String jsonValue) Methods inherited from class io.hypersistence.utils.hibernate.type.json.internal.AbstractJsonJdbcTypeDescriptor
getExtractorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.type.descriptor.jdbc.JdbcType
addAuxiliaryDatabaseObjects, addAuxiliaryDatabaseObjects, appendWriteExpression, getCastType, getCheckCondition, getDdlTypeCode, getDefaultSqlTypeCode, getExtraCreateTableInfo, getFriendlyName, getJdbcLiteralFormatter, getJdbcRecommendedJavaTypeMapping, getPreferredJavaTypeClass, hasDatePart, hasTimePart, isArray, isBinary, isBoolean, isComparable, isDecimal, isDuration, isFloat, isInteger, isInterval, isLob, isLobOrLong, isNationalized, isNumber, isSmallInteger, isSpatial, isString, isStringLike, isStringLikeExcludingClob, isTemporal, registerOutParameter, registerOutParameter, wrapTopLevelSelectionExpression, wrapWriteExpression
-
Field Details
-
INSTANCE
-
CHARSET
- See Also:
-
-
Constructor Details
-
JsonBytesJdbcTypeDescriptor
public JsonBytesJdbcTypeDescriptor() -
JsonBytesJdbcTypeDescriptor
public JsonBytesJdbcTypeDescriptor(int jdbcType)
-
-
Method Details
-
of
-
getJdbcTypeCode
public int getJdbcTypeCode()- Specified by:
getJdbcTypeCodein interfaceorg.hibernate.type.descriptor.jdbc.JdbcType- Overrides:
getJdbcTypeCodein classAbstractJsonJdbcTypeDescriptor
-
getBinder
public <X> org.hibernate.type.descriptor.ValueBinder<X> getBinder(org.hibernate.type.descriptor.java.JavaType<X> JavaType) -
extractJson
- Overrides:
extractJsonin classAbstractJsonJdbcTypeDescriptor- Throws:
SQLException
-
extractJson
- Overrides:
extractJsonin classAbstractJsonJdbcTypeDescriptor- Throws:
SQLException
-
extractJson
- Overrides:
extractJsonin classAbstractJsonJdbcTypeDescriptor- Throws:
SQLException
-
toJsonBytes
-
fromJsonBytes
-