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 |
Classes for dealing with PL/SQL objects.
|
Modifier and Type | Method and Description |
---|---|
DataTypeUsage |
DatabaseDescriptor.createDefaultTypeUsage()
Creates a default usage of a data type for use in a new Column, PlSqlMethod etc.
|
DataTypeUsage |
PlSqlAttribute.getDataTypeUsage()
Deprecated.
|
DataTypeUsage |
Column.getDataTypeUsage()
Gets the usage object for the datatype information for this column.
|
Modifier and Type | Method and Description |
---|---|
void |
PlSqlAttribute.setDataTypeUsage(DataTypeUsage dataTypeUsage)
Deprecated.
|
void |
Column.setDataTypeUsage(DataTypeUsage dataTypeUsage)
Sets the usage object for the datatype information for this column.
|
Constructor and Description |
---|
Column(java.lang.String name, DataTypeUsage usage)
Constructs a new Column with the specified name and datatype.
|
PlSqlAttribute(java.lang.String name, DataTypeUsage dataTypeUsage)
Deprecated.
Constructs a new attribute with the specified name and datatype usage.
|
Modifier and Type | Class and Description |
---|---|
class |
ObjectTypeUsage
Deprecated.
use
DataTypeUsage instead |
class |
PredefinedDataTypeUsage
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
DataTypeUsage |
PredefinedDataType.createDefaultUsage() |
DataTypeUsage |
DataTypeSynonym.createDefaultUsage() |
DataTypeUsage |
DataType.createDefaultUsage()
Returns an DataTypeUsage object for this type.
|
DataTypeUsage |
ComplexType.createDefaultUsage()
Deprecated.
|
DataTypeUsage |
DataTypeSynonym.createUsage(java.util.Map attributes) |
DataTypeUsage |
PredefinedDataType.createUsage(java.util.Map<java.lang.String,java.lang.Object> attributeValues) |
DataTypeUsage |
DataType.createUsage(java.util.Map<java.lang.String,java.lang.Object> attributes)
Returns an DataTypeUsage object for this type, populated with attributes.
|
DataTypeUsage |
ComplexType.createUsage(java.util.Map<java.lang.String,java.lang.Object> attributes)
Deprecated.
|
DataTypeUsage |
PredefinedDataType.createUsage(java.lang.String usageString) |
DataTypeUsage |
DataTypeSynonym.createUsage(java.lang.String usageString) |
DataTypeUsage |
DataType.createUsage(java.lang.String usageString)
Returns an DataTypeUsage object for this type, populated with attributes based on the usageString.
|
DataTypeUsage |
ComplexType.createUsage(java.lang.String usageString)
Deprecated.
|
static DataTypeUsage |
DataTypeHelper.getDataTypeUsage(DBObjectProvider provider, Schema defaultSchema, java.lang.String typeName, int size, int precision, int scale)
Gets a DataTypeUsage that matches the given data returned from the JDBC metadata for a Column.
|
static DataTypeUsage |
DataTypeHelper.getDataTypeUsageForString(DBObjectProvider provider, Schema defaultSchema, java.lang.String usageString)
|
static DataTypeUsage |
DataTypeHelper.getDataTypeUsageForString(DBObjectProvider provider, Schema defaultSchema, java.lang.String usageString, boolean strict)
Returns a
DataTypeUsage for the given string. |
DataTypeUsage |
ComplexType.getOfTypeUsage()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static DataType |
DataTypeHelper.getDataType(DataTypeUsage usage)
Returns the DataType that usage is an instance of, or null if usage is null
|
java.lang.String |
PredefinedDataType.getDDL(DataTypeUsage dataTypeUsage) |
java.lang.String |
DataTypeSynonym.getDDL(DataTypeUsage dataTypeUsage) |
static java.lang.String |
DataTypeHelper.getDDL(DataTypeUsage dtu)
Deprecated.
|
java.lang.String |
DataType.getDDL(DataTypeUsage dataTypeUsage)
Generates the DDL for this type.
|
java.lang.String |
ComplexType.getDDL(DataTypeUsage dataTypeUsage)
Deprecated.
|
static java.lang.String |
DataTypeHelper.getDDL(DataTypeUsage dtu, DBObjectProvider pro)
Gets the DDL for the given DataTypeUsage.
|
static java.lang.Long |
DataTypeHelper.getLongAttributeValue(DataTypeUsage usage, java.lang.String name)
Returns the value of the given named attribute from the given DataTypeUsage as a Long.
|
static java.lang.String |
DataTypeHelper.getStringAttributeDefaultValue(DataTypeUsage usage, java.lang.String attributeName)
Returns the default value of the given named attribute from the given DataTypeUsage as a String.
|
static java.lang.String |
DataTypeHelper.getStringAttributeValue(DataTypeUsage usage, java.lang.String name)
Returns the value of the given named attribute from the given DataTypeUsage as a String.
|
static java.lang.String |
DataTypeHelper.getTypeDDL(DataTypeUsage dataTypeUsage, java.lang.String typeString)
Gets the DDL for a DataTypeUsage that is using a Type.
|
void |
ComplexType.setOfTypeUsage(DataTypeUsage ofTypeUsage)
Deprecated.
|
static void |
CharacterDataType.validateDefaultValue(java.lang.Object defaultValue, DataType dataType, DataTypeUsage dataTypeUsage, DBObject dbObject)
Does default validation.
|
void |
TimeStampTZDataType.validateDefaultValue(java.lang.Object defaultValue, DataTypeUsage dataTypeUsage, DBObject context) |
void |
PredefinedDataType.validateDefaultValue(java.lang.Object defaultValue, DataTypeUsage dataTypeUsage, DBObject dbObject) |
void |
NumericDataType.validateDefaultValue(java.lang.Object defaultValue, DataTypeUsage dataTypeUsage, DBObject dbObject)
Validates defaultValue for dataTypeUsage against the declared precision, scale and min and max values of this numeric type.
|
void |
DateDataType.validateDefaultValue(java.lang.Object defaultValue, DataTypeUsage dataTypeUsage, DBObject dbObject) |
void |
DataTypeSynonym.validateDefaultValue(java.lang.Object defaultValue, DataTypeUsage dataTypeUsage, DBObject dbObject) |
void |
DataType.validateDefaultValue(java.lang.Object defaultValue, DataTypeUsage dataTypeUsage, DBObject dbObject)
Validates defaultValue for dataTypeUsage against self's definition.
|
void |
ComplexType.validateDefaultValue(java.lang.Object defaultValue, DataTypeUsage dataTypeUsage, DBObject dbObject)
Deprecated.
|
void |
CharacterDataType.validateDefaultValue(java.lang.Object defaultValue, DataTypeUsage dataTypeUsage, DBObject dbObject)
Validates defaultValue for dataTypeUsage against the declared size of this character type.
|
void |
BinaryDataType.validateDefaultValue(java.lang.Object defaultValue, DataTypeUsage dataTypeUsage, DBObject dbObject)
Validates defaultValue for dataTypeUsage against the declared size of this binary type.
|
void |
PredefinedDataType.validateUsage(DataTypeUsage dataTypeUsage, DBObject dbObject) |
void |
NumericDataType.validateUsage(DataTypeUsage dataTypeUsage, DBObject dbObject)
Validates dataTypeUsage against self's definition.
|
void |
DataTypeSynonym.validateUsage(DataTypeUsage dataTypeUsage, DBObject dbObject) |
void |
DataType.validateUsage(DataTypeUsage dataTypeUsage, DBObject dbObject)
Validates dataTypeUsage against self's definition.
|
void |
ComplexType.validateUsage(DataTypeUsage dataTypeUsage, DBObject dbObject)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
OracleNumberDataType.getDDL(DataTypeUsage dataTypeUsage) |
void |
OracleNumberDataType.validateDefaultValue(java.lang.Object defaultValue, DataTypeUsage dataTypeUsage, DBObject dbObject) |
void |
OracleNumberDataType.validateUsage(DataTypeUsage dataTypeUsage, DBObject dbObject) |
Modifier and Type | Method and Description |
---|---|
DataTypeUsage |
Type.createDefaultUsage() |
DataTypeUsage |
PlSqlDatatype.createDefaultUsage() |
DataTypeUsage |
Type.createUsage(java.util.Map<java.lang.String,java.lang.Object> attributes) |
DataTypeUsage |
PlSqlDatatype.createUsage(java.util.Map<java.lang.String,java.lang.Object> attributes) |
DataTypeUsage |
Type.createUsage(java.lang.String usageString) |
DataTypeUsage |
PlSqlDatatype.createUsage(java.lang.String usageString) |
DataTypeUsage |
PlSqlVariable.getDataTypeUsage()
Helper method to return the DataTypeUsage for the variable
|
DataTypeUsage |
PlSqlReference.getDataTypeUsage()
Get method for the DataTypeUsage property
|
DataTypeUsage |
Type.getOfTypeUsage()
Get method for the OfTypeUsage property
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
Type.getDDL(DataTypeUsage dataTypeUsage) |
java.lang.String |
PlSqlDatatype.getDDL(DataTypeUsage dataTypeUsage) |
void |
PlSqlReference.setDataTypeUsage(DataTypeUsage dataTypeUsage)
Set method for the DataTypeUsage property
|
void |
Type.validateDefaultValue(java.lang.Object defaultValue, DataTypeUsage dataTypeUsage, DBObject dbObject) |
void |
PlSqlDatatype.validateDefaultValue(java.lang.Object defaultValue, DataTypeUsage dataTypeUsage, DBObject dbObject) |
void |
Type.validateUsage(DataTypeUsage dataTypeUsage, DBObject dbObject) |
void |
PlSqlDatatype.validateUsage(DataTypeUsage dataTypeUsage, DBObject dbObject) |