|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<SqlTypeFamily> org.eigenbase.sql.type.SqlTypeFamily
public enum SqlTypeFamily
SqlTypeFamily provides SQL type categorization.
The primary family categorization is a complete disjoint
partitioning of SQL types into families, where two types are members of the
same primary family iff instances of the two types can be the operands of an
SQL equality predicate such as WHERE v1 = v2
. Primary families
are returned by RelDataType.getFamily().
There is also a secondary family categorization which overlaps with the primary categorization. It is used in type strategies for more specific or more general categorization than the primary families. Secondary families are never returned by RelDataType.getFamily().
Field Summary | |
---|---|
private static SqlTypeFamily[] |
jdbcTypeToFamily
|
private int |
ordinal
|
private static SqlTypeFamily[] |
sqlTypeToFamily
|
private List<SqlTypeName> |
typeNames
List of SqlTypeName s included in this family. |
Method Summary | |
---|---|
static SqlTypeFamily |
getFamilyForJdbcType(int jdbcType)
Gets the primary family containing a JDBC type. |
static SqlTypeFamily |
getFamilyForSqlType(SqlTypeName sqlTypeName)
Gets the primary family containing a SqlTypeName. |
Collection<SqlTypeName> |
getTypeNames()
|
private static void |
setFamilyForJdbcType(int jdbcType,
SqlTypeFamily family)
|
static SqlTypeFamily |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static SqlTypeFamily[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final SqlTypeFamily CHARACTER
public static final SqlTypeFamily BINARY
public static final SqlTypeFamily NUMERIC
public static final SqlTypeFamily DATE
public static final SqlTypeFamily TIME
public static final SqlTypeFamily TIMESTAMP
public static final SqlTypeFamily BOOLEAN
public static final SqlTypeFamily INTERVAL_YEAR_MONTH
public static final SqlTypeFamily INTERVAL_DAY_TIME
public static final SqlTypeFamily STRING
public static final SqlTypeFamily APPROXIMATE_NUMERIC
public static final SqlTypeFamily EXACT_NUMERIC
public static final SqlTypeFamily INTEGER
public static final SqlTypeFamily DATETIME
public static final SqlTypeFamily DATETIME_INTERVAL
public static final SqlTypeFamily MULTISET
public static final SqlTypeFamily ANY
public static final SqlTypeFamily CURSOR
public static final SqlTypeFamily COLUMN_LIST
Field Detail |
---|
private static SqlTypeFamily[] jdbcTypeToFamily
private static SqlTypeFamily[] sqlTypeToFamily
private List<SqlTypeName> typeNames
SqlTypeName
s included in this family.
private int ordinal
Method Detail |
---|
public static final SqlTypeFamily[] values()
for(SqlTypeFamily c : SqlTypeFamily.values()) System.out.println(c);
public static SqlTypeFamily valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified nameprivate static void setFamilyForJdbcType(int jdbcType, SqlTypeFamily family)
public static SqlTypeFamily getFamilyForSqlType(SqlTypeName sqlTypeName)
sqlTypeName
- the type of interest
public static SqlTypeFamily getFamilyForJdbcType(int jdbcType)
jdbcType
- the JDBC type of interest
public Collection<SqlTypeName> getTypeNames()
SqlTypeName
s included in this family
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |