Class CharJdbcType
- java.lang.Object
-
- org.hibernate.type.descriptor.jdbc.VarcharJdbcType
-
- org.hibernate.type.descriptor.jdbc.CharJdbcType
-
- All Implemented Interfaces:
Serializable,AdjustableJdbcType,JdbcType
public class CharJdbcType extends VarcharJdbcType
Descriptor forCHARhandling.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static CharJdbcTypeINSTANCE
-
Constructor Summary
Constructors Constructor Description CharJdbcType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetJdbcTypeCode()The JDBC type code used when interacting with JDBC APIs.JdbcTyperesolveIndicatedType(JdbcTypeIndicators indicators, JavaType<?> domainJtd)Perform the adjustmentStringtoString()-
Methods inherited from class org.hibernate.type.descriptor.jdbc.VarcharJdbcType
getBinder, getExtractor, getFriendlyName, getJdbcLiteralFormatter, getJdbcRecommendedJavaTypeMapping, getPreferredJavaTypeClass
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hibernate.type.descriptor.jdbc.JdbcType
getCastType, getDefaultSqlTypeCode, isBinary, isDecimal, isFloat, isInteger, isInterval, isNumber, isString, isTemporal
-
-
-
-
Field Detail
-
INSTANCE
public static final CharJdbcType INSTANCE
-
-
Method Detail
-
toString
public String toString()
- Overrides:
toStringin classVarcharJdbcType
-
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- Overrides:
getJdbcTypeCodein classVarcharJdbcType- Returns:
- a JDBC type code
-
resolveIndicatedType
public JdbcType resolveIndicatedType(JdbcTypeIndicators indicators, JavaType<?> domainJtd)
Description copied from interface:AdjustableJdbcTypePerform the adjustment- Specified by:
resolveIndicatedTypein interfaceAdjustableJdbcType- Overrides:
resolveIndicatedTypein classVarcharJdbcType
-
-