|
Oracle® OLAP Java API Reference 11g Release 1 (11.1) B28128-03 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
oracle.olapi.syntax.DataType
public final class DataType
An object that represents an Oracle Database data type without precision information. A DataType has a name and a category. An application gets an instance of this class by using one of the static constants, such as DataType.NUMBER.
| Field Summary | |
|---|---|
static int |
ANY_CATEGORYA constant that represents a category for any data type. |
static DataType |
BINARY_DOUBLEA constant that represents the BINARY DOUBLE data type. |
static DataType |
BINARY_FLOATA constant that represents the BINARY FLOAT data type. |
static DataType |
BLOBA constant that represents the BLOB data type. |
static int |
CASTABLE_TO_NUMBER_CATEGORYA constant that represents a category of data types that are castable to the NUMBER data type. |
static DataType |
CHARA constant that represents the CHAR data type. |
static DataType |
CLOBA constant that represents the CLOB data type. |
static int |
CLOB_CATEGORYA constant that represents a category of CLOB data types. |
static DataType |
DATEA constant that represents the DATE data type. |
static int |
DATE_CATEGORYA constant that represents a category of DATE data types. |
static int |
DATETIME_CATEGORYA constant that represents a category of DATE and TIMESTAMP data types. |
static int |
DATETIME_OR_INTERVAL_CATEGORYA constant that represents a category of DATE, TIMESTAMP, and INTERVAL data types. |
static DataType |
DECIMALA constant that represents the DECIMAL data type. |
static DataType |
DS_INTERVALA constant that represents an INTERVAL DAY TO SECOND data type. |
static DataType |
FLOATA constant that represents the FLOAT data type. |
static DataType |
INTEGERA constant that represents the INTEGER data type. |
static int |
INTERVAL_CATEGORYA constant that represents a category of INTERVAL data types. |
static int |
LITERAL_CATEGORYA constant that represents a category of literal data types. |
static DataType[] |
LITERAL_DATA_TYPESA constant that represent an array of the literal data types. |
static DataType |
LOBA constant that represents the LOB data type. |
static int |
LOB_CATEGORYA constant that represents a category of LOB data types. |
static DataType |
LONGA constant that represents the LONG data type. |
static int |
LONG_CATEGORYA constant that represents a category of LONG data types. |
static DataType |
LONG_RAWA constant that represents the LONG RAW data type. |
static DataType |
MLSLABELA constant that represents the MLSLABEL data type. |
static DataType |
NCHARA constant that represents the NCHAR data type. |
static DataType |
NCLOBA constant that represents the NCLOB data type. |
static DataType |
NULL_TYPEA constant that represents a null data type. |
static DataType |
NUMBERA constant that represents the NUMBER data type. |
static int |
NUMBER_CATEGORYA constant that represents a category of number data types. |
static DataType |
NVARCHAR2A constant that represents the NVARCHAR2 data type. |
static int |
OBJECT_CATEGORYA constant that represents the object category of data types. |
static DataType |
RAWA constant that represents the RAW data type. |
static int |
RAW_CATEGORYA constant that represents a category of RAW data types. |
static DataType |
ROWIDA constant that represents the ROWID data type. |
static int |
ROWID_CATEGORYA constant that represents a category of ROWID data types. |
static int |
TEXT_CATEGORYA constant that represents a category of text literal and CLOB data types. |
static int |
TEXT_LITERAL_CATEGORYA constant that represents category of text data types. |
static int |
TEXT_OR_NUMBER_CATEGORYA constant that represents a category of text literal and NUMBER data types. |
static DataType |
TIMESTAMPA constant that represents the TIMESTAMP data type. |
static int |
TIMESTAMP_CATEGORYA constant that represents a category of TIMESTAMP data types. |
static DataType |
TIMESTAMP_WITH_LOCAL_TIME_ZONEA constant that represents the TIMESTAMP WITH LOCAL TIME ZONE data type. |
static DataType |
TIMESTAMP_WITH_TIME_ZONEA constant that represents the TIMESTAMP WITH TIME ZONE data type. |
static DataType |
VARCHAR2A constant that represents the VARCHAR2 data type. |
static int |
XML_FORMAT_CATEGORYA constant that represents the XML format category of data types. |
static int |
XML_TYPE_CATEGORYA constant that represents the XML type category of data types. |
static DataType |
XMLFORMATA constant that represents the XMLFormat data type. |
static DataType |
XMLTYPEA constant that represents the XMLTYPE data type. |
static DataType |
YM_INTERVALA constant that represents an INTERVAL YEAR TO MONTH data type. |
| Method Summary | |
|---|---|
static DataType |
getDataType(java.lang.String name)Gets the DataType that has the specified name. |
java.lang.String |
getName()Gets the name of this DataType. |
boolean |
matchesCategory(int category)Indicates whether or not the category of this DataType matches the specified category. |
boolean |
matchesCategory(int category, boolean allowCast)Indicates whether or not the category of this DataType matches the specified category. |
SQLDataType |
toSQLDataType()Gets the SQLDataType for this DataType. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int TEXT_LITERAL_CATEGORY
public static final int NUMBER_CATEGORY
public static final int INTERVAL_CATEGORY
INTERVAL data types.
public static final int TIMESTAMP_CATEGORY
TIMESTAMP data types.
public static final int DATE_CATEGORY
DATE data types.
public static final int OBJECT_CATEGORY
public static final int CLOB_CATEGORY
CLOB data types.
public static final int LOB_CATEGORY
LOB data types.
public static final int RAW_CATEGORY
RAW data types.
public static final int LONG_CATEGORY
LONG data types.
public static final int ROWID_CATEGORY
ROWID data types.
public static final int XML_FORMAT_CATEGORY
public static final int XML_TYPE_CATEGORY
public static final int ANY_CATEGORY
public static final int CASTABLE_TO_NUMBER_CATEGORY
NUMBER data type.
public static final int DATETIME_CATEGORY
DATE and TIMESTAMP data types.
public static final int DATETIME_OR_INTERVAL_CATEGORY
DATE, TIMESTAMP, and INTERVAL data types.
public static final int TEXT_CATEGORY
CLOB data types.
public static final int LITERAL_CATEGORY
public static final int TEXT_OR_NUMBER_CATEGORY
NUMBER data types.
public static final DataType NULL_TYPE
null data type.public static final DataType NUMBER
NUMBER data type.public static final DataType BINARY_FLOAT
BINARY FLOAT data type.public static final DataType BINARY_DOUBLE
BINARY DOUBLE data type.public static final DataType FLOAT
FLOAT data type.public static final DataType INTEGER
INTEGER data type.public static final DataType DECIMAL
DECIMAL data type.public static final DataType CHAR
CHAR data type.public static final DataType NCHAR
NCHAR data type.public static final DataType VARCHAR2
VARCHAR2 data type.public static final DataType NVARCHAR2
NVARCHAR2 data type.public static final DataType CLOB
CLOB data type.public static final DataType NCLOB
NCLOB data type.public static final DataType DATE
DATE data type.public static final DataType TIMESTAMP
TIMESTAMP data type.public static final DataType TIMESTAMP_WITH_LOCAL_TIME_ZONE
TIMESTAMP WITH LOCAL TIME ZONE data type.public static final DataType TIMESTAMP_WITH_TIME_ZONE
TIMESTAMP WITH TIME ZONE data type.public static final DataType YM_INTERVAL
INTERVAL YEAR TO MONTH data type.public static final DataType DS_INTERVAL
INTERVAL DAY TO SECOND data type.public static final DataType MLSLABEL
MLSLABEL data type.public static final DataType RAW
RAW data type.public static final DataType LONG_RAW
LONG RAW data type.public static final DataType LONG
LONG data type.public static final DataType ROWID
ROWID data type.public static final DataType LOB
LOB data type.public static final DataType BLOB
BLOB data type.public static final DataType XMLTYPE
XMLTYPE data type.public static final DataType XMLFORMAT
XMLFormat data type.public static final DataType[] LITERAL_DATA_TYPES
| Method Detail |
|---|
public final java.lang.String getName()
DataType.String that contains the name of this DataType.public boolean matchesCategory(int category)
DataType matches the specified category.category - One of the category constant fields of this class, such as DataType.NUMBER_CATEGORY.boolean that is true if the specified categroy matches the category of this DataType or is false otherwise.
public boolean matchesCategory(int category,
boolean allowCast)
DataType matches the specified category.category - One of the category constant fields of this class, such as DataType.NUMBER_CATEGORY.allowCast - If true, check to see if the provided datatype can be cast to the expected datatypeboolean that is true if the specified categroy matches the category of this DataType or is false otherwise.public static final DataType getDataType(java.lang.String name)
DataType that has the specified name.name - A String that contains the name of a DataType, such as TIMESTAMP.DataType with the specified name.public final SQLDataType toSQLDataType()
SQLDataType for this DataType.SQLDataType for this DataType.
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||