Class SybaseJtdsJsonAsStringJdbcType
java.lang.Object
org.hibernate.type.descriptor.jdbc.JsonJdbcType
org.hibernate.type.descriptor.jdbc.JsonAsStringJdbcType
org.hibernate.dialect.SybaseJtdsJsonAsStringJdbcType
- All Implemented Interfaces:
Serializable, AdjustableJdbcType, AggregateJdbcType, JdbcType
Specialized type mapping for
JSON that binds UTF-16LE bytes,
because the jTDS driver can't handle Unicode characters and doesn't support nationalized methods.
For extraction, the getString method works fine though.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SybaseJtdsJsonAsStringJdbcTypestatic final SybaseJtdsJsonAsStringJdbcTypestatic final SybaseJtdsJsonAsStringJdbcTypestatic final SybaseJtdsJsonAsStringJdbcTypeFields inherited from class JsonAsStringJdbcType
CLOB_INSTANCE, NCLOB_INSTANCE, NVARCHAR_INSTANCE, VARCHAR_INSTANCEFields inherited from class JsonJdbcType
INSTANCE -
Constructor Summary
ConstructorsConstructorDescriptionSybaseJtdsJsonAsStringJdbcType(int ddlTypeCode, EmbeddableMappingType embeddableMappingType) -
Method Summary
Modifier and TypeMethodDescription<X> ValueBinder<X> Obtain a binder object capable of binding values of the given Java type to parameters of a JDBCPreparedStatement.<X> ValueExtractor<X> getExtractor(JavaType<X> javaType) resolveAggregateJdbcType(EmbeddableMappingType mappingType, String sqlType, RuntimeModelCreationContext creationContext) resolveIndicatedType(JdbcTypeIndicators indicators, JavaType<?> domainJtd) Perform the adjustmenttoString()Methods inherited from class JsonAsStringJdbcType
getDdlTypeCode, getJdbcTypeCode, needsLobMethods inherited from class JsonJdbcType
createJdbcValue, extractJdbcValues, fromString, getDefaultSqlTypeCode, getEmbeddableMappingType, getJdbcLiteralFormatter, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface JdbcType
addAuxiliaryDatabaseObjects, appendWriteExpression, appendWriteExpression, castFromPattern, castToPattern, getCastType, getCheckCondition, getDefaultSqlTypeCode, getExtraCreateTableInfo, getFriendlyName, getJdbcLiteralFormatter, getJdbcRecommendedJavaTypeMapping, getPreferredJavaTypeClass, getRecommendedJavaType, hasDatePart, hasTimePart, isArray, isBinary, isBoolean, isComparable, isDecimal, isDuration, isFloat, isImplicitJson, isImplicitXml, isInteger, isInterval, isJson, isLob, isLobOrLong, isNationalized, isNumber, isSmallInteger, isSpatial, isString, isStringLike, isStringLikeExcludingClob, isTemporal, isWriteExpressionTyped, isXml, registerOutParameter, registerOutParameter, wrapTopLevelSelectionExpression, wrapWriteExpression, wrapWriteExpression
-
Field Details
-
JTDS_VARCHAR_INSTANCE
-
JTDS_NVARCHAR_INSTANCE
-
JTDS_CLOB_INSTANCE
-
JTDS_INSTANCE
-
-
Constructor Details
-
SybaseJtdsJsonAsStringJdbcType
-
-
Method Details
-
resolveAggregateJdbcType
public AggregateJdbcType resolveAggregateJdbcType(EmbeddableMappingType mappingType, String sqlType, RuntimeModelCreationContext creationContext) - Specified by:
resolveAggregateJdbcTypein interfaceAggregateJdbcType- Overrides:
resolveAggregateJdbcTypein classJsonAsStringJdbcType
-
toString
- Overrides:
toStringin classJsonAsStringJdbcType
-
resolveIndicatedType
Description copied from interface:AdjustableJdbcTypePerform the adjustment- Specified by:
resolveIndicatedTypein interfaceAdjustableJdbcType- Overrides:
resolveIndicatedTypein classJsonAsStringJdbcType
-
getBinder
Description copied from interface:JdbcTypeObtain a binder object capable of binding values of the given Java type to parameters of a JDBCPreparedStatement.- Specified by:
getBinderin interfaceJdbcType- Overrides:
getBinderin classJsonAsStringJdbcType- Parameters:
javaType- The descriptor describing the types of Java values to be bound- Returns:
- The appropriate binder.
-
getExtractor
Description copied from interface:JdbcTypeObtain an extractor object capable of extracting values of the given Java type from a JDBCResultSet.- Specified by:
getExtractorin interfaceJdbcType- Overrides:
getExtractorin classJsonAsStringJdbcType- Parameters:
javaType- The descriptor describing the types of Java values to be extracted- Returns:
- The appropriate extractor
-