Class Hierarchy Previous Next Index
A factory for getting TypeDescriptors. There are two basic styles of methods:
public TypeDescriptor getTypeDescriptor(java.lang.String javaTypeName)
javaTypeName
- The class name of the Java type. For a
builtin, it is ok to pass in the appropriate class that
maps to the SQL type (e.g. java.lang.Integer for SQL INTEGER).
public TypeDescriptor getTypeDescriptor(java.lang.String javaTypeName, boolean isNullable)
javaTypeName
- The class name of the Java type. For a
builtin, it is ok to pass in the appropriate class that
maps to the SQL type (e.g. java.lang.Integer for SQL INTEGER).
isNullable
- TRUE means it could contain NULL, FALSE means
it definitely cannot contain NULL.
public TypeDescriptor getTypeDescriptor(java.lang.String javaTypeName, boolean isNullable, int precision, int scale, int maximumWidth)
javaTypeName
- The class name of the Java type. For a
builtin, it is ok to pass in the appropriate class that
maps to the SQL type (e.g. java.lang.Integer for SQL INTEGER).
isNullable
- TRUE means it could contain NULL, FALSE means
it definitely cannot contain NULL.
precision
- The number of decimal digits
scale
- The number of digits after the decimal point
maximumWidth
- The maximum width of a data value
represented by this type.
public TypeDescriptor getTypeDescriptor(int javaType)
javaType
- A builtin SQL type as found in java.sql.Types.
For a java type, don't use OTHER, use the getTypeDescriptor()
method that takes a java class name instead.
public TypeDescriptor getTypeDescriptor(int javaType, boolean isNullable)
javaType
- A builtin SQL type as found in java.sql.Types.
For a java type, don't use OTHER, use the getTypeDescriptor()
method that takes a java class name instead.
isNullable
- TRUE means it could contain NULL, FALSE means
it definitely cannot contain NULL.
public TypeDescriptor getTypeDescriptor(int javaType, boolean isNullable, int precision, int scale, int maximumWidth)
javaType
- A builtin SQL type as found in java.sql.Types.
For a java type, don't use OTHER, use the getTypeDescriptor()
method that takes a java class name instead.
isNullable
- TRUE means it could contain NULL, FALSE means
it definitely cannot contain NULL.
precision
- The number of decimal digits
scale
- The number of digits after the decimal point
maximumWidth
- The maximum width of a data value
represented by this type.
Class Hierarchy Previous Next Index