|
|||||||||
| Home >> All >> org >> apache >> derby >> iapi >> [ types overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.derby.iapi.types
Class TypeId

java.lang.Objectorg.apache.derby.iapi.types.TypeId
- All Implemented Interfaces:
- java.io.Externalizable, org.apache.derby.iapi.services.io.Formatable, java.io.Serializable, org.apache.derby.iapi.services.io.TypedFormat
- public final class TypeId
- extends java.lang.Object
- implements org.apache.derby.iapi.services.io.Formatable
- extends java.lang.Object
The TypeId interface provides methods to get information about datatype ids.
The equals(Object) method can be used to determine if two typeIds are for the same type, which defines type id equality.
| Constructor Summary | |
TypeId(int formatId)
1 argmument constructor. |
|
TypeId(int formatId,
org.apache.derby.catalog.types.BaseTypeIdImpl baseTypeId)
Constructor for a TypeId |
|
TypeId(int formatId,
org.apache.derby.catalog.types.BaseTypeIdImpl baseTypeId,
boolean classNameWasDelimitedIdentifier)
Constructor for a TypeId for user defined types |
|
| Method Summary | |
boolean |
builtIn()
Tell whether this is a built-in type. |
boolean |
equals(java.lang.Object that)
we want equals to say if these are the same type id or not. |
int |
getApproximateLengthInBytes(DataTypeDescriptor dts)
Get the approximate length of this type in bytes. |
org.apache.derby.catalog.types.BaseTypeIdImpl |
getBaseTypeId()
Get the base type id that is embedded in this type id. |
static TypeId |
getBuiltInTypeId(int JDBCTypeId)
Get a TypeId of the given JDBC type. |
static TypeId |
getBuiltInTypeId(java.lang.String SQLTypeName)
|
boolean |
getClassNameWasDelimitedIdentifier()
For user types, tell whether or not the class name was a delimited identifier. |
java.lang.String |
getCorrespondingJavaTypeName()
Get the name of the corresponding Java type. |
int |
getJDBCTypeId()
JDBC has its own idea of type identifiers which is different from the Cloudscape internal type ids. |
int |
getMaximumMaximumWidth()
Get the maximum maximum width of the type (that's not a typo). |
int |
getMaximumPrecision()
Get the maximum precision of the type. |
int |
getMaximumScale()
Get the maximum scale of the type. |
DataValueDescriptor |
getNull()
Get SQL null value. |
int |
getPrecision(DataTypeDescriptor leftType,
DataTypeDescriptor rightType)
Get the precision of the merge of two Decimals |
java.lang.String |
getResultSetMetaDataTypeName()
Get the name of the corresponding Java type. |
int |
getScale(DataTypeDescriptor leftType,
DataTypeDescriptor rightType)
Get the scale of the merge of two decimals |
static TypeId |
getSQLTypeForJavaType(java.lang.String javaTypeName)
Get a TypeId for the class that corresponds to the given Java type name. |
java.lang.String |
getSQLTypeName()
Returns the SQL name of the datatype. |
int |
getTypeFormatId()
Get the formatID which corresponds to this class. |
static TypeId |
getUserDefinedTypeId(java.lang.String className,
boolean delimitedIdentifier)
|
int |
hashCode()
Get a value that represents this Object, as uniquely as possible within the confines of an int. |
boolean |
isBitTypeId()
Is this a type id for a bit type? |
boolean |
isBlobTypeId()
Is this a Blob? |
boolean |
isBooleanTypeId()
Is this a type id for a boolean type? |
boolean |
isClobTypeId()
Is this a Clob? |
boolean |
isConcatableTypeId()
Is this a type id for a concatable type? |
boolean |
isDateTimeTimeStampTypeId()
Is this a TypeId for DATE/TIME/TIMESTAMP |
boolean |
isDateTimeTimeStampTypeID()
Is this DATE/TIME or TIMESTAMP? |
boolean |
isDecimalTypeId()
Is this a type id for a decimal type? |
boolean |
isDoubleTypeId()
Is this a TypeId for DOUBLE |
boolean |
isFixedStringTypeId()
Is this a fixed string type? |
boolean |
isFloatingPointTypeId()
Is this a TypeId for floating point (REAL/DOUBLE) |
boolean |
isLOBTypeId()
Is this a type id for a LOB type? |
boolean |
isLongConcatableTypeId()
Is this a type id for a long concatable type? |
boolean |
isLongVarcharTypeId()
Is this a LongVarchar? |
boolean |
isNationalStringTypeId()
Does this type id represent a national character string. |
boolean |
isNumericTypeId()
Is this a type id for a numeric type? |
boolean |
isRealTypeId()
Is this a TypeId for REAL |
boolean |
isRefTypeId()
Is this a type id for a ref type? |
boolean |
isStringTypeId()
Does this TypeId represent a TypeId for a StringDataType. |
boolean |
isUserDefinedTypeId()
Is this a type id for a user defined type? |
boolean |
isXMLTypeId()
Is this an XML doc? |
boolean |
orderable(org.apache.derby.iapi.services.loader.ClassFactory cf)
Tell whether this type is orderable, that is, can participate in comparisons. |
void |
readExternal(java.io.ObjectInput in)
Read this object from a stream of stored objects. |
void |
setNestedTypeId(org.apache.derby.catalog.types.BaseTypeIdImpl typeId)
Set the nested BaseTypeId in this TypeId. |
private void |
setTypeIdSpecificInstanceVariables()
|
private void |
setUserTypeIdInfo()
|
boolean |
streamStorable()
Is this type StreamStorable? |
boolean |
systemBuiltIn()
Tell whether this is a built-in type. |
java.lang.String |
toParsableString(DataTypeDescriptor dts)
Converts this TypeId, given a data type descriptor (including length/precision), to a string. |
int |
typePrecedence()
Each built-in type in JSQL has a precedence. |
boolean |
userType()
Tell whether this is a built-in type. |
boolean |
variableLength()
Is type variable length |
void |
writeExternal(java.io.ObjectOutput out)
Write this object to a stream of stored objects. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
LONGINT_PRECISION
public static final int LONGINT_PRECISION
- Various fixed numbers related to datatypes.
- See Also:
- Constant Field Values
LONGINT_SCALE
public static final int LONGINT_SCALE
- See Also:
- Constant Field Values
LONGINT_MAXWIDTH
public static final int LONGINT_MAXWIDTH
- See Also:
- Constant Field Values
INT_PRECISION
public static final int INT_PRECISION
- See Also:
- Constant Field Values
INT_SCALE
public static final int INT_SCALE
- See Also:
- Constant Field Values
INT_MAXWIDTH
public static final int INT_MAXWIDTH
- See Also:
- Constant Field Values
SMALLINT_PRECISION
public static final int SMALLINT_PRECISION
- See Also:
- Constant Field Values
SMALLINT_SCALE
public static final int SMALLINT_SCALE
- See Also:
- Constant Field Values
SMALLINT_MAXWIDTH
public static final int SMALLINT_MAXWIDTH
- See Also:
- Constant Field Values
TINYINT_PRECISION
public static final int TINYINT_PRECISION
- See Also:
- Constant Field Values
TINYINT_SCALE
public static final int TINYINT_SCALE
- See Also:
- Constant Field Values
TINYINT_MAXWIDTH
public static final int TINYINT_MAXWIDTH
- See Also:
- Constant Field Values
DOUBLE_PRECISION
public static final int DOUBLE_PRECISION
- See Also:
- Constant Field Values
DOUBLE_PRECISION_IN_DIGITS
public static final int DOUBLE_PRECISION_IN_DIGITS
- See Also:
- Constant Field Values
DOUBLE_SCALE
public static final int DOUBLE_SCALE
- See Also:
- Constant Field Values
DOUBLE_MAXWIDTH
public static final int DOUBLE_MAXWIDTH
- See Also:
- Constant Field Values
REAL_PRECISION
public static final int REAL_PRECISION
- See Also:
- Constant Field Values
REAL_PRECISION_IN_DIGITS
public static final int REAL_PRECISION_IN_DIGITS
- See Also:
- Constant Field Values
REAL_SCALE
public static final int REAL_SCALE
- See Also:
- Constant Field Values
REAL_MAXWIDTH
public static final int REAL_MAXWIDTH
- See Also:
- Constant Field Values
DECIMAL_PRECISION
public static final int DECIMAL_PRECISION
- See Also:
- Constant Field Values
DECIMAL_SCALE
public static final int DECIMAL_SCALE
- See Also:
- Constant Field Values
DECIMAL_MAXWIDTH
public static final int DECIMAL_MAXWIDTH
- See Also:
- Constant Field Values
BOOLEAN_MAXWIDTH
public static final int BOOLEAN_MAXWIDTH
- See Also:
- Constant Field Values
CHAR_MAXWIDTH
public static final int CHAR_MAXWIDTH
- See Also:
- Constant Field Values
VARCHAR_MAXWIDTH
public static final int VARCHAR_MAXWIDTH
- See Also:
- Constant Field Values
LONGVARCHAR_MAXWIDTH
public static final int LONGVARCHAR_MAXWIDTH
- See Also:
- Constant Field Values
NATIONAL_CHAR_MAXWIDTH
public static final int NATIONAL_CHAR_MAXWIDTH
- See Also:
- Constant Field Values
NATIONAL_VARCHAR_MAXWIDTH
public static final int NATIONAL_VARCHAR_MAXWIDTH
- See Also:
- Constant Field Values
NATIONAL_LONGVARCHAR_MAXWIDTH
public static final int NATIONAL_LONGVARCHAR_MAXWIDTH
- See Also:
- Constant Field Values
BIT_MAXWIDTH
public static final int BIT_MAXWIDTH
- See Also:
- Constant Field Values
VARBIT_MAXWIDTH
public static final int VARBIT_MAXWIDTH
- See Also:
- Constant Field Values
LONGVARBIT_MAXWIDTH
public static final int LONGVARBIT_MAXWIDTH
- See Also:
- Constant Field Values
BLOB_MAXWIDTH
public static final int BLOB_MAXWIDTH
- See Also:
- Constant Field Values
CLOB_MAXWIDTH
public static final int CLOB_MAXWIDTH
- See Also:
- Constant Field Values
NCLOB_MAXWIDTH
public static final int NCLOB_MAXWIDTH
- See Also:
- Constant Field Values
XML_MAXWIDTH
public static final int XML_MAXWIDTH
- See Also:
- Constant Field Values
DATE_MAXWIDTH
public static final int DATE_MAXWIDTH
- See Also:
- Constant Field Values
TIME_MAXWIDTH
public static final int TIME_MAXWIDTH
- See Also:
- Constant Field Values
TIMESTAMP_MAXWIDTH
public static final int TIMESTAMP_MAXWIDTH
- See Also:
- Constant Field Values
TIME_SCALE
public static final int TIME_SCALE
- See Also:
- Constant Field Values
TIMESTAMP_SCALE
public static final int TIMESTAMP_SCALE
- See Also:
- Constant Field Values
BIT_NAME
public static final java.lang.String BIT_NAME
- See Also:
- Constant Field Values
VARBIT_NAME
public static final java.lang.String VARBIT_NAME
- See Also:
- Constant Field Values
LONGVARBIT_NAME
public static final java.lang.String LONGVARBIT_NAME
- See Also:
- Constant Field Values
TINYINT_NAME
public static final java.lang.String TINYINT_NAME
- See Also:
- Constant Field Values
SMALLINT_NAME
public static final java.lang.String SMALLINT_NAME
- See Also:
- Constant Field Values
INTEGER_NAME
public static final java.lang.String INTEGER_NAME
- See Also:
- Constant Field Values
LONGINT_NAME
public static final java.lang.String LONGINT_NAME
- See Also:
- Constant Field Values
FLOAT_NAME
public static final java.lang.String FLOAT_NAME
- See Also:
- Constant Field Values
REAL_NAME
public static final java.lang.String REAL_NAME
- See Also:
- Constant Field Values
DOUBLE_NAME
public static final java.lang.String DOUBLE_NAME
- See Also:
- Constant Field Values
NUMERIC_NAME
public static final java.lang.String NUMERIC_NAME
- See Also:
- Constant Field Values
DECIMAL_NAME
public static final java.lang.String DECIMAL_NAME
- See Also:
- Constant Field Values
CHAR_NAME
public static final java.lang.String CHAR_NAME
- See Also:
- Constant Field Values
VARCHAR_NAME
public static final java.lang.String VARCHAR_NAME
- See Also:
- Constant Field Values
LONGVARCHAR_NAME
public static final java.lang.String LONGVARCHAR_NAME
- See Also:
- Constant Field Values
DATE_NAME
public static final java.lang.String DATE_NAME
- See Also:
- Constant Field Values
TIME_NAME
public static final java.lang.String TIME_NAME
- See Also:
- Constant Field Values
TIMESTAMP_NAME
public static final java.lang.String TIMESTAMP_NAME
- See Also:
- Constant Field Values
BINARY_NAME
public static final java.lang.String BINARY_NAME
- See Also:
- Constant Field Values
VARBINARY_NAME
public static final java.lang.String VARBINARY_NAME
- See Also:
- Constant Field Values
LONGVARBINARY_NAME
public static final java.lang.String LONGVARBINARY_NAME
- See Also:
- Constant Field Values
BOOLEAN_NAME
public static final java.lang.String BOOLEAN_NAME
- See Also:
- Constant Field Values
REF_NAME
public static final java.lang.String REF_NAME
- See Also:
- Constant Field Values
NATIONAL_CHAR_NAME
public static final java.lang.String NATIONAL_CHAR_NAME
- See Also:
- Constant Field Values
NATIONAL_VARCHAR_NAME
public static final java.lang.String NATIONAL_VARCHAR_NAME
- See Also:
- Constant Field Values
NATIONAL_LONGVARCHAR_NAME
public static final java.lang.String NATIONAL_LONGVARCHAR_NAME
- See Also:
- Constant Field Values
BLOB_NAME
public static final java.lang.String BLOB_NAME
- See Also:
- Constant Field Values
CLOB_NAME
public static final java.lang.String CLOB_NAME
- See Also:
- Constant Field Values
NCLOB_NAME
public static final java.lang.String NCLOB_NAME
- See Also:
- Constant Field Values
XML_NAME
public static final java.lang.String XML_NAME
- See Also:
- Constant Field Values
USER_PRECEDENCE
public static final int USER_PRECEDENCE
- The following constants define the type precedence hierarchy.
- See Also:
- Constant Field Values
XML_PRECEDENCE
public static final int XML_PRECEDENCE
- See Also:
- Constant Field Values
BLOB_PRECEDENCE
public static final int BLOB_PRECEDENCE
- See Also:
- Constant Field Values
LONGVARBIT_PRECEDENCE
public static final int LONGVARBIT_PRECEDENCE
- See Also:
- Constant Field Values
VARBIT_PRECEDENCE
public static final int VARBIT_PRECEDENCE
- See Also:
- Constant Field Values
BIT_PRECEDENCE
public static final int BIT_PRECEDENCE
- See Also:
- Constant Field Values
BOOLEAN_PRECEDENCE
public static final int BOOLEAN_PRECEDENCE
- See Also:
- Constant Field Values
TIME_PRECEDENCE
public static final int TIME_PRECEDENCE
- See Also:
- Constant Field Values
TIMESTAMP_PRECEDENCE
public static final int TIMESTAMP_PRECEDENCE
- See Also:
- Constant Field Values
DATE_PRECEDENCE
public static final int DATE_PRECEDENCE
- See Also:
- Constant Field Values
DOUBLE_PRECEDENCE
public static final int DOUBLE_PRECEDENCE
- See Also:
- Constant Field Values
REAL_PRECEDENCE
public static final int REAL_PRECEDENCE
- See Also:
- Constant Field Values
DECIMAL_PRECEDENCE
public static final int DECIMAL_PRECEDENCE
- See Also:
- Constant Field Values
NUMERIC_PRECEDENCE
public static final int NUMERIC_PRECEDENCE
- See Also:
- Constant Field Values
LONGINT_PRECEDENCE
public static final int LONGINT_PRECEDENCE
- See Also:
- Constant Field Values
INT_PRECEDENCE
public static final int INT_PRECEDENCE
- See Also:
- Constant Field Values
SMALLINT_PRECEDENCE
public static final int SMALLINT_PRECEDENCE
- See Also:
- Constant Field Values
TINYINT_PRECEDENCE
public static final int TINYINT_PRECEDENCE
- See Also:
- Constant Field Values
REF_PRECEDENCE
public static final int REF_PRECEDENCE
- See Also:
- Constant Field Values
NATIONAL_LONGVARCHAR_PRECEDENCE
public static final int NATIONAL_LONGVARCHAR_PRECEDENCE
- See Also:
- Constant Field Values
NATIONAL_VARCHAR_PRECEDENCE
public static final int NATIONAL_VARCHAR_PRECEDENCE
- See Also:
- Constant Field Values
NATIONAL_CHAR_PRECEDENCE
public static final int NATIONAL_CHAR_PRECEDENCE
- See Also:
- Constant Field Values
CLOB_PRECEDENCE
public static final int CLOB_PRECEDENCE
- See Also:
- Constant Field Values
NCLOB_PRECEDENCE
public static final int NCLOB_PRECEDENCE
- See Also:
- Constant Field Values
LONGVARCHAR_PRECEDENCE
public static final int LONGVARCHAR_PRECEDENCE
- See Also:
- Constant Field Values
VARCHAR_PRECEDENCE
public static final int VARCHAR_PRECEDENCE
- See Also:
- Constant Field Values
CHAR_PRECEDENCE
public static final int CHAR_PRECEDENCE
- See Also:
- Constant Field Values
BOOLEAN_ID
public static final TypeId BOOLEAN_ID
INTEGER_ID
public static final TypeId INTEGER_ID
CHAR_ID
public static final TypeId CHAR_ID
TINYINT_ID
private static TypeId TINYINT_ID
SMALLINT_ID
private static TypeId SMALLINT_ID
LONGINT_ID
private static TypeId LONGINT_ID
REAL_ID
private static TypeId REAL_ID
DOUBLE_ID
private static TypeId DOUBLE_ID
DECIMAL_ID
private static TypeId DECIMAL_ID
NUMERIC_ID
private static TypeId NUMERIC_ID
VARCHAR_ID
private static TypeId VARCHAR_ID
NATIONAL_CHAR_ID
private static TypeId NATIONAL_CHAR_ID
NATIONAL_LONGVARCHAR_ID
private static TypeId NATIONAL_LONGVARCHAR_ID
NATIONAL_VARCHAR_ID
private static TypeId NATIONAL_VARCHAR_ID
DATE_ID
private static TypeId DATE_ID
TIME_ID
private static TypeId TIME_ID
TIMESTAMP_ID
private static TypeId TIMESTAMP_ID
BIT_ID
private static TypeId BIT_ID
VARBIT_ID
private static TypeId VARBIT_ID
REF_ID
private static TypeId REF_ID
LONGVARCHAR_ID
private static TypeId LONGVARCHAR_ID
LONGVARBIT_ID
private static TypeId LONGVARBIT_ID
BLOB_ID
private static TypeId BLOB_ID
CLOB_ID
private static TypeId CLOB_ID
NCLOB_ID
private static TypeId NCLOB_ID
XML_ID
private static TypeId XML_ID
decimalImplementation
static DataValueDescriptor decimalImplementation
- Implementation of DECIMAL datatype for generating holders through getNull.
Set by the booted DataValueFactory implementation.
baseTypeId
private org.apache.derby.catalog.types.BaseTypeIdImpl baseTypeId
formatId
private int formatId
classNameWasDelimitedIdentifier
private boolean classNameWasDelimitedIdentifier
isBuiltIn
private boolean isBuiltIn
isBitTypeId
private boolean isBitTypeId
isLOBTypeId
private boolean isLOBTypeId
isBooleanTypeId
private boolean isBooleanTypeId
isConcatableTypeId
private boolean isConcatableTypeId
isDecimalTypeId
private boolean isDecimalTypeId
isLongConcatableTypeId
private boolean isLongConcatableTypeId
isNumericTypeId
private boolean isNumericTypeId
isRefTypeId
private boolean isRefTypeId
isStringTypeId
private boolean isStringTypeId
isFloatingPointTypeId
private boolean isFloatingPointTypeId
isRealTypeId
private boolean isRealTypeId
isDateTimeTimeStampTypeId
private boolean isDateTimeTimeStampTypeId
isUserDefinedTypeId
private boolean isUserDefinedTypeId
maxPrecision
private int maxPrecision
maxScale
private int maxScale
typePrecedence
private int typePrecedence
javaTypeName
private
JAVADOC
org.apache.derby.iapi.types.TypeId