Class Hierarchy        Index

Interface COM.cloudscape.types.TypeFactory

public interface TypeFactory
Copyright © 1997-1999, Cloudscape, Inc. All rights reserved.

A factory for getting TypeDescriptors. There are two basic styles of methods:

See Also:
getTypeFactory, Types

Method Index

 o getTypeDescriptor(int)
Get a TypeDescriptor that corresponds to a Java type
 o getTypeDescriptor(int, boolean)
Get a TypeDescriptor that corresponds to a Java type
 o getTypeDescriptor(int, boolean, int, int, int)
Get a TypeDescriptor that corresponds to a Java type
 o getTypeDescriptor(String)
Get a TypeDescriptor that corresponds to a Java type
 o getTypeDescriptor(String, boolean)
Get a TypeDescriptor that corresponds to a Java type
 o getTypeDescriptor(String, boolean, int, int, int)
Get a TypeDescriptor that corresponds to a Java type

Methods

 o getTypeDescriptor
 public abstract TypeDescriptor getTypeDescriptor(String javaTypeName)
Get a TypeDescriptor that corresponds to a Java type

Parameters:
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).
Returns:
A new TypeDescriptor that corresponds to the Java type. A null return value means there is no corresponding SQL type.
 o getTypeDescriptor
 public abstract TypeDescriptor getTypeDescriptor(String javaTypeName,
                                                  boolean isNullable)
Get a TypeDescriptor that corresponds to a Java type

Parameters:
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.
Returns:
A new TypeDescriptor that corresponds to the Java type. A null return value means there is no corresponding SQL type.
 o getTypeDescriptor
 public abstract TypeDescriptor getTypeDescriptor(String javaTypeName,
                                                  boolean isNullable,
                                                  int precision,
                                                  int scale,
                                                  int maximumWidth)
Get a TypeDescriptor that corresponds to a Java type

Parameters:
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.
Returns:
A new TypeDescriptor that corresponds to the Java type. A null return value means there is no corresponding SQL type.
 o getTypeDescriptor
 public abstract TypeDescriptor getTypeDescriptor(int javaType)
Get a TypeDescriptor that corresponds to a Java type

Parameters:
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.
Returns:
A new TypeDescriptor that corresponds to the Java type. A null return value means there is no corresponding SQL type.
 o getTypeDescriptor
 public abstract TypeDescriptor getTypeDescriptor(int javaType,
                                                  boolean isNullable)
Get a TypeDescriptor that corresponds to a Java type

Parameters:
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.
Returns:
A new TypeDescriptor that corresponds to the Java type. A null return value means there is no corresponding SQL type.
 o getTypeDescriptor
 public abstract TypeDescriptor getTypeDescriptor(int javaType,
                                                  boolean isNullable,
                                                  int precision,
                                                  int scale,
                                                  int maximumWidth)
Get a TypeDescriptor that corresponds to a Java type

Parameters:
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.
Returns:
A new TypeDescriptor that corresponds to the Java type. A null return value means there is no corresponding SQL type.

  Class Hierarchy        Index