A TypeId is immutable.
The equals(Object) method can be used to determine if two typeIds are for the same type, which defines type id equality.
DataTypeDescriptor
| Modifier and Type | Field and Description |
|---|---|
| private static final TypeId[] | |
| public static final String | |
| private BaseTypeIdImpl | |
| public static final TypeId | |
| public static final String | |
| public static final String | |
| private static final TypeId | |
| public static final int | |
| public static final String | |
| public static final int | |
| private static final TypeId | |
| public static final int | |
| public static final String | |
| public static final int | |
| public static final TypeId | |
| public static final int | |
| public static final String | |
| public static final int | |
| public static final TypeId | |
| public static final int | |
| public static final String | |
| public static final int | |
| private static final TypeId | |
| public static final int | |
| public static final String | |
| public static final int | |
| public static final String | |
| private static final TypeId | |
| public static final int | |
| public static final String | |
| public static final int | |
| private static final TypeId | |
| public static final int | |
| public static final String | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final TypeId | |
| public static final int | |
| public static final String | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final String | |
| private int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final TypeId | |
| public static final String | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private String | |
| public static final int | |
| public static final int | |
| public static final int | LONGINT_PRECISION
Various fixed numbers related to datatypes. |
| public static final int | |
| public static final String | |
| private static final TypeId | |
| public static final int | |
| public static final String | |
| public static final int | |
| private static final TypeId | |
| public static final int | |
| public static final String | |
| public static final int | |
| private int | |
| private int | |
| private int | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| private static final TypeId | |
| public static final String | |
| public static final int | |
| private static final TypeId | |
| public static final int | |
| public static final String | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final String | |
| private static final TypeId | |
| public static final String | |
| public static final int | |
| public static final String | |
| public static final TypeId | |
| public static final int | |
| public static final String | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final String | |
| public static final String | |
| private static final TypeId | |
| public static final int | |
| public static final String | |
| public static final int | |
| public static final int | |
| private static final TypeId | |
| public static final int | |
| public static final String | |
| public static final int | |
| public static final int | |
| private static final TypeId | |
| public static final int | |
| public static final String | |
| public static final int | |
| public static final int | |
| public static final int | |
| private int | |
| public static final int | USER_PRECEDENCE
The following constants define the type precedence hierarchy. |
| public static final String | |
| private static final TypeId | |
| public static final int | |
| public static final String | |
| public static final int | |
| private static final TypeId | |
| public static final int | |
| public static final String | |
| public static final int | |
| private static final TypeId | |
| public static final int | |
| public static final String | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| public | TypeId(int
Format id of specific type id. formatId, BaseTypeIdImpl The Base type id baseTypeId)Constructor for a TypeId |
| Modifier and Type | Method and Description |
|---|---|
| private static TypeId | create(int typeFormatId, int implTypeFormatId)
Create a TypeId for the given format identifiers using a BaseTypeIdImpl. |
| public boolean | equals(Object
the reference object with which to compare. that)Overrides java. we want equals to say if these are the same type id or not. |
| public static TypeId[] | |
| public int | Returns: the length in bytesData type descriptor that holds the
length/precision etc. as necessary dts)Get the approximate length of this type in bytes. |
| public BaseTypeIdImpl | getBaseTypeId()
Get the base type id that is embedded in this type id. The base type id is an object with a minimal implementation of TypeId that is intended to be usable on the client side. |
| public static TypeId | Returns: The appropriate TypeId, or null if there is no such TypeId.The JDBC Id of the type, as listed in
java.sql.Types JDBCTypeId)Get a TypeId of the given JDBC type. |
| public static TypeId | Returns: TypeId or null if there is no corresponding SQL type.Name of SQL type SQLTypeName)Given a SQL type name return the corresponding TypeId. |
| public String | Returns: The name of the corresponding Java type.Get the name of the corresponding Java type. |
| public final int | Returns: The JDBC type Id for this typeJDBC has its own idea of type identifiers which is different from the Derby internal type ids. |
| public int | Returns: The maximum maximum width of the typeGet the maximum maximum width of the type (that's not a typo). |
| public int | Returns: The maximum precision of the typeGet the maximum precision of the type. |
| public int | |
| public DataValueDescriptor | |
| public int | Returns: the resultant precisionthe left type leftType, DataTypeDescriptor the left type rightType)Get the precision of the merge of two Decimals |
| public String | Returns: The name of the corresponding Java type.Get the name of the corresponding Java type. |
| public int | Returns: the resultant precisionthe left type leftType, DataTypeDescriptor the left type rightType)Get the scale of the merge of two decimals |
| public static TypeId | Returns: A TypeId for the SQL type that corresponds to the Java type, null if there is no corresponding type.The name of the Java type javaTypeName)Get a TypeId for the class that corresponds to the given Java type name. |
| public String | Returns: A String containing the SQL name of this type.Returns the SQL name of the datatype. |
| public int | Returns: the formatID of this classGet the formatID which corresponds to this class. |
| public static TypeId | Returns: TypeId that represents the base type, null if not applicable.Get the TypeId (fundemental type information) for a catalog type. |
| public static TypeId | |
| public static TypeId | Returns: A bound type TypeId describing this ANSI UDT.Schema that the type definition lives in. schemaName, String The second part of the ANSI dot-separated name for the type. unqualifiedName, String The Java class which is bound to the schema-qualified name by the CREATE TYPE statement. className)This factory method is used for ANSI UDTs. |
| public int | |
| public boolean | Returns: Whether or not this a type id for a bit type.Is this a type id for a bit type? |
| public boolean | |
| public boolean | Returns: Whether or not this a type id for a boolean type.Is this a type id for a boolean type? |
| public boolean | |
| public boolean | Returns: Whether or not this a type id for a concatable type.Is this a type id for a concatable type? |
| public boolean | Returns: true if this is a DATE/TIME/TIMESTAMPIs this a TypeId for DATE/TIME/TIMESTAMP |
| public boolean | Returns: true if this DATE/TIME or TIMESTAMPIs this DATE/TIME or TIMESTAMP? |
| public boolean | Returns: Whether or not this a type id for a decimal type.Is this a type id for a decimal type? |
| public boolean | |
| public boolean | |
| public boolean | Returns: true if this is a REAL or DOUBLEIs this a TypeId for floating point (REAL/DOUBLE) |
| public boolean | Returns: Whether or not this a type id for a LOB type.Is this a type id for a LOB type? |
| public boolean | Returns: Whether or not this a type id for a long concatable type.Is this a type id for a long concatable type? |
| public boolean | |
| public boolean | |
| public boolean | Returns: Whether or not this a type id for a numeric type.Is this a type id for a numeric type? |
| public boolean | |
| public boolean | Returns: Whether or not this a type id for a ref type.Is this a type id for a ref type? |
| public boolean | Returns: Whether or not this TypeId represents a TypeId for a StringDataType.Does this TypeId represent a TypeId for a StringDataType. |
| public boolean | |
| public boolean | Returns: Whether or not this a type id for a user defined type.Is this a type id for a user defined type? |
| public boolean | |
| public boolean | Returns: true for orderable types, false for non-orderable types.A ClassFactory cf)Tell whether this type is orderable, that is, can participate in comparisons. |
| private void | |
| private void | |
| public boolean | |
| public String | Returns: String version of datatype, suitable for running through the Parser.Data type descriptor that holds the length/precision etc. as necessary dts)Converts this TypeId, given a data type descriptor (including length/precision), to a string. |
| public int | |
| public final boolean | Returns: true for built-in types, false for user-defined types.Tell whether this is a built-in type. |
| public boolean | Returns: boolean true if type is variable length false if not.Does type hava a declared variable length (defined by the application). |