|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1) E13403-03 |
|||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Interface Summary | |
---|---|
DataType | Interface defines a database datatype (e.g. |
Class Summary | |
---|---|
BaseDateTimeDataType | |
BinaryDataType | |
CharacterDataType | |
ComplexType | Implementation of DataType for ComplexTypes. |
DataTypeAttribute | |
DataTypeHelper | Helper class for unwrapping the DataTypeUsage object. |
DataTypeID | INTERNAL USE ONLY. |
DataTypeRegistry | Registry for DataTypes. |
DataTypeRegistry.Registerer | A Registerer is responsible for providing allowed DataTypes for a given provider class. |
DataTypeSynonym | DataType implementation that delegates all calls to an underlying DataType that it is a "synonym" for. |
DataTypeUsage | To "use" a DataType is to refere to it by ID and store values for any attributes that DataType may have (e.g. |
DateDataType | |
NumericDataType | |
NumericDataType.MinMaxValue | public static class MinMaxValue defines the minimum and maximum value range of integer and floating-point numbers for use by NumericDataType.validateDefaultValue(). |
ObjectType | Deprecated. |
ObjectTypeUsage | |
PredefinedDataType | |
PredefinedDataTypeUsage | |
TimeStampTZDataType | |
UserDataType | Defines a data type that we 'discovered' when importing or navigating a database, usually from a foreign database, or for un-imported object types. |
Enum Summary | |
---|---|
ComplexType.SQLJUsingType |
Exception Summary | |
---|---|
DataTypeValidationException | |
DefaultValueValidationException |
Classes related to datatypes in the database API.
DataType
definitions are DBObject
s, and are retrieved from a
DBObjectProvider
using the listDataTypes
and getDataType
methods. For ComplexType
objects the listObjects
and
getObject
methods should be used with their type string
ComplexType.TYPE
.
DataTypeUsage
object. This includes the ID of the datatype, as well as any attributes
associated with its use (e.g. size,
scale, precision etc). For more information see DataTypeUsage
.
In general when using DataType and DataTypeUsage objects, the
DataTypeHelper
class provides a lot of useful helper methods.
Column
's DataTypeUsagefinal Column ename = table.getColumn( "ENAME" ); final DataTypeUsage datatypeUsage = ename.getDataTypeUsage(); final Long size = DataTypeHelper.getLongAttributeValue( datatypeUsage, DataTypeAttribute.DATATYPE_SIZE );
final DataType datatype = provider.getDataType( "VARCHAR2" ); final DataTypeUsage datatypeUsage = datatype.createDefaultUsage(); datatypeUsage.putAttributeValue( DataTypeAttribute.DATATYPE_SIZE, 30L );
oracle.javatools.db
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1) E13403-03 |
|||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |