Package org.hibernate.dialect
Class OracleArrayJdbcType
- java.lang.Object
-
- org.hibernate.type.descriptor.jdbc.ArrayJdbcType
-
- org.hibernate.dialect.OracleArrayJdbcType
-
- All Implemented Interfaces:
Serializable
,JdbcType
,SqlTypedJdbcType
- Direct Known Subclasses:
OracleNestedTableJdbcType
public class OracleArrayJdbcType extends ArrayJdbcType implements SqlTypedJdbcType
Descriptor forARRAY
handling.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OracleArrayJdbcType(JdbcType elementJdbcType, String typeName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAuxiliaryDatabaseObjects(JavaType<?> javaType, Size columnSize, Database database, TypeConfiguration typeConfiguration)
<X> ValueBinder<X>
getBinder(JavaType<X> javaTypeDescriptor)
Obtain a binder object capable of binding values of the given Java type to parameters of a JDBCPreparedStatement
.String
getExtraCreateTableInfo(JavaType<?> javaType, String columnName, String tableName, Database database)
<X> ValueExtractor<X>
getExtractor(JavaType<X> javaTypeDescriptor)
String
getFriendlyName()
A "friendly" name for use in logging<T> JdbcLiteralFormatter<T>
getJdbcLiteralFormatter(JavaType<T> javaTypeDescriptor)
String
getSqlTypeName()
void
registerOutParameter(CallableStatement callableStatement, int index)
void
registerOutParameter(CallableStatement callableStatement, String name)
String
toString()
-
Methods inherited from class org.hibernate.type.descriptor.jdbc.ArrayJdbcType
equals, getArray, getArray, getElementJdbcType, getElementTypeName, getJdbcRecommendedJavaTypeMapping, getJdbcTypeCode, getPreferredJavaTypeClass, hashCode
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hibernate.type.descriptor.jdbc.JdbcType
addAuxiliaryDatabaseObjects, appendWriteExpression, getCastType, getCheckCondition, getDdlTypeCode, getDefaultSqlTypeCode, getJdbcRecommendedJavaTypeMapping, getJdbcTypeCode, getPreferredJavaTypeClass, hasDatePart, hasTimePart, isArray, isBinary, isBoolean, isComparable, isDecimal, isDuration, isFloat, isInteger, isInterval, isLob, isLobOrLong, isNationalized, isNumber, isSmallInteger, isSpatial, isString, isStringLike, isStringLikeExcludingClob, isTemporal, wrapTopLevelSelectionExpression, wrapWriteExpression
-
-
-
-
Method Detail
-
getSqlTypeName
public String getSqlTypeName()
- Specified by:
getSqlTypeName
in interfaceSqlTypedJdbcType
-
getJdbcLiteralFormatter
public <T> JdbcLiteralFormatter<T> getJdbcLiteralFormatter(JavaType<T> javaTypeDescriptor)
Description copied from interface:JdbcType
Obtain a formatter object capable of rendering values of the given Java type as SQL literals of the type represented by this object.- Specified by:
getJdbcLiteralFormatter
in interfaceJdbcType
- Overrides:
getJdbcLiteralFormatter
in classArrayJdbcType
-
getBinder
public <X> ValueBinder<X> getBinder(JavaType<X> javaTypeDescriptor)
Description copied from interface:JdbcType
Obtain a binder object capable of binding values of the given Java type to parameters of a JDBCPreparedStatement
.- Specified by:
getBinder
in interfaceJdbcType
- Overrides:
getBinder
in classArrayJdbcType
- Parameters:
javaTypeDescriptor
- The descriptor describing the types of Java values to be bound- Returns:
- The appropriate binder.
-
getExtractor
public <X> ValueExtractor<X> getExtractor(JavaType<X> javaTypeDescriptor)
Description copied from interface:JdbcType
Obtain an extractor object capable of extracting values of the given Java type from a JDBCResultSet
.- Specified by:
getExtractor
in interfaceJdbcType
- Overrides:
getExtractor
in classArrayJdbcType
- Parameters:
javaTypeDescriptor
- The descriptor describing the types of Java values to be extracted- Returns:
- The appropriate extractor
-
addAuxiliaryDatabaseObjects
public void addAuxiliaryDatabaseObjects(JavaType<?> javaType, Size columnSize, Database database, TypeConfiguration typeConfiguration)
- Specified by:
addAuxiliaryDatabaseObjects
in interfaceJdbcType
-
registerOutParameter
public void registerOutParameter(CallableStatement callableStatement, String name) throws SQLException
Description copied from interface:JdbcType
- Specified by:
registerOutParameter
in interfaceJdbcType
- Throws:
SQLException
-
registerOutParameter
public void registerOutParameter(CallableStatement callableStatement, int index) throws SQLException
Description copied from interface:JdbcType
- Specified by:
registerOutParameter
in interfaceJdbcType
- Throws:
SQLException
-
getExtraCreateTableInfo
public String getExtraCreateTableInfo(JavaType<?> javaType, String columnName, String tableName, Database database)
- Specified by:
getExtraCreateTableInfo
in interfaceJdbcType
-
getFriendlyName
public String getFriendlyName()
Description copied from interface:JdbcType
A "friendly" name for use in logging- Specified by:
getFriendlyName
in interfaceJdbcType
- Overrides:
getFriendlyName
in classArrayJdbcType
-
toString
public String toString()
- Overrides:
toString
in classArrayJdbcType
-
-