| Modifier and Type | Field and Description |
|---|---|
| private final ExtTypeInfo | |
| private final long | |
| private final int | |
| public static final TypeInfo | TYPE_ARRAY_UNKNOWN
ARRAY type with unknown parameters. |
| public static final TypeInfo | TYPE_BIGINT
BIGINT type with parameters. |
| public static final TypeInfo | TYPE_BINARY
BINARY type with default parameters. |
| public static final TypeInfo | TYPE_BLOB
BINARY LARGE OBJECT type with maximum parameters. |
| public static final TypeInfo | TYPE_BOOLEAN
BOOLEAN type with parameters. |
| public static final TypeInfo | TYPE_CHAR
CHAR type with default parameters. |
| public static final TypeInfo | TYPE_CLOB
CHARACTER LARGE OBJECT type with maximum parameters. |
| public static final TypeInfo | TYPE_DATE
DATE type with parameters. |
| public static final TypeInfo | TYPE_DECFLOAT
DECFLOAT type with maximum parameters. |
| public static final TypeInfo | TYPE_DECFLOAT_BIGINT
DECFLOAT type with parameters enough to hold a BIGINT value. |
| public static final TypeInfo | TYPE_DOUBLE
DOUBLE PRECISION type with parameters. |
| public static final TypeInfo | TYPE_ENUM_UNDEFINED
ENUM type with undefined parameters. |
| public static final TypeInfo | TYPE_GEOMETRY
GEOMETRY type with default parameters. |
| private static final TypeInfo[] | |
| public static final TypeInfo | TYPE_INTEGER
INTEGER type with parameters. |
| public static final TypeInfo | TYPE_INTERVAL_DAY
INTERVAL DAY type with maximum parameters. |
| public static final TypeInfo | TYPE_INTERVAL_DAY_TO_SECOND
INTERVAL DAY TO SECOND type with maximum parameters. |
| public static final TypeInfo | TYPE_INTERVAL_HOUR_TO_SECOND
INTERVAL HOUR TO SECOND type with maximum parameters. |
| public static final TypeInfo | TYPE_INTERVAL_YEAR_TO_MONTH
INTERVAL YEAR TO MONTH type with maximum parameters. |
| public static final TypeInfo | TYPE_JAVA_OBJECT
JAVA_OBJECT type with maximum parameters. |
| public static final TypeInfo | TYPE_JSON
JSON type. |
| public static final TypeInfo | TYPE_NULL
NULL type with parameters. |
| public static final TypeInfo | TYPE_NUMERIC_BIGINT
NUMERIC type with parameters enough to hold a BIGINT value. |
| public static final TypeInfo | TYPE_NUMERIC_FLOATING_POINT
NUMERIC type that can hold values with floating point. |
| public static final TypeInfo | TYPE_NUMERIC_SCALE_0
NUMERIC type with maximum precision and scale 0. |
| public static final TypeInfo | TYPE_REAL
REAL type with parameters. |
| public static final TypeInfo | TYPE_ROW_EMPTY
ROW (row value) type without fields. |
| public static final TypeInfo | TYPE_SMALLINT
SMALLINT type with parameters. |
| public static final TypeInfo | TYPE_TIME
TIME type with maximum parameters. |
| public static final TypeInfo | TYPE_TIME_TZ
TIME WITH TIME ZONE type with maximum parameters. |
| public static final TypeInfo | TYPE_TIMESTAMP
TIMESTAMP type with maximum parameters. |
| public static final TypeInfo | TYPE_TIMESTAMP_TZ
TIMESTAMP WITH TIME ZONE type with maximum parameters. |
| public static final TypeInfo | TYPE_TINYINT
TINYINT type with parameters. |
| public static final TypeInfo | TYPE_UNKNOWN
UNKNOWN type with parameters. |
| public static final TypeInfo | TYPE_UUID
UUID type with parameters. |
| public static final TypeInfo | TYPE_VARBINARY
BINARY VARYING type with maximum parameters. |
| public static final TypeInfo | TYPE_VARCHAR
CHARACTER VARYING type with maximum parameters. |
| public static final TypeInfo | TYPE_VARCHAR_IGNORECASE
VARCHAR_IGNORECASE type with maximum parameters. |
| private final int |
| Access | Constructor and Description |
|---|---|
| private | |
| private | |
| private | |
| public | TypeInfo(int
the value type valueType, long the precision precision, int the scale scale, ExtTypeInfo the extended type information, or null extTypeInfo)Creates new instance of data type with parameters. |
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | Returns: whether types are comparablefirst data type t1, TypeInfo second data type t2)Determines whether two specified types are comparable. |
| public static boolean | Returns: whether types are the samefirst data type t1, TypeInfo second data type t2)Determines whether two specified types are the same data types without taking precision or scale into account. |
| public static void | checkComparable(TypeInfo
first data type t1, TypeInfo second data type t2)Checks whether two specified types are comparable and throws an exception otherwise. |
| private static int | |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| public long | Returns: precision in decimal digitsReturns approximate precision in decimal digits for binary numeric data types and precision for all other types. |
| public long | Returns: the precision, or-1L if not specified in data type
definitionReturns the precision, or |
| public int | Returns: the scale, or-1 if not specified in data type definitionReturns the scale, or |
| public String | Returns: the declared nameReturns the declared name of this data type with precision, scale, length, cardinality etc. parameters removed, excluding parameters of ENUM data type, GEOMETRY data type, ARRAY elements, and ROW fields. |
| public int | |
| public ExtTypeInfo | Returns: the extended type information, or nullReturns the extended type information, or null. |
| private static TypeInfo | |
| private static TypeInfo | |
| private static TypeInfo | |
| public static TypeInfo | Returns: the higher data typethe values values)Get the higher data type of all values. |
| public static TypeInfo | Returns: the higher data type of the twothe first data type type1, TypeInfo the second data type type2)Get the higher data type of two data types. |
| public long | |
| public int | |
| public StringBuilder | getSQL(StringBuilder
string builder builder, int formatting flags sqlFlags)Implements org. Appends the SQL statement of this object to the specified builder. |
| public TypeInfo | |
| public static TypeInfo | Returns: the data type with parameters objectthe value type type)Get the data type with parameters object for the given value type and maximum parameters. |
| public static TypeInfo | Returns: the data type with parameters objectthe value type type, long the precision or precision, int -1L for defaultthe scale or scale, ExtTypeInfo -1 for defaultthe extended type information or null extTypeInfo)Get the data type with parameters object for the given value type and the specified parameters. |
| public int | |
| public int | |
| public static boolean | Returns: whether types are comparablefirst data type t1, TypeInfo second data type t2)Determines whether two specified types have the same ordering rules. |
| public TypeInfo | Returns: DECFLOAT type informationConvert this type information to compatible DECFLOAT type information. |
| public TypeInfo | Returns: NUMERIC type informationConvert this type information to compatible NUMERIC type information. |
| private static TypeInfo | |
| public TypeInfo | Returns: unwrapped data type if this data type is a row type with degree 1 or this type otherwiseReturns unwrapped data type if this data type is a row type with degree 1 or this type otherwise. |
| extTypeInfo | back to summary |
|---|---|
| private final ExtTypeInfo extTypeInfo | |
| precision | back to summary |
|---|---|
| private final long precision | |
| scale | back to summary |
|---|---|
| private final int scale | |
| TYPE_ARRAY_UNKNOWN | back to summary |
|---|---|
| public static final TypeInfo TYPE_ARRAY_UNKNOWN ARRAY type with unknown parameters. | |
| TYPE_BIGINT | back to summary |
|---|---|
| public static final TypeInfo TYPE_BIGINT BIGINT type with parameters. | |
| TYPE_BINARY | back to summary |
|---|---|
| public static final TypeInfo TYPE_BINARY BINARY type with default parameters. | |
| TYPE_BLOB | back to summary |
|---|---|
| public static final TypeInfo TYPE_BLOB BINARY LARGE OBJECT type with maximum parameters. | |
| TYPE_BOOLEAN | back to summary |
|---|---|
| public static final TypeInfo TYPE_BOOLEAN BOOLEAN type with parameters. | |
| TYPE_CHAR | back to summary |
|---|---|
| public static final TypeInfo TYPE_CHAR CHAR type with default parameters. | |
| TYPE_CLOB | back to summary |
|---|---|
| public static final TypeInfo TYPE_CLOB CHARACTER LARGE OBJECT type with maximum parameters. | |
| TYPE_DATE | back to summary |
|---|---|
| public static final TypeInfo TYPE_DATE DATE type with parameters. | |
| TYPE_DECFLOAT | back to summary |
|---|---|
| public static final TypeInfo TYPE_DECFLOAT DECFLOAT type with maximum parameters. | |
| TYPE_DECFLOAT_BIGINT | back to summary |
|---|---|
| public static final TypeInfo TYPE_DECFLOAT_BIGINT DECFLOAT type with parameters enough to hold a BIGINT value. | |
| TYPE_DOUBLE | back to summary |
|---|---|
| public static final TypeInfo TYPE_DOUBLE DOUBLE PRECISION type with parameters. | |
| TYPE_ENUM_UNDEFINED | back to summary |
|---|---|
| public static final TypeInfo TYPE_ENUM_UNDEFINED ENUM type with undefined parameters. | |
| TYPE_GEOMETRY | back to summary |
|---|---|
| public static final TypeInfo TYPE_GEOMETRY GEOMETRY type with default parameters. | |
| TYPE_INFOS_BY_VALUE_TYPE | back to summary |
|---|---|
| private static final TypeInfo[] TYPE_INFOS_BY_VALUE_TYPE | |
| TYPE_INTEGER | back to summary |
|---|---|
| public static final TypeInfo TYPE_INTEGER INTEGER type with parameters. | |
| TYPE_INTERVAL_DAY | back to summary |
|---|---|
| public static final TypeInfo TYPE_INTERVAL_DAY INTERVAL DAY type with maximum parameters. | |
| TYPE_INTERVAL_DAY_TO_SECOND | back to summary |
|---|---|
| public static final TypeInfo TYPE_INTERVAL_DAY_TO_SECOND INTERVAL DAY TO SECOND type with maximum parameters. | |
| TYPE_INTERVAL_HOUR_TO_SECOND | back to summary |
|---|---|
| public static final TypeInfo TYPE_INTERVAL_HOUR_TO_SECOND INTERVAL HOUR TO SECOND type with maximum parameters. | |
| TYPE_INTERVAL_YEAR_TO_MONTH | back to summary |
|---|---|
| public static final TypeInfo TYPE_INTERVAL_YEAR_TO_MONTH INTERVAL YEAR TO MONTH type with maximum parameters. | |
| TYPE_JAVA_OBJECT | back to summary |
|---|---|
| public static final TypeInfo TYPE_JAVA_OBJECT JAVA_OBJECT type with maximum parameters. | |
| TYPE_JSON | back to summary |
|---|---|
| public static final TypeInfo TYPE_JSON JSON type. | |
| TYPE_NULL | back to summary |
|---|---|
| public static final TypeInfo TYPE_NULL NULL type with parameters. | |
| TYPE_NUMERIC_BIGINT | back to summary |
|---|---|
| public static final TypeInfo TYPE_NUMERIC_BIGINT NUMERIC type with parameters enough to hold a BIGINT value. | |
| TYPE_NUMERIC_FLOATING_POINT | back to summary |
|---|---|
| public static final TypeInfo TYPE_NUMERIC_FLOATING_POINT NUMERIC type that can hold values with floating point. | |
| TYPE_NUMERIC_SCALE_0 | back to summary |
|---|---|
| public static final TypeInfo TYPE_NUMERIC_SCALE_0 NUMERIC type with maximum precision and scale 0. | |
| TYPE_REAL | back to summary |
|---|---|
| public static final TypeInfo TYPE_REAL REAL type with parameters. | |
| TYPE_ROW_EMPTY | back to summary |
|---|---|
| public static final TypeInfo TYPE_ROW_EMPTY ROW (row value) type without fields. | |
| TYPE_SMALLINT | back to summary |
|---|---|
| public static final TypeInfo TYPE_SMALLINT SMALLINT type with parameters. | |
| TYPE_TIME | back to summary |
|---|---|
| public static final TypeInfo TYPE_TIME TIME type with maximum parameters. | |
| TYPE_TIME_TZ | back to summary |
|---|---|
| public static final TypeInfo TYPE_TIME_TZ TIME WITH TIME ZONE type with maximum parameters. | |
| TYPE_TIMESTAMP | back to summary |
|---|---|
| public static final TypeInfo TYPE_TIMESTAMP TIMESTAMP type with maximum parameters. | |
| TYPE_TIMESTAMP_TZ | back to summary |
|---|---|
| public static final TypeInfo TYPE_TIMESTAMP_TZ TIMESTAMP WITH TIME ZONE type with maximum parameters. | |
| TYPE_TINYINT | back to summary |
|---|---|
| public static final TypeInfo TYPE_TINYINT TINYINT type with parameters. | |
| TYPE_UNKNOWN | back to summary |
|---|---|
| public static final TypeInfo TYPE_UNKNOWN UNKNOWN type with parameters. | |
| TYPE_UUID | back to summary |
|---|---|
| public static final TypeInfo TYPE_UUID UUID type with parameters. | |
| TYPE_VARBINARY | back to summary |
|---|---|
| public static final TypeInfo TYPE_VARBINARY BINARY VARYING type with maximum parameters. | |
| TYPE_VARCHAR | back to summary |
|---|---|
| public static final TypeInfo TYPE_VARCHAR CHARACTER VARYING type with maximum parameters. | |
| TYPE_VARCHAR_IGNORECASE | back to summary |
|---|---|
| public static final TypeInfo TYPE_VARCHAR_IGNORECASE VARCHAR_IGNORECASE type with maximum parameters. | |
| valueType | back to summary |
|---|---|
| private final int valueType | |
| TypeInfo | back to summary |
|---|---|
| private TypeInfo(int valueType) | |
| TypeInfo | back to summary |
|---|---|
| private TypeInfo(int valueType, long precision) | |
| TypeInfo | back to summary |
|---|---|
| private TypeInfo(int valueType, int scale) | |
| TypeInfo | back to summary |
|---|---|
| public TypeInfo(int valueType, long precision, int scale, ExtTypeInfo extTypeInfo) Creates new instance of data type with parameters.
| |
| areComparable | back to summary |
|---|---|
| private static boolean areComparable(TypeInfo t1, TypeInfo t2) Determines whether two specified types are comparable. | |
| areSameTypes | back to summary |
|---|---|
| public static boolean areSameTypes(TypeInfo t1, TypeInfo t2) Determines whether two specified types are the same data types without taking precision or scale into account. | |
| checkComparable | back to summary |
|---|---|
| public static void checkComparable(TypeInfo t1, TypeInfo t2) Checks whether two specified types are comparable and throws an exception otherwise.
| |
| dimensions | back to summary |
|---|---|
| private static int dimensions(TypeInfo type) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getDecimalPrecision | back to summary |
|---|---|
| public long getDecimalPrecision() Returns approximate precision in decimal digits for binary numeric data types and precision for all other types.
| |
| getDeclaredPrecision | back to summary |
|---|---|
| public long getDeclaredPrecision() Returns the precision, or
| |
| getDeclaredScale | back to summary |
|---|---|
| public int getDeclaredScale() Returns the scale, or
| |
| getDeclaredTypeName | back to summary |
|---|---|
| public String getDeclaredTypeName() Returns the declared name of this data type with precision, scale, length, cardinality etc. parameters removed, excluding parameters of ENUM data type, GEOMETRY data type, ARRAY elements, and ROW fields.
| |
| getDisplaySize | back to summary |
|---|---|
| public int getDisplaySize() Returns the display size in characters.
| |
| getExtTypeInfo | back to summary |
|---|---|
| public ExtTypeInfo getExtTypeInfo() Returns the extended type information, or null.
| |
| getHigherArray | back to summary |
|---|---|
| private static TypeInfo getHigherArray(TypeInfo type1, TypeInfo type2, int d1, int d2) | |
| getHigherGeometry | back to summary |
|---|---|
| private static TypeInfo getHigherGeometry(TypeInfo type1, TypeInfo type2) | |
| getHigherRow | back to summary |
|---|---|
| private static TypeInfo getHigherRow(TypeInfo type1, TypeInfo type2) | |
| getHigherType | back to summary |
|---|---|
| public static TypeInfo getHigherType(Typed[] values) Get the higher data type of all values. | |
| getHigherType | back to summary |
|---|---|
| public static TypeInfo getHigherType(TypeInfo type1, TypeInfo type2) Get the higher data type of two data types. If values need to be converted to match the other operands data type, the value with the lower order is converted to the value with the higher order. | |
| getPrecision | back to summary |
|---|---|
| public long getPrecision() Returns the precision.
| |
| getScale | back to summary |
|---|---|
| public int getScale() Returns the scale.
| |
| getSQL | back to summary |
|---|---|
| public StringBuilder getSQL(StringBuilder builder, int sqlFlags) Implements org. Doc from org. Appends the SQL statement of this object to the specified builder.
| |
| getType | back to summary |
|---|---|
| public TypeInfo getType() Implements org. Returns this type information. | |
| getTypeInfo | back to summary |
|---|---|
| public static TypeInfo getTypeInfo(int type) Get the data type with parameters object for the given value type and maximum parameters.
| |
| getTypeInfo | back to summary |
|---|---|
| public static TypeInfo getTypeInfo(int type, long precision, int scale, ExtTypeInfo extTypeInfo) Get the data type with parameters object for the given value type and the specified parameters.
| |
| getValueType | back to summary |
|---|---|
| public int getValueType() Returns the value type.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| haveSameOrdering | back to summary |
|---|---|
| public static boolean haveSameOrdering(TypeInfo t1, TypeInfo t2) Determines whether two specified types have the same ordering rules. | |
| toDecfloatType | back to summary |
|---|---|
| public TypeInfo toDecfloatType() Convert this type information to compatible DECFLOAT type information.
| |
| toNumericType | back to summary |
|---|---|
| public TypeInfo toNumericType() Convert this type information to compatible NUMERIC type information.
| |
| typeToRow | back to summary |
|---|---|
| private static TypeInfo typeToRow(TypeInfo type) | |
| unwrapRow | back to summary |
|---|---|
| public TypeInfo unwrapRow() Returns unwrapped data type if this data type is a row type with degree 1 or this type otherwise.
| |