Class StructJdbcType
java.lang.Object
org.hibernate.type.descriptor.jdbc.StructJdbcType
- All Implemented Interfaces:
Serializable,AggregateJdbcType,JdbcType,SqlTypedJdbcType,StructuredJdbcType
- Direct Known Subclasses:
OracleBaseStructJdbcType
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStructJdbcType(EmbeddableMappingType embeddableMappingType, String typeName, int[] orderMapping) -
Method Summary
Modifier and TypeMethodDescriptioncreateJdbcValue(Object domainValue, WrapperOptions options) Object[]extractJdbcValues(Object rawJdbcValue, WrapperOptions options) <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) <T> JavaType<T>getJdbcRecommendedJavaTypeMapping(Integer precision, Integer scale, TypeConfiguration typeConfiguration) intThe JDBC type code used when interacting with JDBC APIs.voidregisterOutParameter(CallableStatement callableStatement, int index) voidregisterOutParameter(CallableStatement callableStatement, String name) resolveAggregateJdbcType(EmbeddableMappingType mappingType, String sqlType, RuntimeModelCreationContext creationContext) protected ObjecttransformRawJdbcValue(Object rawJdbcValue, WrapperOptions options) Methods 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, appendWriteExpression, getCastType, getCheckCondition, getDdlTypeCode, getDefaultSqlTypeCode, getExtraCreateTableInfo, getFriendlyName, getJdbcLiteralFormatter, getPreferredJavaTypeClass, hasDatePart, hasTimePart, isArray, isBinary, isBoolean, isComparable, isDecimal, isDuration, isFloat, isImplicitJson, isImplicitXml, isInteger, isInterval, isJson, isLob, isLobOrLong, isNationalized, isNumber, isSmallInteger, isSpatial, isString, isStringLike, isStringLikeExcludingClob, isTemporal, isXml, wrapTopLevelSelectionExpression, wrapWriteExpressionMethods inherited from interface org.hibernate.type.descriptor.jdbc.StructuredJdbcType
getSqlTypeName
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
StructJdbcType
public StructJdbcType(EmbeddableMappingType embeddableMappingType, String typeName, int[] orderMapping)
-
-
Method Details
-
getJdbcTypeCode
public int getJdbcTypeCode()Description copied from interface:JdbcTypeThe JDBC type code used when interacting with JDBC APIs.For example, it's used when calling
PreparedStatement.setNull(int, int).- Specified by:
getJdbcTypeCodein interfaceJdbcType- Returns:
- a JDBC type code
-
getStructTypeName
- Specified by:
getStructTypeNamein interfaceStructuredJdbcType
-
resolveAggregateJdbcType
public AggregateJdbcType resolveAggregateJdbcType(EmbeddableMappingType mappingType, String sqlType, RuntimeModelCreationContext creationContext) - Specified by:
resolveAggregateJdbcTypein interfaceAggregateJdbcType
-
getEmbeddableMappingType
- Specified by:
getEmbeddableMappingTypein interfaceAggregateJdbcType
-
getJdbcRecommendedJavaTypeMapping
public <T> JavaType<T> getJdbcRecommendedJavaTypeMapping(Integer precision, Integer scale, TypeConfiguration typeConfiguration) - Specified by:
getJdbcRecommendedJavaTypeMappingin interfaceJdbcType
-
registerOutParameter
public void registerOutParameter(CallableStatement callableStatement, String name) throws SQLException Description copied from interface:JdbcType- Specified by:
registerOutParameterin interfaceJdbcType- Throws:
SQLException
-
registerOutParameter
public void registerOutParameter(CallableStatement callableStatement, int index) throws SQLException Description copied from interface:JdbcType- Specified by:
registerOutParameterin interfaceJdbcType- Throws:
SQLException
-
createJdbcValue
- Specified by:
createJdbcValuein interfaceAggregateJdbcType- Throws:
SQLException
-
extractJdbcValues
- Specified by:
extractJdbcValuesin interfaceAggregateJdbcType- Throws:
SQLException
-
getBinder
Description copied from interface:JdbcTypeObtain a binder object capable of binding values of the given Java type to parameters of a JDBCPreparedStatement. -
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- Parameters:
javaType- The descriptor describing the types of Java values to be extracted- Returns:
- The appropriate extractor
-
transformRawJdbcValue
-