Package | Description |
---|---|
oracle.ide.db |
Classes for representing database objects in the IDE.
|
oracle.ide.db.controls |
Reusable UI controls to used to show or list database objects.
|
oracle.ide.db.dialogs |
Dialogs for working with database objects in the IDE.
|
oracle.ide.db.transfer |
Contains an API for transfering database object from one DBObjectProvider to another.
|
oracle.ide.db.util |
Utility classes for dealing with database objects in UI in the IDE.
|
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.ddl |
API for generating DDL in the database API.
|
oracle.javatools.db.dictionary |
Contains a
Database implementation (DictionaryDatabase ) that retrieves information for retrieving object information using dictionary queries (instead of the JDBC metadata). |
oracle.javatools.db.execute |
Utility classes for executing statements, queries and pl/sql against a database.
|
oracle.javatools.db.ora |
Contains the database api implementation for Oracle databases, and additional DBObject implementations for objects specific to Oracle.
|
oracle.javatools.db.property |
Classes for dealing with properties in the database API.
|
oracle.javatools.db.refactoring |
Provides classes relevant to refactoring in a DBObjectProvider.
|
oracle.javatools.db.sql |
Contains an API for declaratively parsing SQL queries (SELECT statements).
|
oracle.javatools.db.validators |
Contains classes that provide the capability to validate DBObjects in a DBObjectProvider.
|
oracle.jdeveloper.db |
Classes for accessing database connections in JDeveloper (and other FCP products).
|
oracle.jdeveloper.db.panels |
UI panels that are useful when listing, selecting or displaying database connections in dialogs and wizards.
|
oracle.jdeveloper.offlinedb |
Database API extension for saving database object definitions in XML files.
|
oracle.jdeveloper.offlinedb.wizard |
Wizard and dialogs that can used when working with the offline database.
|
Modifier and Type | Method and Description |
---|---|
SystemObject |
SchemaObjectDescriptor.findObject(DBObjectProvider pro)
Finds the described object in the given DBObjectProvider.
|
static SystemObject[] |
SchemaObjectDescriptor.findObjects(DBObjectProvider source, SchemaObjectDescriptor... descs)
Finds the objects for the given descriptors in a DBObjectProvider.
|
SchemaObject |
SchemaObjectDescriptor.unwrapDescriptor(DBObjectProvider source)
Deprecated.
|
static SchemaObject[] |
SchemaObjectDescriptor.unwrapDescriptors(SchemaObjectDescriptor[] descs, DBObjectProvider source)
Deprecated.
|
SystemObject |
SchemaObjectDescriptor.unwrapSystemObjectDescriptor(DBObjectProvider source)
Deprecated.
|
static SystemObject[] |
SchemaObjectDescriptor.unwrapSystemObjectDescriptors(SchemaObjectDescriptor[] descs, DBObjectProvider source)
|
Modifier and Type | Method and Description |
---|---|
DBObjectProvider |
DBObjectProviderPicker.getProvider()
Get the selected DBObjectProvider from the picker.
|
Modifier and Type | Method and Description |
---|---|
DBException |
DBEditorConfig.getException()
If the dialog result is
Result.FAILED this method will return the exception encountered in commiting to the DBObjectProvider. |
Modifier and Type | Method and Description |
---|---|
void |
DBEditorConfig.setException(DBException exception)
If the commit operation fails with a DBException, this method is used by the framework to specify the failure.
|
static boolean |
DBExceptionDialog.showConfirmDialog(java.awt.Component parent, java.lang.String title, DBException error)
Shows a confirm dialog to the user for the given DBException and returns whether or not they pressed "OK" or "cancel".
|
static boolean |
DBExceptionDialog.showConfirmDialog(java.awt.Component parent, java.lang.String title, java.lang.String helpTopic, DBException error)
Shows a confirm dialog to the user for the given DBException and returns whether or not they pressed "OK" or "cancel".
|
static void |
DBExceptionDialog.showErrorDialog(java.awt.Component parent, java.lang.String title, DBException error)
Shows an error dialog to the user for the given DBException.
|
static void |
DBExceptionDialog.showErrorDialog(java.awt.Component parent, java.lang.String title, DBException error, java.lang.String helpid)
Shows an error dialog to the user for the given DBException.
|
static void |
DBExceptionDialog.showErrorDialog(java.awt.Component parent, java.lang.String title, java.lang.String extendedDescription, DBException error, java.lang.String helpid)
Shows an error dialog to the user for the given DBException.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
TransferHelper.getUpdateDDL(DBObjectProvider source, SchemaObject[] schemaObjects, DBObjectProvider target, Schema targetSchema)
Deprecated.
|
Constructor and Description |
---|
TransferFailedException(DBException dbe) |
Modifier and Type | Method and Description |
---|---|
void |
SchemaObjectBuilder.ensureDerivedPropertiesBuiltEx(DBObject obj)
This is separate to the
SchemaObjectBuilder.ensureObjectBuilt(oracle.javatools.db.SystemObject...) and SchemaObjectBuilder.ensureObjectBuiltEx(oracle.javatools.db.SystemObject...) mechanisms in that it is for explictly building the derived properties of a single object. |
boolean |
SchemaObjectBuilder.ensureObjectBuiltEx(SystemObject... objs)
Ensures that all of the given SystemObjects are fully loaded from their metadata source (e.g.
|
Modifier and Type | Class and Description |
---|---|
class |
CancelledException
This exception is thrown if a query to the database is cancelled mid-execution by an action of the user/api.
|
static class |
CascadeManager.NoCascadeRequiredException
Deprecated.
|
class |
CascadeRequiredException
Subclass of DBException that is thrown when an attempt to delete or update an object is made when there are dependent objects in the given DBObjectProvider.
|
class |
DBSQLException
DBException subclass that is thrown when a SQLException is encountered while talking to the database.
|
class |
InvalidNameException
ValidationException thrown when an object's name is invalid.
|
class |
MissingProviderException
Thrown if you attempt to resolve the ID when the provider has not been set.
|
class |
NameInUseException
ValidationException thrown when a name is already in use by an existing object in the DBObjectProvider.
|
Modifier and Type | Method and Description |
---|---|
static <T extends DBException> |
DBException.append(T dbe1, T dbe2)
Appends one exception to the other.
|
Modifier and Type | Method and Description |
---|---|
DBException |
DBException.getNextException()
Retrieves the exception chained to this
DBException object. |
Modifier and Type | Method and Description |
---|---|
void |
DBException.setNextException(DBException ex)
Adds an
DBException object to the end of the chain. |
Modifier and Type | Method and Description |
---|---|
void |
DBObjectBuilder.buildObject(T object)
Requests that the specified object be completed.
|
void |
AbstractDBObjectBuilder.buildObject(T object) |
void |
DBObjectBuilder.buildObjectComponent(T object, java.lang.String key)
Requests that part of the specified object, signifed by the given key, is built.
|
void |
AbstractDBObjectBuilder.buildObjectComponent(T object, java.lang.String key)
Uses canBuildComponents() to work out whether this builder can build just the given (key) subcomponent.
|
void |
DBObjectProvider.canUpdate(Difference listDiff, boolean replace, boolean cascade)
Tests whether the given update can be performed.
|
void |
AbstractDBObjectProvider.canUpdate(Difference listDiff, boolean replace, boolean cascade) |
protected <T extends SystemObject> |
AbstractDBObjectProvider.checkCachedObject(T object)
Use by getObjectImpl to verify that the given object in the cache is still valid.
|
void |
DBObjectProvider.commitTransaction(DBObjectTransaction txn)
Commits a transaction of object changes.
|
void |
AbstractDBObjectProvider.commitTransaction(DBObjectTransaction txn) |
protected abstract java.util.Collection<DBObjectChange> |
AbstractDBObjectProvider.commitTransaction(DBObjectTransaction txn, Difference listDiff)
Implement to commit the given transaction's difference
|
protected SystemObject |
AbstractDatabase.createByIDImpl(DBObjectID id) |
protected SystemObject |
AbstractDBObjectProvider.createByIDImpl(DBObjectID id) |
static java.sql.Connection |
DatabaseFactory.createConnection(Database db)
This will return a new Connection for the given database if possible.
|
protected abstract java.sql.Connection |
DatabaseFactory.ConnectionCreator.createConnectionImpl(java.lang.String connName)
Creates a Connection from a registered connection store if a connection of given name exists.
|
static Database |
DatabaseFactory.createDatabase(java.lang.String connName, DatabaseFactory.ConnectionCreator factory)
Creates a Database using the given ConnectionCreator to create a connection for the given connection name.
|
protected abstract Database |
DatabaseFactory.DatabaseCreator.createDatabaseImpl(java.lang.String connStore, java.lang.String name, java.sql.Connection conn) |
void |
DBObjectProvider.createObject(SystemObject object, boolean replace)
Causes the creation of the object described by the specified meta data.
|
void |
AbstractDBObjectProvider.createObject(SystemObject obj, boolean replace) |
protected SystemObject |
AbstractDBObjectProvider.createObjectImpl(java.lang.String type, Schema schema, java.lang.String name)
Uses listObjectsImpl to find or create an object with the given type, schema and name.
|
void |
DBObjectProvider.createObjects(SystemObject[] objects, boolean replace)
Causes the creation of the objects described by the specified meta data.
|
protected DBObjectProvider |
DatabaseFactory.createProviderImpl(java.lang.Object identifier)
Creates a provider for the given identifier if that identifier is a valid Database identifier.
|
protected abstract DBObjectProvider |
DBObjectProviderFactory.Creator.createProviderImpl(java.lang.Object identifier)
If this factory can, it creates a provider implementation from the given identifier.
|
void |
DBObjectProvider.createSchema(Schema schema, boolean replace)
Causes the creation of a new Schema in the persistent storage.
|
void |
AbstractDBObjectProvider.createSchema(Schema schema, boolean replace) |
static Database |
DatabaseFactory.createStandaloneDatabase(java.lang.String name, java.sql.Connection conn)
Creates a standalone Database for the given Connection.
|
void |
DBObjectProvider.deleteObject(SystemObject object, boolean cascade)
Deletes the object.
|
void |
AbstractDBObjectProvider.deleteObject(SystemObject obj, boolean cascade) |
void |
DBObjectProvider.deleteObjects(SystemObject[] objects, boolean cascade)
Deletes the objects.
|
void |
DBObjectProvider.deleteSchema(Schema schema, boolean cascade)
Deletes the schema.
|
void |
AbstractDBObjectProvider.deleteSchema(Schema schema, boolean cascade) |
void |
CascadeManager.doCascadeDelete(SystemObject deleted, SystemObject referer)
Deprecated.
- cascade is automatic in providers that support it
|
protected void |
AbstractDBObjectBuilder.ensureComponent(T obj, java.lang.String key)
Ensures that the given component has been built.
|
static void |
DBUtil.ensureDerivedPropertiesBuilt(DBObject object, DBObjectProvider pro)
INTERNAL ONLY - this is not a finished API yet.
|
static void |
DBUtil.ensureDerivedPropertiesBuilt(DBObject object, DBObjectProvider pro, java.util.Collection<? extends SystemObject> extras)
INTERNAL ONLY - this is not a finished API yet.
|
static void |
DBUtil.ensureObjectBuilt(SystemObject object, java.lang.String... props)
Ensures that the given object is loaded from its DBObjectProvider.
|
protected void |
AbstractDBObjectBuilder.fillInObject(T object)
Fills in the entire object definition - i.e.
|
protected boolean |
AbstractDBObjectBuilder.fillInObjectComponent(T object, java.lang.String key)
Builds the whole object by default.
|
protected DBObject |
AbstractDBObjectProvider.findByID(DBObjectID id) |
static Database |
DatabaseFactory.findOrCreateDatabase(java.lang.String name, java.sql.Connection conn)
Deprecated.
- use
DatabaseFactory.createStandaloneDatabase(java.lang.String, java.sql.Connection) to create a Database for an isolated connection. If a Database is required for a given connection name in the product use the appropriate connection store (e.g. Application Connections, or central IDE Connections). |
static Database |
DatabaseFactory.findOrCreateDatabase(java.lang.String storeName, java.lang.String connName)
Utility method that calls DBObjectProvider.findOrCreateProvider with the correcty provider type for Databases, and a fully qualified name encoded from the given store name and connection name.
|
protected SystemObject |
AbstractDatabase.findOrCreateObject(java.lang.String type, Schema schema, java.lang.String name, java.lang.Object idVal)
Checks the cache for an existing object and if there isn't one creates a new object using the registered builder and marks it for lazy initialization.
|
protected SystemObject |
AbstractDatabase.findOrCreateObject(java.lang.String type, java.lang.String dbName, Schema schema, java.lang.String name, java.lang.Object idVal) |
protected SystemObject |
AbstractDatabase.findOrCreateObject(java.lang.String type, java.lang.String dbName, Schema schema, java.lang.String name, java.lang.Object idVal, java.lang.Long timestamp)
Checks the cache for an existing object and if there isn't one creates a new object using the registered builder and marks it for lazy initialization.
|
static DBObjectProvider |
DBObjectProviderFactory.findOrCreateProvider(DBObjectProviderID id)
Finds or creates a provider with the given DBObjectProviderID.
|
static DBObjectProvider |
DBObjectProviderFactory.findOrCreateProvider(java.lang.Object identifier)
Deprecated.
|
static DBObjectProvider |
DBObjectProviderFactory.findOrCreateProvider(java.lang.String providerType, java.lang.Object identifier)
Finds or creates a provider with the given type and identifier.
|
protected Schema |
AbstractDBObjectProvider.findSchema(java.lang.String name)
Method for use within the provider that retrieves a schema and doesn't check the database if the schema is found in the cache.
|
protected void |
AbstractDatabase.finishCreate(SystemObject[] objects, SystemObject[] oldObjects)
Deprecated.
Replaced by finishUpdates.
|
java.util.Collection<DBObjectChange> |
AbstractDatabase.finishUpdates(Difference listDiff)
Processes the given objects after the DDL has been fired for a create, update or delete operation.
|
static void |
DBUtil.forceObjectReset(SystemObject obj, DBObjectProvider pro)
Forces the provider to reset the given object so that its properties will all be rebuilt from the underlying provider.
|
java.sql.Connection |
Database.getConnection(boolean reconnect)
Gets the JDBC connection associated with this database.
|
java.sql.Connection |
AbstractDatabase.getConnection(boolean reconnect) |
protected SystemObject |
AbstractDatabase.getCreatedObject(java.lang.String type, Schema schema, java.lang.String name)
Used by finishCreate() to get the object that's just been created back from the database so that it can be verified before returning to the user.
|
protected java.lang.String |
AbstractDatabase.getCurrentSchemaName()
Gets the name of the current (active) schema for the underlying database connection.
|
java.lang.String |
Database.getDatabaseSource(java.lang.String objectType, Schema schema, java.lang.String objectName)
Retrieves the source for an object in the database.
|
java.lang.String |
AbstractDatabase.getDatabaseSource(java.lang.String objectType, Schema schema, java.lang.String objectName) |
java.lang.String |
Database.getDatabaseSource(java.lang.String objectType, Schema schema, java.lang.String objectName, java.lang.String sourceType)
Retrieves the source for an object in the database.
|
java.lang.String |
AbstractDatabase.getDatabaseSource(java.lang.String objectType, Schema schema, java.lang.String objectName, java.lang.String sourceType) |
Schema |
DBObjectProvider.getDefaultSchema()
Returns the default schema for the provider.
|
Schema |
AbstractDatabase.getDefaultSchema()
Returns the default schema for the connection or null if there isn't one.
|
protected java.lang.Long |
AbstractDBObjectProvider.getExternalTimestamp(SystemObject object) |
protected java.lang.Long |
AbstractDBObjectProvider.getExternalTimestampImpl(SystemObject object)
Retrieves the external timestamp for the specified object.
|
<T extends SystemObject> |
DBObjectProvider.getObject(DBObjectCriteria<T> criteria)
Retrieves the SystemObject representing a specific database object.
|
<T extends SystemObject> |
AbstractDBObjectProvider.getObject(DBObjectCriteria<T> criteria) |
SchemaObject |
DBObjectProvider.getObject(java.lang.String objectType, Schema schema, java.lang.String name)
Retrieves the SchemaObject representing a specific database object.
|
SchemaObject |
AbstractDBObjectProvider.getObject(java.lang.String objectType, Schema schema, java.lang.String name) |
protected <T extends SystemObject> |
AbstractDatabase.getObjectImpl(DBObjectCriteria<T> criteria) |
protected <T extends SystemObject> |
AbstractDBObjectProvider.getObjectImpl(DBObjectCriteria<T> criteria) |
static DBObject |
DBUtil.getProviderDefinition(ReferenceID refID, DBObjectProvider pro)
Attempts to locate the referenced object in the given provider.
|
static <T extends DBObject> |
DBUtil.getProviderDefinition(T obj, DBObjectProvider pro)
Gets the definition for the given object from the provider by querying name, schema and type.
|
static <T extends DBObject> |
DBUtil.getProviderDefinition(T obj, DBObjectProvider pro, java.lang.String schemaName)
Gets the definition for the given object from the provider by querying name and type in the given schema on the top (schema) level parent and then recursing the heirachy to find a match by name and type of the object given.
|
static <T extends SystemObject> |
DBUtil.getProviderDefinitions(T[] objs, DBObjectProvider pro)
Gets the definitions for the given objects from the database by querying name, schema and type.
|
Schema |
DBObjectProvider.getSchema(java.lang.String name)
Retrieves the Schema object associated with a specific name.
|
Schema |
AbstractDBObjectProvider.getSchema(java.lang.String name) |
protected Schema |
AbstractDBObjectBuilder.getSchema(java.lang.String name)
Gets the schema with the given name from the underlying provider.
|
java.lang.Long |
DBObjectProvider.getTimestamp(DBObjectID id)
Retrieves the timestamp for the object represented by the given ID.
|
java.lang.Long |
AbstractDBObjectProvider.getTimestamp(DBObjectID id) |
java.lang.Long |
DBObjectProvider.getTimestamp(java.lang.String objectType, Schema schema, java.lang.String name)
Retrieves the timestamp representing the last modification time of the specified object's metadata.
|
java.lang.Long |
AbstractDBObjectProvider.getTimestamp(java.lang.String type, Schema schema, java.lang.String objectName) |
java.lang.String |
Database.getUserName()
Retrieves the username used to connect to the database
|
abstract java.util.Collection<DBObjectLister.ObjectInfo> |
DBObjectLister.listObjects(DBObjectCriteria criteria)
List the objects that the given criteria has restricted the list to.
|
<T extends SystemObject> |
DBObjectProvider.listObjects(DBObjectCriteria<T> filter)
Lists the objects from this provider that match the given criteria.
|
<T extends SystemObject> |
AbstractDBObjectProvider.listObjects(DBObjectCriteria<T> criteria) |
SchemaObject[] |
DBObjectProvider.listObjects(java.lang.String[] objectTypes, Schema schema)
Lists the objects of multiple types available from this provider.
|
SchemaObject[] |
AbstractDBObjectProvider.listObjects(java.lang.String[] objectTypes, Schema schema) |
SchemaObject[] |
DBObjectProvider.listObjects(java.lang.String[] objectTypes, Schema schema, java.lang.String ref)
Lists the objects of multiple types available from this provider.
|
SchemaObject[] |
AbstractDBObjectProvider.listObjects(java.lang.String[] objectTypes, Schema schema, java.lang.String ref) |
java.lang.String[] |
DBObjectProvider.listObjects(java.lang.String objectType, Schema schema)
Lists the objects of a given type available from this provider.
|
java.lang.String[] |
AbstractDBObjectProvider.listObjects(java.lang.String objectType, Schema schema) |
java.lang.String[] |
DBObjectProvider.listObjects(java.lang.String objectType, Schema schema, java.lang.String ref)
Lists the objects of a given type available from this provider.
|
java.lang.String[] |
AbstractDBObjectProvider.listObjects(java.lang.String objectType, Schema schema, java.lang.String ref) |
protected abstract <T extends SystemObject> |
AbstractDBObjectProvider.listObjectsImpl(DBObjectCriteria<T> criteria)
Internal listObjects implementation.
|
protected java.util.Collection<SystemObject> |
AbstractDBObjectProvider.listObjectsImpl(java.lang.String[] objectTypes, Schema schema, java.lang.String ref)
Internal listObjects implementation.
|
protected java.lang.String[] |
AbstractDBObjectProvider.listObjectsImpl(java.lang.String type, Schema schema, java.lang.String ref)
Retrieves the list of objects by using a registered builder.
|
protected Schema[] |
SchemaObjectManager.listSchemas() |
Schema[] |
DBObjectProvider.listSchemas()
Retrieves the list of schemas available from this provider regardless of their visibility to the user.
|
Schema[] |
AbstractDBObjectProvider.listSchemas() |
Schema[] |
DBObjectProvider.listSchemas(boolean showAll)
Retrieves the list of schemas available from this provider.
|
Schema[] |
AbstractDBObjectProvider.listSchemas(boolean showAll) |
protected java.lang.String |
AbstractDatabase.queryCatalog()
Query the underlying Connection for the current catalog.
|
protected java.lang.String |
AbstractDatabase.queryCurrentSchemaName()
Queries the database for the current schema name.
|
protected java.lang.String |
AbstractDatabase.queryCurrentUserName() |
java.lang.String |
DatabaseDescriptor.quoteIdentifier(java.lang.String internalName, boolean force)
Determines if internalName needs quoting to make it a valid external name, and if so returns a quoted copy of it.
|
java.lang.String |
DBObjectProvider.quoteIdentifier(java.lang.String name, boolean force)
Quotes the specified identifier name, if needed.
|
java.lang.String |
AbstractDBObjectProvider.quoteIdentifier(java.lang.String internalName, boolean force)
Determines if internalName needs quoting to make it a valid external name, and if so returns a quoted copy of it.
|
protected void |
AbstractDatabase.reconnect() |
protected void |
AbstractDBObjectBuilder.registerObject(T object)
Shared between buildObject and buildObjects to perform any post-build tasks that are needed (e.g.
|
protected DBObject |
AbstractDBObjectID.resolveFromParent()
If the id's parent is non-null this tries to resolve the parent ID and then search the parent's children for an object with this ID.
|
protected DBObject |
BaseObjectID.resolveFromProvider()
Tries to resolve this ID using
AbstractDBObjectProvider.findByID(oracle.javatools.db.DBObjectID) . |
DBObject |
TemporaryObjectID.resolveID() |
DBObject |
ReferenceID.resolveID() |
DBObject |
IdentifierBasedID.resolveID() |
DBObject |
DBReferenceID.resolveID()
Deprecated.
This ID is used to reference an object in the database.
|
DBObjectProvider |
DBObjectProviderID.resolveID()
Convinience method to find or create the DBObjectProvider described by this ID.
|
DBObject |
DBObjectID.resolveID()
Resolves the id into the object referenced.
|
DBObject |
BaseObjectID.resolveID() |
protected DBObject |
BaseObjectID.resolveIDWithoutType() |
protected DBObject |
BaseObjectID.resolveIDWithoutType(java.lang.String schemaName) |
protected DBObject |
BaseObjectID.resolveIDWithoutType(java.lang.String dbName, java.lang.String schemaName) |
static DBObject |
DBUtil.resolveInOtherProvider(BaseObjectID id, DBObjectProvider pro)
Attempts to resolve the given ID in a provider that is not the id's own.
|
DBObject |
TemporaryObjectID.resolveOriginalID()
Get the original object which this temporary one was copied from.
|
DBObject |
DBReferenceID.resolveReference(Database db)
|
void |
Database.testSQLStatement(java.lang.String sql)
Tests that the given SQL executes against the database.
|
void |
AbstractDatabase.testSQLStatement(java.lang.String sql) |
void |
DBObjectProvider.undeleteObject(SchemaObject object)
Undeletes the object, i.e.
|
void |
DBObjectProvider.undeleteObjects(SchemaObject[] objects)
Undeletes the objects, i.e.
|
void |
DBObjectProvider.updateObject(SystemObject oldObject, SystemObject newObject)
Updates the definition of an object.
|
void |
AbstractDBObjectProvider.updateObject(SystemObject oldObject, SystemObject newObject) |
void |
DBObjectProvider.updateObjects(Difference listDiff, boolean replace, boolean cascade)
Updates the definition of a set of objects.
|
void |
AbstractDBObjectProvider.updateObjects(Difference listDiff, boolean replace, boolean cascade) |
void |
DBObjectProvider.updateObjects(SystemObject[] oldObjects, SystemObject[] newObjects)
Updates the definition of a set of objects.
|
void |
AbstractDBObjectProvider.updateObjects(SystemObject[] oldObjects, SystemObject[] newObjects) |
void |
DBObjectProvider.updateSchema(Schema oldSchema, Schema newSchema)
Updates the definition of a Schema.
|
void |
AbstractDBObjectProvider.updateSchema(Schema oldSchema, Schema newSchema) |
void |
AbstractDBObjectBuilder.updateTimestamp(T object)
Sets the timestamp of the given object if the underyling DBObjectProvide supports timestamping.
|
protected void |
AbstractDBObjectBuilder.updateTimestamp(T object, boolean force) |
Constructor and Description |
---|
ReferenceID(DBObjectID id)
Creates a ReferenceID to the object that the given id resolves to.
|
ReferenceID(DBObjectID id, DBObjectProvider pro)
Creates a ReferenceID to the object that the given id resolves to, but sets the new reference up with the given provider.
|
Modifier and Type | Class and Description |
---|---|
class |
DataTypeValidationException |
class |
DefaultValueValidationException |
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
|
static DBObject |
DataTypeHelper.resolveDataTypeReferenceID(ReferenceID id)
If a ReferenceID has a type of DataType.TYPE then it must have been created by
DataTypeHelper.createReferenceIDForTypeString(oracle.javatools.db.DBObjectProvider, oracle.javatools.db.Schema, java.lang.String) because DataType is not a valid SystemObject type. |
DBObject |
DataTypeID.resolveID() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
DDLDatabase.isCauseNameInUse(DBException dbe)
Used by processCreateException to determine whether the given failure in DDL execution should be rolled back (i.e.
|
protected void |
DDLDatabase.processCreateException(DBException dbe, SystemObject object) |
protected void |
DDLDatabase.processDeleteException(DBException dbe, SystemObject object)
When an exception is encountered during delete of an object it may be for legitimate reasons that we want to ignore (e.g.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.Collection<DBObjectChange> |
DDLDatabase.commitTransaction(DBObjectTransaction txn, Difference listDiff) |
void |
DDLDatabase.createObjects(SystemObject[] objects, boolean replace) |
void |
DDLDatabase.createSchema(Schema schema, boolean replace) |
void |
DDLDatabase.deleteObjects(SystemObject[] objects, boolean cascade) |
void |
DDLDatabase.deleteSchema(Schema schema, boolean cascade) |
protected boolean |
DDLDatabase.executeDDL(DDL ddl, boolean ignoreErrors) |
protected java.util.Collection<SystemObject> |
DDLDatabase.listObjectsImpl(java.lang.String[] objectTypes, Schema schema, java.lang.String ref) |
Schema[] |
DDLDatabase.listSchemas() |
protected void |
DDLDatabase.processCreateException(DBException dbe, SystemObject object) |
protected void |
DDLDatabase.processDeleteException(DBException dbe, SystemObject object)
When an exception is encountered during delete of an object it may be for legitimate reasons that we want to ignore (e.g.
|
void |
DDLDatabase.undeleteObject(SchemaObject object) |
void |
DDLDatabase.undeleteObjects(SchemaObject[] objects) |
void |
DDLDatabase.updateSchema(Schema oldSchema, Schema newSchema) |
Modifier and Type | Method and Description |
---|---|
protected SystemObject |
DictionaryDatabase.createByIDImpl(DBObjectID id) |
protected java.lang.Long |
DictionaryDatabase.getExternalTimestampByID(DBObjectID id) |
protected java.lang.Long |
DictionaryDatabase.getExternalTimestampImpl(SystemObject obj)
Retrieves the timestamp for this object from the database.
|
protected <T extends SystemObject> |
DictionaryDatabase.listObjectsImpl(DBObjectCriteria<T> criteria) |
protected java.lang.String |
DictionaryDatabase.queryCurrentUserName() |
Modifier and Type | Method and Description |
---|---|
abstract T |
ConnectionWrapper.SQLCallable.call()
Implementations should: Exclusively use
ConnectionWrapper.SQLCallable.getConnection() to get the Connection to use Not explictly close the Connection |
java.lang.Object |
ConnectionWrapper.SQLRunnable.call() |
<T> T |
ConnectionWrapper.call(ConnectionWrapper.SQLCallable<T> c)
Calls the given SQLCallable.
|
protected <T> T |
StatementWrapper.doExecute(StatementWrapper.ExecutionRunnable<T> r) |
boolean |
StatementWrapper.execute()
Executes the statment against the database.
|
boolean |
QueryWrapper.execute() |
abstract <T> T |
StatementWrapper.ExecutionProxy.execute(StatementWrapper.ExecutionRunnable<T> r)
Execute the given Runnable in whatever manner necessary (e.g.
|
void |
PlSqlWrapper.executePlSql(PlSqlWrapper.PlSqlRunnable runner)
Executes the stored procedure and processes the resulting ResultSet and CallableStatement with the given runner.
|
void |
QueryWrapper.executeQuery(int fetchSize, QueryWrapper.QueryRunnable run)
Execute the query against the builder's connection using the appropriate parameter substitutions.
|
void |
QueryWrapper.executeQuery(QueryWrapper.QueryRunnable run)
Execute the query against the builder's connection using the appropriate parameter substitutions.
|
java.lang.String |
QueryWrapper.executeSingleCellQuery()
Convenience method that executes the query and expects a single row with a single column.
|
T |
StatementWrapper.ExecutionRunnable.getResult() |
void |
PlSqlWrapper.PlSqlRunnable.prepareCall(java.sql.CallableStatement cs)
Called once the statement has been created, but before execution so that any output parameters can be registered.
|
void |
PlSqlWrapper.PlSqlRunnable.processCall(java.sql.CallableStatement cs) |
void |
QueryWrapper.QueryRunnable.processResultSet(java.sql.ResultSet rs)
Iterate through the result set as appropriate.
|
void |
PlSqlWrapper.PlSqlRunnable.processResultSet(java.sql.ResultSet rs) |
abstract void |
ConnectionWrapper.SQLRunnable.run()
Implementations should: Exclusively use
ConnectionWrapper.SQLCallable.getConnection() to get the Connection to use Not explictly close the Connection |
void |
ConnectionWrapper.run(ConnectionWrapper.SQLRunnable r)
Runs the given SQLRunnable.
|
abstract T |
StatementWrapper.ExecutionRunnable.runImpl() |
void |
StatementWrapper.throwDBException(DBObject obj, java.sql.SQLException sqe)
If a SQLException is caught during the processing of this query, or its Difference then it can be wrapped in a DBException which can then be displayed to the user.
|
protected void |
StatementWrapper.throwDBException(DBObject obj, java.lang.String text, java.sql.SQLException sqe)
Throws a DBException to wrap a caught SQLException during statement execution.
|
void |
StatementWrapper.throwDBException(java.sql.SQLException sqe)
If a SQLException is caught during the processing of this query, or its Difference then it can be wrapped in a DBException which can then be displayed to the user.
|
Modifier and Type | Method and Description |
---|---|
void |
OracleDatabase.alterSessionParameterValue(java.lang.String parameter, java.lang.String value)
Changes the value of given session parameter using
ALTER SESION SET parameter = value . |
Modifier and Type | Class and Description |
---|---|
class |
MissingPropertyException
Exception class thrown by the property support when a given property is not known for the given object.
|
Modifier and Type | Method and Description |
---|---|
protected void |
DerivedPropertyBuilder.registerObject(T object) |
Modifier and Type | Method and Description |
---|---|
void |
DBObjectTransaction.addException(DBException dbe)
Adds a failure to the transaction.
|
Modifier and Type | Method and Description |
---|---|
protected void |
CascadeProcessor.cascadeDelete(DBObjectTransaction txn, DBObject obj, SystemObject depObj)
Processes the delete of the given DBObject to a dependent SystemObject.
|
protected void |
CascadeProcessor.cascadeUpdate(DBObjectTransaction txn, Difference objDiff, SystemObject depObj) |
void |
DBObjectTransaction.commit()
Convenience method to commit this transaction to the underlying provider.
|
Difference |
DBObjectTransaction.getTransactionDifference()
Gets the overall Difference for this transaction that will be committed to the underlying provider.
|
protected void |
RefactoringProcessor.processObjectCreate(DBObjectTransaction txn, SystemObject obj)
The default processObjectDifference implementation calls this method will every new object that will be created.
|
protected void |
RefactoringProcessor.processObjectDelete(DBObjectTransaction txn, SystemObject obj)
The default processObjectDifference implementation calls this method will every new object that will be deleted.
|
protected void |
CascadeProcessor.processObjectDelete(DBObjectTransaction txn, SystemObject obj)
Process the delete of a SystemObject from the provider.
|
protected void |
RefactoringProcessor.processObjectDifference(DBObjectTransaction txn, Difference objDiff)
This is called for every SystemObject Difference in the global update Difference.
|
protected void |
RefactoringProcessor.processObjectUpdate(DBObjectTransaction txn, Difference objDiff)
The default processObjectDifference implementation calls this method for every object that is to be updated
|
protected void |
CascadeProcessor.processObjectUpdate(DBObjectTransaction txn, Difference objDiff) |
protected void |
CascadeProcessor.processSingleObjectUpdate(DBObjectTransaction txn, Difference objDiff)
This is called for each DBObject that has changed within the overall difference.
|
abstract void |
UpdateProcessor.processUpdate(DBObjectTransaction txn, Difference objDiff)
Called by a DBObjectProvider during a create or update process.
|
void |
RefactoringProcessor.processUpdate(DBObjectTransaction txn, Difference objDiff) |
Modifier and Type | Class and Description |
---|---|
class |
AliasInUseException
SQLQueryException thrown when an attempt is made to add an object whose alias is already in use.
|
class |
AmbiguousColumnException
Exception thrown when the name of a column in a query is ambiguous - i.e.
|
class |
IDException
Exception thrown when a DBObject is missing an ID.
|
class |
InvalidAliasException
Exception thrown when a select or from object has an invalid alias (e.g.
|
class |
InvalidSQLException
SQLQueryException for representing errors in the sql (e.g.
|
class |
SQLParseException
Subclass of SQLQueryException used for parse errors in the sql.
|
class |
SQLQueryClauseException
Exception thrown by a SQLQueryBuilder when there is an error with a clause in the query, but that this error doesn't stop the query being declarative.
|
class |
SQLQueryException
Superclass for all Exceptions thrown by the SQLQuery API.
|
Modifier and Type | Method and Description |
---|---|
Column[] |
SQLQueryBuilder.getColumns()
Retrieves Column objects mapped to the columns in the SQL query that has been built, thereby giving the name and type of each column the query has.
|
Column[] |
AbstractSQLQueryBuilder.getColumns() |
protected SchemaObject |
AbstractSQLQueryBuilder.getObject(DBObjectCriteria crit) |
protected SchemaObject |
AbstractSQLQueryBuilder.getObject(java.lang.String type, Schema sch, java.lang.String relation) |
Constructor and Description |
---|
IDException(DBObjectID id, DBException cause)
Constructor to use when an ID won't resolve.
|
Modifier and Type | Class and Description |
---|---|
class |
MissingValidatorException
Indicates that the validation of the database object failed because no DBObjectValidator was registered to handle the validation.
|
class |
SourceValidationException
Sublass of
ValidationException used to report errors in SourceObjects . |
class |
ValidationException
Indicates that the validation of the database object failed.
|
Modifier and Type | Method and Description |
---|---|
Database |
ConnectionInfo.getDatabase()
Returns a Database for the connection.
|
Database |
DatabaseConnections.getDatabase(java.lang.String connName)
Returns a Database for the given connection name.
|
Database |
DatabaseConnections.getDatabase(java.lang.String connName, boolean create)
Returns a Database for the given connection name if one is already cached and only creates a new one if create is true.
|
Modifier and Type | Method and Description |
---|---|
static Database |
DatabaseFinder.findDatabaseEx(java.lang.String connString)
Finds the Database for the given qualified connection String.
|
Modifier and Type | Class and Description |
---|---|
class |
DependentProviderUpdateException
If an attempt is made to update or delete an object that exists in a dependent offline provider, rather than the current provider then this exception is thrown.
|
Modifier and Type | Method and Description |
---|---|
static void |
OfflineDBUtil.canCreateFile(SystemObject obj, OfflineDBObjectProvider pro)
Checks that create is available on the given object url.
|
static void |
OfflineDBUtil.canCreateURL(java.net.URL url, DBObject obj)
Checks that create is available on the given object url.
|
static void |
OfflineDBUtil.canUpdateFile(DBObject obj, OfflineDBObjectProvider pro)
Checks that update is available on the given object.
|
static void |
OfflineDBUtil.canUpdateFile(OfflineDBObjectNode node, OfflineDBObjectProvider pro)
Checks that update is available on the given object.
|
static void |
OfflineDBUtil.canUpdateURL(java.net.URL url, DBObject obj)
Checks that update is available on the given object url.
|
static void |
OfflineDBUtil.checkURLIsWritable(java.net.URL url, DBObject obj, boolean doit)
Checks that the URL is, or at least can be made, writable.
|
protected SystemObject |
OfflineDBObjectProvider.createObjectImpl(java.lang.String type, Schema schema, java.lang.String name)
Creates a schema object by looking on the filesystem (using listAllObjects) for the appropriate filename.
|
void |
OfflineDBObjectProvider.createObjects(SystemObject[] objects, boolean replace)
Used to create (or replace) the given SystemObjects.
|
void |
OfflineDBObjectProvider.deleteObjects(SystemObject[] objects, boolean cascade)
Deletes a set of objects together.
|
protected DBObject |
OfflineDBObjectProvider.findByID(DBObjectID id)
Finds a given object by ID.
|
DBObject |
OfflineDBObjectProvider.getObject(OfflineDBObjectNode node)
Retrieves the object from the given node ensuring that the object's ID is correctly setup for this provider.
|
SchemaObject |
OfflineDBObjectProvider.getObject(SchemaObjectNode node)
Retrieves the SchemaObject from the given node ensuring that the object's ID is correctly setup for this provider.
|
abstract SystemObject |
OfflineDBObjectProvider.getObject(java.net.URL url)
Retrieves the SchemaObject from the given URL ensuring that the object's ID is correctly setup for this provider.
|
protected <T extends SystemObject> |
OfflineDBObjectProvider.getObjectImpl(DBObjectCriteria<T> criteria) |
Schema |
OfflineDBObjectProvider.getSchema(java.lang.String name, boolean incBuiltInSchemas)
Offline specific method for retrieving the schema with a given name without looking through the built-in schemas.
|
protected <T extends SystemObject> |
OfflineDBObjectProvider.listObjectsImpl(DBObjectCriteria<T> criteria) |
void |
OfflineDBObjectProvider.undeleteObject(SchemaObject object)
This method is not currently supported in the offline provider.
|
void |
OfflineDBObjectProvider.undeleteObjects(SchemaObject[] objects)
This method is not currently supported in the offline provider.
|
void |
OfflineDBObjectProvider.updateSchema(Schema oldSchema, Schema newSchema) |
Modifier and Type | Method and Description |
---|---|
static OfflineDBObjectProvider |
ProviderWizard.createProvider(Project p, ProviderSettings settings)
Creates a new offline database.
|
static OfflineDBObjectProvider |
ProviderWizard.createProvider(Project p, java.lang.String name, DBObjectProvider db)
Creates a new offline database.
|