Package org.hibernate.engine.jdbc.spi
Class TypeInfo
- java.lang.Object
-
- org.hibernate.engine.jdbc.spi.TypeInfo
-
public class TypeInfo extends Object
Models type info extracted fromDatabaseMetaData.getTypeInfo()
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LinkedHashSet<TypeInfo>extractTypeInfo(DatabaseMetaData metaData)Extract the type information from the JDBC driver's DatabaseMetaDataString[]getCreateParams()intgetJdbcTypeCode()StringgetLiteralPrefix()StringgetLiteralSuffix()shortgetMaximumScale()shortgetMinimumScale()TypeNullabilitygetNullability()intgetPrecision()TypeSearchabilitygetSearchability()StringgetTypeName()booleanisCaseSensitive()booleanisFixedPrecisionScale()booleanisUnsigned()
-
-
-
Method Detail
-
extractTypeInfo
public static LinkedHashSet<TypeInfo> extractTypeInfo(DatabaseMetaData metaData)
Extract the type information from the JDBC driver's DatabaseMetaData- Parameters:
metaData- The JDBC metadata- Returns:
- The extracted type info
-
getTypeName
public String getTypeName()
-
getJdbcTypeCode
public int getJdbcTypeCode()
-
getCreateParams
public String[] getCreateParams()
-
isUnsigned
public boolean isUnsigned()
-
getPrecision
public int getPrecision()
-
getMinimumScale
public short getMinimumScale()
-
getMaximumScale
public short getMaximumScale()
-
isFixedPrecisionScale
public boolean isFixedPrecisionScale()
-
getLiteralPrefix
public String getLiteralPrefix()
-
getLiteralSuffix
public String getLiteralSuffix()
-
isCaseSensitive
public boolean isCaseSensitive()
-
getSearchability
public TypeSearchability getSearchability()
-
getNullability
public TypeNullability getNullability()
-
-