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