Package | Description |
---|---|
oracle.javatools.db |
Contains a metadata API for describing database objects, and retrieving them
from a provider of database objects - for example a database.
|
oracle.javatools.db.datatypes |
Classes related to datatypes in the database API.
|
oracle.javatools.db.ora |
Contains the database api implementation for Oracle databases, and additional
DBObject implementations for objects specific to Oracle.
|
oracle.javatools.db.plsql |
Utility classes for working with (for example parsing) PL/SQL.
|
oracle.jdeveloper.offlinedb.model |
Classes that define an offline database's settings and properties.
|
Modifier and Type | Method and Description |
---|---|
DataType |
AbstractDBObjectProvider.getDataType(java.lang.String typeName) |
DataType |
DBObjectProvider.getDataType(java.lang.String typeName)
Retrieves the datatype represented by a specific name.
|
DataType |
DatabaseDescriptor.getDataType(java.lang.String typeName)
Gets the datatype with given name.
|
DataType |
AbstractDBObjectProvider.getOrCreateDataType(java.lang.String typeName) |
DataType |
DBObjectProvider.getOrCreateDataType(java.lang.String typeName)
Gets (or creates) the datatype represented by a specific name.
|
DataType[] |
AbstractDBObjectProvider.listSupportedDataTypes() |
DataType[] |
DBObjectProvider.listSupportedDataTypes()
Retrieves the list of datatypes supported by this provider.
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection<DataType> |
DatabaseDescriptor.listPreferredDataTypes()
Lists the preferred datatypes of this provider.
|
java.util.Collection<DataType> |
DatabaseDescriptor.listSupportedDataTypes()
Lists the datatypes supported by the described database type.
|
Modifier and Type | Method and Description |
---|---|
boolean |
DatabaseDescriptor.isValidFKDataType(DataType fktype,
DataType reftype)
Assesses if the datatype of a foreign key column is valid given the datatype
of the column which it references.
|
protected boolean |
DatabaseDescriptor.isValidFKDataTypeImpl(DataType fktype,
DataType reftype) |
java.lang.String |
JdbcDatabase.normaliseDefaultValue(DataType type,
java.lang.String value)
Converts default value into a standard form.
|
Modifier and Type | Class and Description |
---|---|
class |
DataTypeSynonym
DataType implementation that delegates all calls to an underlying DataType
that it is a "synonym" for.
|
class |
PredefinedDataType
Default DataType implementation for simple (built-in) data types in a
database.
|
class |
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.
|
Modifier and Type | Method and Description |
---|---|
static <D extends DataType> |
DataTypeHelper.unwrapDataType(DataType dataType,
java.lang.Class<D> dataTypeClz)
Gets a data type of the given class from the given data type.
|
Modifier and Type | Method and Description |
---|---|
DataType |
DataTypeRegistry.createUserDataType(java.lang.String name,
java.lang.Class<? extends Database> proClz)
Deprecated.
|
DataType |
DataTypeRegistry.createUserDataType(java.lang.String name,
DBObjectProvider pro)
Used to create a "user" datatype for types that are discovered that the
API did not already know about (usually from a foreign database, or for
un-imported object types).
|
DataType |
DataTypeRegistry.findAnsiType(java.lang.String name)
Returns the registered ansi datatype with the given name (if one exists).
|
DataType |
DataTypeRegistry.findDataType(java.lang.String name,
java.lang.Class provider)
Returns the DataType regsitered with a given name against the (provider
class, and all superclasses)
|
DataType[] |
DataTypeRegistry.getAnsiTypes()
Returns the ansi types that are registered.
|
DataType |
DataTypeSynonym.getBaseType() |
DataType |
DataTypeRegistry.getBaseType(DataType synonym)
Returns the base DataType for this synonym DataType, or null if the given
DataType isn't a synonym.
|
static DataType |
DataTypeHelper.getDataType(DataTypeUsage usage)
Gets the DataType that the given DataTypeUsage is "using".
|
static DataType |
DataTypeHelper.getDataType(DataTypeUsage usage,
boolean createUnknownTypeIfMissing)
Gets the DataType that the given DataTypeUsage is "using".
|
DataType |
DataTypeCache.getDataType(java.lang.String dataTypeName)
Gets a registered data type with the given name.
|
DataType |
DataTypeRegistry.getMappedAnsiType(DataType type)
Deprecated.
with no replacement
|
DataType |
DataTypeRegistry.getMappedType(java.lang.String ansiTypeName,
java.lang.Class<? extends Database> provider)
Deprecated.
with no replacement
|
DataType[] |
DataTypeRegistry.listDataTypes(java.lang.Class provider)
Returns the registered DataType instances for a given provider class (and
all superclasses)
|
DataType |
DataTypeRegistry.registerSynonym(java.lang.String synonym,
DataType baseType,
java.lang.Class<? extends Database> provider)
Registers a new synonym for the given DataType in the given provider.
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection<DataType> |
DataTypeCache.listSupportedDataTypes()
Lists all the data types registered with this cache.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
DataTypeHelper.getAttributeValue(java.lang.Object value,
DataType dataType,
java.lang.String attributeName)
Returns an attribute value as an object of the type of the attribute.
|
DataType |
DataTypeRegistry.getBaseType(DataType synonym)
Returns the base DataType for this synonym DataType, or null if the given
DataType isn't a synonym.
|
DataType |
DataTypeRegistry.getMappedAnsiType(DataType type)
Deprecated.
with no replacement
|
static PredefinedDataType.ValueType |
DataTypeHelper.getValueType(DataType dataType)
If the given data type is a predefined data type or a synonym to a
predefined data type this will return its ValueType.
|
static boolean |
DataTypeHelper.isNumericType(DataType dataType)
Tests whether the given data type is a simple data type of numeric
value type (or a synonym for a data type with numeric value type).
|
boolean |
DataTypeRegistry.isRegisteredType(DataType type)
Returns true if the given type is registered with this registry.
|
boolean |
DataTypeRegistry.isSynonymType(DataType type)
Returns true if the given type is a synonym for another type.
|
static boolean |
DataTypeHelper.isTableType(DataType type)
Tests whether the given DataType is a Type that is a table type.
|
static boolean |
DataTypeHelper.isTypeOf(DataType dataType,
java.lang.Class<? extends DataType> dataTypeClz)
Tests whether the given data type is an instanceof of the given class,
or if the data type is a synonym whether the base type is an instanceof
that class.
|
static boolean |
DataTypeHelper.isXMLType(DataType type)
Deprecated.
Oracle specific API replaced by
XMLTypeColumnProperties.isXMLType(oracle.javatools.db.datatypes.DataType) |
void |
DataTypeRegistry.mapToAnsiType(DataType type,
DataType ansiType)
A data type is mapped automatically using its SQL type, all this does
is ensure that type has the same SQLType as ansiType.
|
void |
DataTypeRegistry.mapToAnsiType(DataType type,
java.lang.String ansiTypeName)
Deprecated.
a data type is mapped automatically using its SQL type.
|
void |
DataTypeCache.registerDataType(DataType dt)
Registers the given type against its name.
|
void |
DataTypeRegistry.registerDataType(DataType type,
java.lang.Class<? extends Database> provider)
Registers a DataType against the given provider class.
|
void |
DataTypeRegistry.registerDataType(DataType type,
java.lang.Class<? extends Database> provider,
DataType ansiType)
Registers a DataType against the given provider class and includes the ANSI
equivalent of this type.
|
void |
DataTypeRegistry.registerSynonym(DataType synonymType,
DataType baseType,
java.lang.Class<? extends Database> provider)
Registers a DataType as a synonym for the given base DataType in the given
provider.
|
DataType |
DataTypeRegistry.registerSynonym(java.lang.String synonym,
DataType baseType,
java.lang.Class<? extends Database> provider)
Registers a new synonym for the given DataType in the given provider.
|
static <D extends DataType> |
DataTypeHelper.unwrapDataType(DataType dataType,
java.lang.Class<D> dataTypeClz)
Gets a data type of the given class from the given data type.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
DataTypeHelper.isTypeOf(DataType dataType,
java.lang.Class<? extends DataType> dataTypeClz)
Tests whether the given data type is an instanceof of the given class,
or if the data type is a synonym whether the base type is an instanceof
that class.
|
Constructor and Description |
---|
DataTypeSynonym(java.lang.String name,
DataType synonymFor) |
DataTypeUsage(DataType dt) |
Modifier and Type | Method and Description |
---|---|
static boolean |
LOBDescriptor.isLOBType(DataType type)
Checks whether the given DataType is a LOB type, and can therefore have
LOB properties defined.
|
static boolean |
LOBDescriptor.isVARRAYType(DataType type)
Tests whether the given DataType is a VARRAY Type.
|
static boolean |
XMLTypeColumnProperties.isXMLType(DataType type)
Tests whether the given DataType is Oracle's XMLTYPE data type.
|
Modifier and Type | Class and Description |
---|---|
class |
PlSqlDatatype
Representation of a PL/SQL Datatype such as a record, varray table etc.
|
class |
Type
Representation of a PL/SQL Object Type.
|
Modifier and Type | Method and Description |
---|---|
DataType |
DataTypeSettings.getDataType(java.lang.String typeName)
Deprecated.
- use getDataType on the provider's DatabaseDescriptor
|
DataType[] |
DataTypeSettings.listDataTypes()
Deprecated.
- use listSupportedDataTypes on the provider's DatabaseDescriptor
|