| org.apache.derby.catalog.TypeDescriptor
All known Subclasses: org.apache.derby.iapi.types.DataTypeDescriptor, org.apache.derby.catalog.types.TypeDescriptorImpl,
TypeDescriptor | public interface TypeDescriptor (Code) | | An interface for describing types in Cloudscape systems.
The values in system catalog DATATYPE columns are of type
TypeDescriptor.
|
Field Summary | |
public static int | MAXIMUM_WIDTH_UNKNOWN The return value from getMaximumWidth() for types where the maximum
width is unknown. |
Method Summary | |
public int | getJDBCTypeId() Get the jdbc type id for this type. | public int | getMaximumWidth() Returns the maximum width of the type. | public int | getMaximumWidthInBytes() Returns the maximum width of the type IN BYTES. | public int | getPrecision() Returns the number of decimal digits for the type, if applicable.
The number of decimal digits for the type. | public String | getSQLstring() Converts this type descriptor (including length/precision)
to a string suitable for appearing in a SQL type specifier. | public int | getScale() Returns the number of digits to the right of the decimal for
the type, if applicable.
The number of digits to the right of the decimal forthe type. | public String | getTypeName() Gets the name of this type. | public boolean | isNullable() Gets the nullability that values of this type have.
true if values of this type may be null. |
MAXIMUM_WIDTH_UNKNOWN | public static int MAXIMUM_WIDTH_UNKNOWN(Code) | | The return value from getMaximumWidth() for types where the maximum
width is unknown.
|
getJDBCTypeId | public int getJDBCTypeId()(Code) | | Get the jdbc type id for this type. JDBC type can be
found in java.sql.Types.
a jdbc type, e.g. java.sql.Types.DECIMAL See Also: java.sql.Types |
getMaximumWidth | public int getMaximumWidth()(Code) | | Returns the maximum width of the type. This may have
different meanings for different types. For example, with char,
it means the maximum number of characters, while with int, it
is the number of bytes (i.e. 4).
the maximum length of this Type; -1 means "unknown/no max length" |
getMaximumWidthInBytes | public int getMaximumWidthInBytes()(Code) | | Returns the maximum width of the type IN BYTES. This is the
maximum number of bytes that could be returned for this type
if the corresponding getXXX() method is used. For example,
if we have a CHAR type, then we want the number of bytes
that would be returned by a ResultSet.getString() call.
the maximum length of this Type IN BYTES;-1 means "unknown/no max length" |
getPrecision | public int getPrecision()(Code) | | Returns the number of decimal digits for the type, if applicable.
The number of decimal digits for the type. Returnszero for non-numeric types. |
getSQLstring | public String getSQLstring()(Code) | | Converts this type descriptor (including length/precision)
to a string suitable for appearing in a SQL type specifier. E.g.
VARCHAR(30)
or
java.util.Hashtable
String version of type, suitable for running througha SQL Parser. |
getScale | public int getScale()(Code) | | Returns the number of digits to the right of the decimal for
the type, if applicable.
The number of digits to the right of the decimal forthe type. Returns zero for non-numeric types. |
getTypeName | public String getTypeName()(Code) | | Gets the name of this type.
the name of this type |
isNullable | public boolean isNullable()(Code) | | Gets the nullability that values of this type have.
true if values of this type may be null. false otherwise |
|
|