Package | Description |
---|---|
oracle.ide.db |
Classes for representing database objects in the IDE.
|
oracle.ide.db.components |
Contains the ComponentWrapper API, which allows DBObject properties to
be associated with a UI Component, and the property value by kept
synchronized with the UI.
|
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.event | |
oracle.ide.db.insight.model |
Classes to support the production of
InsightItems
for the Database UI. |
oracle.ide.db.model |
Classes associated with the IDE's navigator nodes for database
connections and database objects.
|
oracle.ide.db.panels |
Reusable UI panels for listing, creating or editing database objects in dialogs
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.diff |
Contains a metadata driven differ of database objects.
|
oracle.javatools.db.event | |
oracle.javatools.db.execute |
Utility classes for executing statements, queries and pl/sql against a
database.
|
oracle.javatools.db.extension |
Contains classes for extending the object support that comes as standard in
the database api (e.g.
|
oracle.javatools.db.hive | |
oracle.javatools.db.ora |
Contains the database api implementation for Oracle databases, and additional
DBObject implementations for objects specific to Oracle.
|
oracle.javatools.db.ora.bigdata | |
oracle.javatools.db.ora.sxml | |
oracle.javatools.db.plsql |
Utility classes for working with (for example parsing) PL/SQL.
|
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.util |
Contains java.util.Collection and java.util.Map implementations for listing
and mapping instances of DBObject and DBObjectID.
|
oracle.javatools.db.validators |
Contains classes that provide the capability to validate DBObjects in
a DBObjectProvider.
|
oracle.jdeveloper.db.dependency | |
oracle.jdeveloper.offlinedb |
Database API extension for saving database object definitions in XML files.
|
oracle.jdeveloper.offlinedb.model |
Classes that define an offline database's settings and properties.
|
oracle.jdeveloper.offlinedb.userprops |
Extension to the Offline Database that allows the association of a library of
user properties to be associated with an offline database.
|
oracle.jdeveloper.offlinedb.wizard |
Wizard and dialogs that can used when working with the offline database.
|
Modifier and Type | Method and Description |
---|---|
DBObject |
DBObjectTransferable.getDBObject() |
DBObject[] |
DBObjectTransferable.getPath() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
PropertyDisplayRegistry.getDisplayName(java.lang.String propName,
DBObjectProvider pro,
DBObject obj)
Returns a displayable (translated) name for the given property in the
context of the given provider.
|
abstract java.lang.String |
PropertyDisplayRegistry.Plugin.getDisplayName(java.lang.String name,
DBObjectProvider pro,
DBObject obj) |
static java.lang.String |
PropertyDisplayRegistry.getDisplayNameOrNull(java.lang.String propName,
DBObjectProvider pro,
DBObject obj)
Returns a displayable (translated) name for the given property in the
context of the given provider.
|
static javax.swing.Icon |
DBTypeDisplayRegistry.getNodeIcon(DBObject object)
Retrieves the icon that should be used to represent the given object.
|
Constructor and Description |
---|
DBObjectTransferable(DBObject obj) |
DBObjectTransferable(DBObject obj,
boolean includeChildren) |
DBObjectTransferable(DBObject obj,
DBObject[] path) |
DBObjectTransferable(DBObject obj,
DBObject[] path) |
DBObjectTransferable(DBObject obj,
DBObject[] path,
boolean includeChildren) |
DBObjectTransferable(DBObject obj,
DBObject[] path,
boolean includeChildren) |
Modifier and Type | Method and Description |
---|---|
protected DBObject |
ComponentWrapper.getOriginalObject()
Gets the original object that is being edited.
|
DBObject |
ComponentContext.getOriginalObject()
Get object that the updated object is a copy of.
|
protected DBObject |
ComponentWrapper.getUpdatedObject()
Gets the object that is being edited or created.
|
DBObject |
ComponentContext.getUpdatedObject()
Get the updated object for this context.
|
Modifier and Type | Method and Description |
---|---|
ComponentContext |
ComponentFactory.createComponentContext(java.lang.String propName,
DBObject originalObject,
DBObject contextObject)
Creates a ComponentContext for creating a ComponentWrapper for the
given property and object.
|
void |
ComponentFactory.refreshComponents(DBObject refreshObject)
Refreshes all the registered ComponentWrappers with a new
updatedObject.
|
boolean |
ComponentWrapper.refreshObject(DBObject refreshedObject)
Refreshes this ComponentWrapper with a new updatedObject for its
ComponentContext.
|
void |
ComponentContext.setUpdatedObject(DBObject updatedObject)
Set the updated version of the context object, this will include any
changes made in the UI.
|
Modifier and Type | Method and Description |
---|---|
DBObject |
DBObjectChooser.getDBObject()
Convenience method to return the DBObject currently represented by the
DBObjectChooser.
|
DBObject |
DBObjectChooser.getOrCreateDBObject() |
Modifier and Type | Method and Description |
---|---|
void |
DBObjectListPicker.addDBObject(DBObject obj)
Use to setup the initial contents of the picker.
|
void |
DBObjectPicker.addDBObjectPaths(DBObject[][] paths) |
void |
DBObjectPicker.addDBObjects(DBObject[] objs)
Adds the given DBObjects to the picker (at the top level).
|
protected javax.swing.tree.DefaultMutableTreeNode |
DBObjectPicker.findOrAddChild(javax.swing.tree.DefaultMutableTreeNode parent,
DBObject userObj,
java.util.List addToSelection)
Using the given parent node, a child DefaultMutableTreeNode is found or
created with the given DBObject as its user object.
|
void |
NameTextField.init(DBObject obj,
DBObject originalObj,
DBObjectProvider pro) |
void |
NameTextField.init(DBObject obj,
DBObjectProvider pro) |
void |
DBObjectChooser.setDBObject(DBObject obj)
Convenience method to set the DBObject currently represented by the
DBObjectChooser.
|
void |
DBObjectLabel.setObject(DBObject obj,
boolean fullName) |
void |
DBObjectPicker.setSelectedItems(DBObject[] objs)
Finds the given objects and adds them to the selection.
|
Constructor and Description |
---|
DBObjectLabel(DBObject obj,
boolean fullName) |
Modifier and Type | Method and Description |
---|---|
<T extends DBObject> |
DBEditorFactory.createDBObject(DBObjectProvider pro,
T template,
DBObject parent,
boolean commitToProvider)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
DBObject |
DBEditorFactory.createDBObject(DBObjectNode node,
java.lang.String dbObjectType)
Deprecated.
|
DBObject |
DBEditorFactory.createDBObject(Schema schema,
DBObjectProvider pro,
java.lang.String dbObjectType,
DBObject parent,
boolean commitToProvider)
Deprecated.
|
DBObject |
DBEditorConfig.getChildObject()
Gets the child object being edited (if there is one).
|
Modifier and Type | Method and Description |
---|---|
boolean |
DBEditorFactory.canEditDBObject(DBObject obj,
DBObjectProvider pro)
Whether this DBEditorFactory will be able to edit an existing provider
object of a specific type in a specific context.
|
boolean |
BaseDBEditorFactory.canEditDBObject(DBObject obj,
DBObjectProvider pro) |
protected boolean |
BaseDBEditorFactory.canUpdateObject(DBObject obj,
DBObjectProvider pro)
If canEditDBObject returns true, then this method is used to determine
whether the verifiers are set to be editable or not.
|
boolean |
DBEditorFactory.createDBObject(DBObject newObj,
DBObjectProvider pro)
Deprecated.
|
boolean |
DBEditorFactory.createDBObject(DBObject newObj,
DBObjectProvider pro,
boolean commitToProvider)
Deprecated.
|
<T extends DBObject> |
DBEditorFactory.createDBObject(DBObjectProvider pro,
T template,
DBObject parent,
boolean commitToProvider)
Deprecated.
|
DBObject |
DBEditorFactory.createDBObject(Schema schema,
DBObjectProvider pro,
java.lang.String dbObjectType,
DBObject parent,
boolean commitToProvider)
Deprecated.
|
boolean |
DBEditorFactory.editDBObject(DBObject obj,
DBObjectProvider pro)
Deprecated.
|
boolean |
DBEditorFactory.editDBObject(DBObject obj,
DBObjectProvider pro,
boolean commitToProvider)
Deprecated.
|
boolean |
DBEditorFactory.editDBObject(DBObject obj,
DBObjectProvider pro,
DBObject child)
Deprecated.
|
boolean |
DBEditorFactory.editDBObject(DBObject obj,
DBObjectProvider pro,
DBObject child,
boolean commitToProvider)
Deprecated.
|
static DBEditorFactory |
DBEditorFactoryRegistry.getEditFactory(DBObject obj,
DBObjectProvider pro)
Finds and returns a factory that can edit the given object.
|
static DBEditorConfig |
DBEditorConfig.newCreateConfig(DBObjectProvider pro,
DBObject obj)
Creates a new config for launching a database object create dialog.
|
static DBEditorConfig |
DBEditorConfig.newCreateConfig(DBObjectProvider pro,
java.lang.String type,
DBObject parent)
Creates a new config for launching a database object create dialog.
|
static DBEditorConfig |
DBEditorConfig.newEditConfig(DBObjectProvider pro,
DBObject obj)
Creates a new config for launching a database object edit dialog.
|
void |
DBEditorConfig.setChildObject(DBObject childObject)
Sets the child object.
|
Modifier and Type | Method and Description |
---|---|
protected void |
SwingDBObjectPropertyListener.propertyChanged(DBObject obj,
java.lang.String propertyName,
java.beans.PropertyChangeEvent pce) |
protected abstract void |
SwingDBObjectPropertyListener.updateUI(DBObject obj,
java.lang.String propertyName,
java.beans.PropertyChangeEvent pce)
This method is called with any information passed to
propertyChanged , but this method will be called on the event
thread. |
Modifier and Type | Method and Description |
---|---|
DBObject |
DBInsightContext.getContextObject()
Get method for the Context Object.
|
protected DBObject |
ParentLocator.getContextObjectAtOffset()
Returns the DBObject that is most closely associated with the location in the text of the
offset.
|
protected DBObject |
InsightDataProvider.getContextObjectAtOffset()
Returns the DBObject that is most closely associated with the location in the text of the
offset.
|
protected DBObject |
ParentLocator.getParent(java.util.List<java.lang.String> names)
Finds the object represented by a dot seperated list of names.
|
static DBObject |
DBInsightProvider.resolveIDForInsight(DBObjectID id)
Resolves the given ID and if resolution fails swallows the error.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.Class<? extends DBObject> |
InsightDataProvider.getParentScopeClass() |
java.lang.Class<? extends DBObject> |
DBInsightContext.getParentScopeClass()
Get method of the class of upper most parent class of the
object being sought.
|
java.lang.Class<? extends DBObject> |
DBInsightContext.getTargetObjectClass()
Get method of the class of object being sought.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
DataTypeProvider.addDataTypes(DBObject parent) |
protected boolean |
DataTypeProvider.addDataTypeUsages(DBObject parent) |
protected void |
InsightDataProvider.addDBObject(DBObject obj)
Adds an InsightItem representing the given DBObject if it fullfills the requrements of
the filter and any specified target class type.
|
void |
SchemaProvider.addItems(DBObject parent) |
void |
SchemaObjectInsightDataProvider.addItems(DBObject parent) |
void |
SQLFromObjectProvider.addItems(DBObject parent) |
void |
ReservedWordInsightDataProvider.addItems(DBObject parent) |
void |
PlSqlInsightDataProvider.addItems(DBObject context) |
abstract void |
InsightDataProvider.addItems(DBObject parent)
Add all items that are "children" of the given parent.
|
void |
FunctionProvider.addItems(DBObject parent) |
void |
DataTypeProvider.addItems(DBObject parent) |
void |
ColumnInsightDataProvider.addItems(DBObject parent) |
protected boolean |
InsightDataProvider.isTopLevel(DBObject parent) |
void |
DBInsightContext.setContextObject(DBObject contextObject)
Set method for the Context Object.
|
Modifier and Type | Method and Description |
---|---|
void |
DBInsightContext.setParentScopeClass(java.lang.Class<? extends DBObject> parentScopeClass)
Set method to identify the class of upper most parent class of the
object being sought.
|
void |
DBInsightContext.setTargetObjectClass(java.lang.Class<? extends DBObject> targetObjectClass)
Set method to identify the class of object being sought.
|
Modifier and Type | Method and Description |
---|---|
DBObject |
DBObjectNode.getDBObject()
Returns the contained object.
|
DBObject |
BaseDBObjectTextNode.getDBObject()
Returns the DBObject for the node.
|
DBObject |
BaseDBObjectNode.getDBObject()
Returns the DBObject for the node.
|
static DBObject |
DBObjectNodeUtil.getDBObject(java.lang.Object node)
Gets the DBObject for the given node.
|
DBObject |
DBObjectPropertyNode.getParentDBObject()
Gets the parent object that the property is on.
|
Modifier and Type | Method and Description |
---|---|
void |
DBObjectNode.init(DBObject obj,
DBObjectProvider pro)
Initialises a new node.
|
void |
BaseDBObjectNode.init(DBObject obj,
DBObjectProvider pro) |
Modifier and Type | Class and Description |
---|---|
class |
PanelLibrary<T extends DBObject>
A panel library is a way that a list of wizard/dialog panels can be built up
generically, and a set of Steps or Navigables - flat or nested can be
retrieved.
|
static class |
PanelLibrary.DelegatePanelLibrary<T extends DBObject>
Allows the creation of a PanelLibrary that can delegate all the panel
logic to an underlying PanelLibrary and then override other
specifics as required.
|
Modifier and Type | Method and Description |
---|---|
java.util.HashMap<java.lang.String,DBObject> |
TemplateObjectsPanel.commit() |
Modifier and Type | Method and Description |
---|---|
Traversable |
PanelLibrary.getMainDialogPanel(T obj,
DBObjectProvider pro,
DBObject child,
Navigable[] navs)
Deprecated.
|
protected java.util.Set<java.lang.String> |
PanelLibrary.getNamesToExclude(DBObjectProvider pro,
DBObject contextObject) |
T |
PanelLibrary.getObjectForCreate(Schema schema,
DBObjectProvider pro,
DBObject parent)
Returns an object ready to be created.
|
java.lang.String |
PanelLibrary.getStartPage(DBObject child)
Deprecated.
Replaced by
PanelLibrary.getStartPage(DBEditorConfig) . |
void |
PanelLibrary.makeNameUnique(DBObject dbo,
Schema schema,
DBObjectProvider pro,
DBObject parent)
It is expected that an new object created by
PanelLibrary.getObjectForCreate(oracle.javatools.db.Schema, oracle.javatools.db.DBObjectProvider, oracle.javatools.db.DBObject) will be initialized by the provider's
DBObjectFactory and therefore have a default name. |
protected T |
PanelLibrary.newDBObject(DBObjectProvider pro,
Schema schema,
DBObject parent)
Returns a new DBObject instance for the type of object this library
supports.
|
protected T |
PanelLibrary.DelegatePanelLibrary.newDBObject(DBObjectProvider pro,
Schema schema,
DBObject parent) |
Modifier and Type | Method and Description |
---|---|
void |
TemplateObjectsPanel.init(DBObjectProvider pro,
java.util.HashMap<java.lang.String,DBObject> map) |
Modifier and Type | Method and Description |
---|---|
static void |
TransferHelper.replaceExistingIDs(DBObject temp,
DBObject existing,
java.util.Map<DBObjectID,DBObjectID> idMap)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
javax.swing.tree.DefaultMutableTreeNode |
TreeNodeMaker.createTreeNode(DBObject obj)
Creates a TreeNode using the defaults set on this TreeNodeMaker for child
nodes for the given DBObject.
|
static javax.swing.tree.DefaultMutableTreeNode |
DBObjectRenderer.createTreeNode(DBObject obj,
boolean showChildren)
Deprecated.
- use a TreeNodeMaker.
|
static javax.swing.tree.DefaultMutableTreeNode |
DBObjectRenderer.createTreeNode(DBObject obj,
boolean showChildren,
java.lang.String[] includeChildTypes)
Deprecated.
- use a TreeNodeMaker.
|
void |
SchemaObjectBuilder.ensureDerivedPropertiesBuiltEx(DBObject obj)
|
boolean |
SchemaObjectBuilder.ensureObjectBuilt(DBObject... objs)
Ensures that all of the given SystemObjects are fully loaded from their
metadata source (e.g.
|
boolean |
SchemaObjectBuilder.ensureObjectBuiltEx(DBObject... objs)
Ensures that all of the given SystemObjects are fully loaded from their
metadata source (e.g.
|
Modifier and Type | Interface and Description |
---|---|
interface |
DBObjectBuilder<T extends DBObject>
The
DBObjectBuilder interface provides a mechanism
for constructing new instances representing database objects. |
interface |
DBObjectFilter<T extends DBObject>
Interface to use when searching DBObjects for a particular object, or
objects.
|
static class |
DBObjectFilter.IDFilter<T extends DBObject>
DBObjectFilter implementation that accepts objects with a given ID,
optionally performing a strict comparison.
|
interface |
DBObjectValidator<T extends DBObject>
Deprecated.
replaced by oracle.javatools.db.validators.DBObjectValidator
|
Modifier and Type | Interface and Description |
---|---|
interface |
BinaryObject
Interface for an object from the db that has a binary representation (e.g.
|
interface |
ChildDBObject
Interface that any DBObject should implement if it can exist as the child
of another DBObject.
|
interface |
SchemaObject
A
SchemaObject represents a database object that can
exist within the context of a schema. |
interface |
SourceObject
Any object in the database that can contain a block of source code - for
example java or PL/SQL.
|
interface |
SystemObject
A system object is available at the DBObjectProvider level through the list
and get methods, and can be created/updated/deleted.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractBuildableObject
Provides methods for lazy loading and building AbstractDBObjects.
|
class |
AbstractChildBuildableObject
Abstract DBObject implementation that is buildable (support lazy loading)
and is a ChildDBObject implementation.
|
class |
AbstractChildDBObject
Extension of DBObject used by child object in the API.
|
class |
AbstractDBObject
Provides an abstract implementation of the
DBObject
interface. |
class |
AbstractIncrementer
Abstract superclass of Sequence to allow for other implementations that use a
Sequence (or similar) but not as a SchemaObject to re-use these properties.
|
class |
AbstractSchemaObject
Provides a base implementation of the
SchemaObject interface. |
class |
AbstractSystemObject
Abstract superclass for all SystemObject implementations.
|
class |
Alias
Model of a database alias.
|
class |
AutoExtendProperties
Model of properties for auto extend behavior used by
Tablespace s |
class |
CheckConstraint
A
CheckConstraint constrains a table or view based on a
conditional expression. |
class |
Column
Model of a database column.
|
class |
ColumnConstraint
Abstract model of a Constraint that constrains Columns in the database.
|
class |
Constraint
A
Constraint represents a constraint on a table or view. |
class |
FileSpecification
Model of
File Specification properties. |
class |
FKConstraint
A
FKConstraint represents a Foreign Key Constraint. |
class |
IdentityColumnProperties
Properties of an Identity Column defining how the values of that column are generated.
|
class |
Index
Model of a database index.
|
class |
Java
Abstract SchemaObject implementation for the different Java objects available
in a database.
|
class |
JavaClass
Model of a Java Class.
|
class |
JavaResource
Model of a Java Resource object.
|
class |
JavaSource
Model of a Java Source object.
|
class |
PKConstraint
A
PKConstraint represents a Primary Key constraint. |
class |
Relation
A
Relation represents the basic entity of a relational
database. |
class |
Schema
Model of a database schema.
|
class |
Sequence
Model of a database sequence.
|
class |
Synonym
Model of a database synonym.
|
class |
Table
Model of a database table.
|
class |
Tablespace
Model of a Tablespace in a database.
|
class |
UniqueConstraint
A
UniqueConstraint prohibits multiple rows from having the
same value in the same column or combination of columns but allows some
values to be null. |
class |
View
Represents a database View.
|
Modifier and Type | Method and Description |
---|---|
<T extends DBObject> |
CascadeManager.LookupCriteria.addIfRequired(T obj,
java.util.Collection<? super T> objs)
Adds an object to the given collection if it is allowed by this
lookup.
|
static <T extends DBObject> |
DBUtil.findChildInCopy(DBObject orig,
DBObject copy,
T origChild)
Given a child of an original object, finds the matching child of the copy
using the TemporaryObjectIDs in the copy.
|
static <T extends DBObject> |
DBUtil.findChildren(DBObject obj,
java.lang.Class<T> clz)
Finds owned objects of the given class under the given object.
|
static <T extends DBObject> |
TemporaryObjectID.findOriginalObject(T obj)
Recursively finds the original object for the given object, if the
given object is a copy with a TemporaryObjectID.
|
<T extends DBObject> |
AbstractDBObject.findParent(java.lang.Class<T> parentClass)
Looks in the parent heirachy of this object for an object of the given
class.
|
static <T extends DBObject> |
DBUtil.findParentOfType(DBObject child,
java.lang.Class<T> clz)
Search the parent heirachy of the given object (including the given object)
and if an object is found that is of the given type, it is returned.
|
static <T extends DBObject> |
TemporaryObjectID.getOriginalObject(T obj)
Gets the original object for the given object, if it has a
TemporaryObjectID.
|
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.
|
<T extends DBObject> |
AbstractDBObjectProvider.getValidator(T object)
Gets the DBObjectValidator for the given object.
|
static <T extends DBObject> |
TemplateExpander.initialiseObject(T template) |
static <D extends DBObject> |
DBUtil.makeClonedCopy(D object)
Makes a clone of the original object.
|
static <D extends DBObject> |
DBUtil.makeTemporaryCopy(D object)
Makes a copy of the original object, with temporary reference ids.
|
protected <D extends DBObject> |
AbstractDBObjectBuilder.newObject(java.lang.Class<? extends D> clz,
DBObject parent,
java.lang.String name)
Creates a new object of the given class using the provider's object
factory.
|
protected <D extends DBObject> |
AbstractDBObjectBuilder.newObject(java.lang.Class<? extends D> clz,
java.lang.String name)
Creates a new object of the given class using the provider's object
factory.
|
<T extends DBObject> |
DBObjectFactory.newObject(java.lang.Class<T> clz)
Creates a new
DBObject of the specified class using the default
template if one exists, and with properties initialized according to all
registered PropertyInitializers . |
<T extends DBObject> |
DBObjectFactory.newObject(java.lang.Class<T> clz,
DBObject parent)
Creates a new
DBObject of the specified class using the default
template if one exists, and with properties initialized according to all
registered PropertyInitializers . |
<T extends DBObject> |
DBObjectFactory.newObject(java.lang.Class<T> clz,
DBObject parent,
boolean useDefaultTemplate,
boolean initialiseProperties)
Creates a new
DBObject of the specified class optionally using the
default template if one exists, and with properties initialized according
to all registered PropertyInitializers . |
<T extends DBObject> |
DBObjectFactory.newObject(java.lang.Class<T> clz,
DBObject parent,
java.lang.String name)
Creates a new
DBObject of the specified class optionally using the
default template if one exists, and with properties initialized according
to all registered PropertyInitializers . |
<T extends DBObject> |
DBObjectFactory.newObject(java.lang.Class<T> clz,
DBObject parent,
java.lang.String name,
boolean useDefaultTemplate,
boolean initialiseProperties)
Creates a new
DBObject of the specified class optionally using the
default template if one exists, and with properties initialized according
to all registered PropertyInitializers . |
<T extends DBObject> |
DBObjectFactory.newObject(T template)
Creates a new object using the given template with properties initialized
according to all registered
PropertyInitializers , |
<T extends DBObject> |
DBObjectFactory.newObject(T template,
DBObject parent)
Creates a new object using the given template with properties initialized
according to all registered
PropertyInitializers , |
Modifier and Type | Method and Description |
---|---|
DBObject |
AbstractDBObject.copyTo(DBObject target,
boolean temporaryCopy) |
DBObject |
DBObject.copyTo(DBObject target,
boolean temporaryCopy)
Copies the state of this object to another instance.
|
protected DBObject |
AbstractDBObject.copyTo(DBObject target,
DBObject copyParent,
IDPolicy idPolicy)
Internal copy method used by the API to perform copy operations.
|
DBObject |
AbstractDBObject.copyTo(DBObject target,
IDPolicy idPolicy) |
DBObject |
DBObject.copyTo(DBObject target,
IDPolicy idPolicy)
Copies the state of this object to another instance.
|
static DBObject |
DBUtil.findChildByName(DBObject parent,
java.lang.String property,
java.lang.String childName,
boolean searchOriginal,
DBObjectProvider pro)
Finds a child object, owned by the given parent object, whose name
matches the given childName.
|
static DBObject |
DBUtil.findChildByName(DBObject parent,
java.lang.String property,
java.lang.String childName,
DBObjectProvider pro)
Finds a child object, owned by the given parent object, whose name
matches the given childName.
|
static DBObject |
TemporaryObjectID.findOriginalObject(TemporaryObjectID id)
Returns the original object's id, or null if there is no original
object.
|
DBObject |
AbstractDBObject.findOwnedObject(DBObjectID id) |
DBObject |
DBObject.findOwnedObject(DBObjectID id)
Returns a child of this object that has the given ID.
|
DBObject |
AbstractDBObject.findOwnedObject(DBObjectID id,
boolean strict) |
DBObject |
CheckConstraint.findOwnedObject(DBObjectID id,
boolean strict) |
DBObject |
DBObject.findOwnedObject(DBObjectID id,
boolean strict)
Returns a child of this object that has the given ID.
|
DBObject |
Index.findOwnedObject(DBObjectID id,
boolean strict) |
protected DBObject |
AbstractDBObject.findOwnedObject(DBObjectID id,
boolean strict,
boolean deep)
Finds an owned object with the given ID, optionally recursing into the
owned object heirachy.
|
DBObject |
AbstractDBObject.findOwnedObject(java.lang.String type,
java.lang.String name)
Final implementation uses getChildrenImpl( String type ) and searches
through the contained DBObjects by name.
|
DBObject |
DBObject.findOwnedObject(java.lang.String type,
java.lang.String name)
Returns an object owned by this object with given name and type, if one
exists.
|
static DBObject |
DBUtil.findOwnedObjectInHierarchy(DBObject top,
DBObjectID find)
Searches for an object in the whole hierarchy underneath top that has
the given id.
|
DBObject |
TemporaryObjectID.getDBObject()
Gets the object that this ID resolves to.
|
static DBObject |
DBUtil.getDBObjectFromParent(Difference cmr,
java.lang.String contributor)
Search back through the parents of the Difference to find a DBObject.
|
DBObject |
AbstractDBObjectProvider.getDefaultTemplateForType(java.lang.String type)
Returns the default template object for the given type, or null if none
defined.
|
DBObject |
DBObjectProvider.getDefaultTemplateForType(java.lang.String type)
Returns the default template object for the given type, or null if none
defined.
|
DBObject |
CascadeRequiredException.getObject() |
DBObject |
DBException.getObject()
The object on which this exception occurred.
|
DBObject |
TemporaryObjectID.getOriginalObject()
Get the original object which this temporary one was copied from.
|
DBObject[] |
AbstractDBObject.getOwnedObjects()
Final implementation calls getOwnedObjectsImpl with a null
argument for the type.
|
DBObject[] |
DBObject.getOwnedObjects()
Returns the objects owned by this object.
|
DBObject[] |
AbstractDBObject.getOwnedObjects(java.lang.String... types)
Final implementation calls getOwnedObjectsImpl with the given
types.
|
DBObject[] |
DBObject.getOwnedObjects(java.lang.String... type)
Returns the objects owned by this object of the given type.
|
DBObject |
AbstractDBObject.getParent() |
DBObject |
ChildDBObject.getParent()
Returns the parent of this object, if one exists.
|
DBObject |
DBObject.getParent()
Returns the parent of this object, if one exists.
|
static DBObject |
DBUtil.getProviderDefinition(ReferenceID refID,
DBObjectProvider pro)
|
DBObject[] |
DBException.getRelatedObjects()
Gets any other objects that are related to this DBException.
|
DBObject |
ReferenceID.ReferenceInfo.getResult() |
static DBObject |
DBUtil.getUppermostParent(DBObject obj)
Gets the top most object in the parent chain for the given object.
|
DBObject |
DBObjectIterator.next() |
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.resolveID(oracle.javatools.db.DBObjectID) . |
DBObject |
BaseObjectID.resolveID() |
DBObject |
DBObjectID.resolveID()
Resolves the id into the object referenced.
|
DBObject |
DBReferenceID.resolveID()
Deprecated.
This ID is used to reference an object in the database.
|
DBObject |
IdentifierBasedID.resolveID() |
DBObject |
ReferenceID.resolveID() |
DBObject |
TemporaryObjectID.resolveID() |
protected DBObject |
AbstractDBObjectProvider.resolveID(DBObjectID id)
Finds an object that matches the given id.
|
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 |
AbstractDBObjectID.resolveInParentObject(DBObject parent)
Used by resolvefromParent to find the object corresponding to this ID in
the given parent object.
|
DBObject |
BaseObjectID.resolveInParentObject(DBObject parent) |
DBObject |
ReferenceID.resolveInParentObject(DBObject parent) |
DBObject |
TemporaryObjectID.resolveOriginalID()
Deprecated.
use
TemporaryObjectID.getOriginalObject() which does not throw
DBException. |
DBObject |
DBReferenceID.resolveReference(Database db)
|
DBObject |
ReferenceID.resolveReference(Database db)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static java.util.Iterator<? extends DBObject> |
DBObjectIterator.createIterator(DBObjectProvider[] pros,
java.lang.String[] schemaObjectTypes,
java.lang.String[]... childTypeHeirachy)
Creates an Iterator of DBObjects for a specific type heirachy of child
objects.
|
static java.util.Iterator<? extends DBObject> |
DBObjectIterator.createIterator(DBObject parent,
java.lang.String[]... childTypeHeirachy)
Creates an iterator of the children of the given parent object using the
childTypeHeirachy to restrict the objects returned.
|
static java.util.Collection<DBObject> |
DBUtil.findUsagesIn(DBObject used,
DBObject searchRoot)
Looks for usages of the given "used" object within the owned object
heirachy of the given search object.
|
static java.util.Collection<DBObject> |
DBUtil.getExistingOwnedObjects(DBObject obj)
Gets the existing owned objects (children) of the given object, without
lazily loading (or deriving) any extra child objects.
|
static java.util.Comparator<DBObject> |
DBUtil.getNameComparator()
Returns a Comparator that will compare DBObjects by name first, and then
by type.
|
java.util.Collection<DBObject> |
CascadeRequiredException.getObjects() |
java.util.Map<DBObject,DBObjectChange> |
DBObjectChange.getOwnedObjectsChanged()
Deprecated.
|
static java.util.Collection<Tuple<DBObjectID,DBObject>> |
DBUtil.getReferenceIDsAndReferers(DBObject obj,
boolean recurse,
DBUtil.IDQuery query,
java.lang.String... types)
Collects all the reference ID properties for the given object and its
children and returns them after filtering as required.
|
static java.util.Comparator<DBObject> |
DBUtil.getTypeComparator()
Returns a Comparator that will compare DBObjects by type first, and then
by name.
|
Modifier and Type | Method and Description |
---|---|
void |
ReferenceID.addChildObjectName(DBObject obj) |
static boolean |
DBUtil.areNamesAndTypesEqual(DBObject obj1,
DBObject obj2)
Convinience method to check whether the names and types of two objects
are the same.
|
boolean |
DatabaseDescriptor.areNamesEqual(DBObject obj1,
DBObject obj2)
Tests whether the two objects have the same name.
|
SystemObject |
CascadeManager.cascadeDelete(DBObject deleted,
SystemObject referer)
Deprecated.
- cascade is automatic in providers that support it
|
SystemObject |
CascadeManager.cascadeDelete(DBObject deleted,
SystemObject referer,
boolean copyIfCascadeRequired)
Deprecated.
- cascade is automatic in providers that support it
|
static void |
DBUtil.cascadeInternalRename(SystemObject sysObj,
DBObject child,
java.lang.String oldName,
java.lang.String newName,
DBObjectProvider pro)
Cascades the rename of a child object internally to its top level
parent.
|
int |
DBUtil.compare(DBObject o1,
DBObject o2)
Compares the two objects, if they are both DBObjects.
|
static java.lang.String |
AbstractDBObjectProvider.convertObject(DBObject obj)
Converts a DBObject into a String representation of the object name.
|
DDL<oracle.javatools.db.ora.ddl.OracleDDLType> |
Ddl.convertToNew(DBObject obj)
Deprecated.
|
protected void |
IDPolicy.copyID(DBObject original,
DBObject copy)
The copyTo implementation on DBObject calls this method to create an ID
for the copy, and set it.
|
protected <T> T |
AbstractDBObject.copyObject(T value,
DBObject copy,
IDPolicy idPolicy)
Recursive function that can copy all objects supported as properties in the
API.
|
static <T> T |
DBUtil.copyPropertyValue(T value,
DBObject orig,
DBObject copy,
IDPolicy idPolicy)
Copies a property value from an original DBObject so that it can be set
on a copy of that object.
|
DBObject |
AbstractDBObject.copyTo(DBObject target,
boolean temporaryCopy) |
DBObject |
DBObject.copyTo(DBObject target,
boolean temporaryCopy)
Copies the state of this object to another instance.
|
protected DBObject |
AbstractDBObject.copyTo(DBObject target,
DBObject copyParent,
IDPolicy idPolicy)
Internal copy method used by the API to perform copy operations.
|
DBObject |
AbstractDBObject.copyTo(DBObject target,
IDPolicy idPolicy) |
DBObject |
DBObject.copyTo(DBObject target,
IDPolicy idPolicy)
Copies the state of this object to another instance.
|
protected void |
AbstractBuildableObject.copyToImpl(AbstractDBObject copy,
DBObject copyParent,
IDPolicy idPolicy) |
protected void |
AbstractDBObject.copyToImpl(AbstractDBObject copy,
DBObject copyParent,
IDPolicy idPolicy)
Implementation method for making a copy of this object.
|
protected void |
CheckConstraint.copyToImpl(AbstractDBObject copy,
DBObject copyParent,
IDPolicy idPolicy) |
protected void |
Index.copyToImpl(AbstractDBObject copy,
DBObject copyParent,
IDPolicy idPolicy) |
protected BaseObjectID |
DBObjectFactory.createID(DBObject obj)
Creates a new BaseObjectID for the given object.
|
static DBObjectID |
TemporaryObjectID.createID(DBObject obj)
Creates a new DBObjectID pointing to a specific object.
|
static DBObjectID |
TemporaryObjectID.createID(DBObject obj,
DBObject original)
Creates a new DBObjectID pointing to a specific object.
|
protected BaseObjectID |
DBObjectFactory.createID(DBObject obj,
DBObjectID parent)
Creates a new BaseObjectID for the given object.
|
static java.util.Iterator<? extends DBObject> |
DBObjectIterator.createIterator(DBObject parent,
java.lang.String[]... childTypeHeirachy)
Creates an iterator of the children of the given parent object using the
childTypeHeirachy to restrict the objects returned.
|
protected void |
DBObjectFactory.ensureBaseInfo(BaseObjectID id,
DBObject obj,
boolean forceName) |
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.
|
DerivedPropertyBuilder |
DBObjectFactory.ensureDerivedPropertyBuilder(DBObject obj)
If the given object is buildable, and the provider has a derived
property builder for that class of object then this will ensure that
the object has a derived property builder set from this factory's
provider.
|
DerivedPropertyBuilder |
DBObjectFactory.ensureDerivedPropertyBuilder(DBObject obj,
boolean recurse)
If the given object is buildable, and the provider has a derived
property builder for that class of object then this will ensure that
the object has a derived property builder set from this factory's
provider.
|
DBObjectID |
DBObjectFactory.ensureID(DBObject obj,
boolean recurse,
boolean forceNames)
Checks that the given object has an ID that is set up for the factory's
provider.
|
static void |
DBUtil.ensureObjectBuilt(DBObject object,
java.lang.String... props)
Ensures that the given object is loaded from its DBObjectProvider.
|
static DBObject |
DBUtil.findChildByName(DBObject parent,
java.lang.String property,
java.lang.String childName,
boolean searchOriginal,
DBObjectProvider pro)
Finds a child object, owned by the given parent object, whose name
matches the given childName.
|
static DBObject |
DBUtil.findChildByName(DBObject parent,
java.lang.String property,
java.lang.String childName,
DBObjectProvider pro)
Finds a child object, owned by the given parent object, whose name
matches the given childName.
|
static <T extends DBObject> |
DBUtil.findChildInCopy(DBObject orig,
DBObject copy,
T origChild)
Given a child of an original object, finds the matching child of the copy
using the TemporaryObjectIDs in the copy.
|
static <T extends DBObject> |
DBUtil.findChildren(DBObject obj,
java.lang.Class<T> clz)
Finds owned objects of the given class under the given object.
|
static DBObject |
DBUtil.findOwnedObjectInHierarchy(DBObject top,
DBObjectID find)
Searches for an object in the whole hierarchy underneath top that has
the given id.
|
static <T extends DBObject> |
DBUtil.findParentOfType(DBObject child,
java.lang.Class<T> clz)
Search the parent heirachy of the given object (including the given object)
and if an object is found that is of the given type, it is returned.
|
java.util.Map<PropertyInfo,java.lang.Object> |
CascadeManager.findPropertyReferences(DBObject obj,
DBObjectID reference)
Finds the property/properties that reference the given ID on the given
object.
|
java.util.Collection<DBObjectID> |
CascadeManager.findReferers(DBObject obj,
DBObjectID to,
java.util.Collection<DBObjectID> refdBy,
boolean topLevel)
Recursively builds up referers to the given object.
|
static java.util.Collection<DBObject> |
DBUtil.findUsagesIn(DBObject used,
DBObject searchRoot)
Looks for usages of the given "used" object within the owned object
heirachy of the given search object.
|
static DBObjectBuilder |
DBUtil.getDBObjectBuilder(DBObject obj,
java.lang.String prop)
Gets the DBObjectBuilder that the given object would use to build a
property.
|
static java.util.Collection<DBObject> |
DBUtil.getExistingOwnedObjects(DBObject obj)
Gets the existing owned objects (children) of the given object, without
lazily loading (or deriving) any extra child objects.
|
static java.util.Collection<DBObjectID> |
DBUtil.getExistingReferenceIDs(DBObject obj)
Gets the reference ids that are property values of the given object,
without lazily loading (or deriving) any extra child objects.
|
java.lang.Object |
DBObjectFactory.getExternalDefaultValue(DBObject obj,
java.lang.String propertyName)
Deprecated.
|
static java.util.Map<java.lang.String,java.lang.Object> |
DBUtil.getFrozenProperties(DBObject obj)
Gets the properties map for a given object frozen in its current state.
|
static java.lang.String |
DBUtil.getFullyQualifiedName(DBObject obj)
Returns the fully qualified name of the given object by prepending the
parent's name (if one exists) followed by a dot.
|
static java.lang.String |
DBUtil.getFullyQualifiedName(DBObject obj,
boolean incSchema)
Returns the fully qualified name of the given object, optionally with the
schema prepended.
|
java.lang.Object |
DBObjectFactory.getInitialValue(DBObject obj,
java.lang.String propertyName) |
protected java.lang.String |
DBObjectFactory.getName(DBObject obj,
boolean forceNames) |
protected abstract DBObjectID |
IDPolicy.getNewID(DBObject original,
DBObject copy)
Given the original object, the copy is given an ID depending on the
policy.
|
protected DBObjectID |
IDPolicy.SameIDPolicy.getNewID(DBObject original,
DBObject copy) |
protected DBObjectID |
IDPolicy.DefaultIDPolicy.getNewID(DBObject original,
DBObject copy) |
protected DBObjectID |
IDPolicy.DBLinkIDPolicy.getNewID(DBObject original,
DBObject copy) |
protected DBObjectID |
TemporaryObjectID.TemporaryIDPolicy.getNewID(DBObject original,
DBObject copy) |
protected DBObjectID |
TemporaryObjectID.CopyBackPolicy.getNewID(DBObject original,
DBObject copy) |
protected DBObjectID |
DBObjectFactory.getObjectID(DBObject obj)
As an object's ID should be immutable, DBObject.getID() returns a copy of
the underlying ID.
|
static DBObjectID |
DBUtil.getOriginalID(DBObject dbo)
Returns the original DBObjectID of a copied DBObject.
|
static java.lang.String |
DBUtil.getParentProperty(DBObject object)
Gets the property on the parent object that this child is set on.
|
static java.lang.String |
DBUtil.getPropertyPath(DBObject parent,
DBObject child)
Gets the property path that links the two objects in their hierarchy.
|
protected java.util.Collection<DBObjectID> |
DBObjectFactory.getReferenceIDs(DBObject obj)
Gets the existing referenceIDs for the given object without building
any properties that are yet to be built.
|
static java.util.Collection<DBObjectID> |
DBUtil.getReferenceIDs(DBObject obj,
boolean recurse,
DBUtil.IDQuery query,
java.lang.String... types)
Collects all the reference ID properties for the given object and its
children and returns them after filtering as required.
|
static java.util.Collection<DBObjectID> |
DBUtil.getReferenceIDs(DBObject obj,
DBUtil.IDQueryCriteria crit)
Collects all the reference ID properties for the given object and its
children and returns them after filtering as required.
|
static java.util.Collection<Tuple<DBObjectID,DBObject>> |
DBUtil.getReferenceIDsAndReferers(DBObject obj,
boolean recurse,
DBUtil.IDQuery query,
java.lang.String... types)
Collects all the reference ID properties for the given object and its
children and returns them after filtering as required.
|
DBObjectID[] |
SchemaObjectManager.getReferers(DBObject obj)
Deprecated.
use
SchemaObjectManager.listReferers(DBObject) - this method simply
returns an empty array. |
static Schema |
DBUtil.getSchema(DBObject obj)
Recurses up the tree of parents for this DBObject until it finds a
SchemaObject and if found returns that SchemaObject's Schema.
|
static java.lang.String |
DBUtil.getSchemaName(DBObject obj)
Recurses up the tree of parents for this DBObject until it finds a
SchemaObject, and returns that SchemaObject's Schema's name.
|
static SchemaObject |
DBUtil.getSchemaObject(DBObject obj)
Recurses up the tree of parents for this DBObject, and if the top object
in the chain is a SchemaObject, it is returned.
|
static SystemObject |
DBUtil.getSystemObject(DBObject obj)
Recurses up the tree of parents for this DBObject, and if the top object
in the chain is a SystemObject, it is returned.
|
static java.lang.String |
TemplateExpander.getTemplateObjectName(DBObject object) |
static java.util.Map<DBObjectID,DBObjectID> |
DBUtil.getTemporaryIDMap(DBObject... objs)
Gets a Map of all the TemopraryObjectIDs in the given object(s)
hierarchy.
|
java.lang.String |
AbstractDBObjectProvider.getUniqueName(java.lang.String type,
DBObject contextObject,
java.lang.String base)
Returns a unique name for an object of given type within
contextObject
using base name. |
java.lang.String |
DBObjectProvider.getUniqueName(java.lang.String type,
DBObject contextObject,
java.lang.String base)
Retrieves a unique name for an object of a specific type.
|
java.lang.String |
AbstractDBObjectProvider.getUniqueName(java.lang.String type,
DBObject contextObject,
java.lang.String base,
java.util.Collection<java.lang.String> bannedNames)
Returns a unique name for an object of given type within
contextObject
using base name. |
java.lang.String |
DBObjectProvider.getUniqueName(java.lang.String type,
DBObject contextObject,
java.lang.String base,
java.util.Collection<java.lang.String> bannedNames)
Retrieves a unique name for an object of a specific type.
|
static DBObject |
DBUtil.getUppermostParent(DBObject obj)
Gets the top most object in the parent chain for the given object.
|
protected void |
AbstractDBObject.includeOwnedObject(java.util.Collection<DBObject> objs,
DBObject obj,
java.lang.String... types) |
protected boolean |
AbstractDBObject.includesType(DBObject obj,
java.lang.String... types)
Use to check the types parameter when implementing the getOwnedObjectsImpl
method.
|
void |
TemplateExpander.Initialiser.initialiseObject(DBObject template,
DBObject object) |
static DBObjectChange |
DBUtil.invokeCompoundChange(DBObject obj,
java.lang.Runnable runnable,
boolean fireEvents)
Invokes the given Runnable, and if any property changes are made to obj
by the Runnable the changes are consolidated in to one change event.
|
boolean |
AbstractDBObjectProvider.isEditable(DBObject object) |
boolean |
DBObjectProvider.isEditable(DBObject object)
Tests whether or not the object can be edited.
|
static boolean |
DBUtil.isInternalRef(DBObjectID ref,
DBObject obj)
Returns true if the given DBObjectID is referencing an object that is under
the same parent heirachy as the given DBObject.
|
static boolean |
TemplateExpander.isPendingObject(DBObject object) |
abstract java.util.Collection<DBObjectID> |
CascadeManager.listReferers(DBObject obj)
Gets the ids of the DBObjects who directly reference the given object.
|
java.util.Collection<DBObjectID> |
SchemaObjectManager.listReferers(DBObject obj)
Lists all the references to the given object and its children.
|
static void |
DBLog.logDifferences(DBObject obj1,
DBObject obj2,
DBObjectProvider pro)
Deprecated.
with no replacement
|
void |
DatabaseDescriptor.makeNameValidAndUnique(DBObject object,
DBObjectProvider pro)
Deprecated.
Use getUniqueName() in DBObjectProvider instead
|
static boolean |
DBUtil.needsBuilding(DBObject obj)
Tests whether the given object needs building - i.e.
|
static boolean |
DBUtil.needsBuilding(DBObject obj,
java.lang.String property)
Tests whether the given object property needs building - i.e.
|
static boolean |
DBUtil.needsDerivedPropertiesBuilding(DBObjectProvider pro,
DBObject obj)
INTERNAL ONLY - this is not a finished API yet.
|
protected <D extends DBObject> |
AbstractDBObjectBuilder.newObject(java.lang.Class<? extends D> clz,
DBObject parent,
java.lang.String name)
Creates a new object of the given class using the provider's object
factory.
|
<T extends DBObject> |
DBObjectFactory.newObject(java.lang.Class<T> clz,
DBObject parent)
Creates a new
DBObject of the specified class using the default
template if one exists, and with properties initialized according to all
registered PropertyInitializers . |
<T extends DBObject> |
DBObjectFactory.newObject(java.lang.Class<T> clz,
DBObject parent,
boolean useDefaultTemplate,
boolean initialiseProperties)
Creates a new
DBObject of the specified class optionally using the
default template if one exists, and with properties initialized according
to all registered PropertyInitializers . |
<T extends DBObject> |
DBObjectFactory.newObject(java.lang.Class<T> clz,
DBObject parent,
java.lang.String name)
Creates a new
DBObject of the specified class optionally using the
default template if one exists, and with properties initialized according
to all registered PropertyInitializers . |
<T extends DBObject> |
DBObjectFactory.newObject(java.lang.Class<T> clz,
DBObject parent,
java.lang.String name,
boolean useDefaultTemplate,
boolean initialiseProperties)
Creates a new
DBObject of the specified class optionally using the
default template if one exists, and with properties initialized according
to all registered PropertyInitializers . |
<T extends DBObject> |
DBObjectFactory.newObject(T template,
DBObject parent)
Creates a new object using the given template with properties initialized
according to all registered
PropertyInitializers , |
protected void |
SchemaObjectManager.registerDependency(SystemObject key,
DBObject referer,
DBObjectID referedTo)
Registers a DBObject -> DBObject dependency (e.g.
|
boolean |
AbstractDBObject.removeOwnedObject(DBObject child) |
boolean |
DBObject.removeOwnedObject(DBObject child)
Removes the given child from this object.
|
static boolean |
DBUtil.replaceAllIDs(DBObject obj,
java.util.Map<? extends DBObjectID,? extends DBObjectID> idMap)
Replaces the all IDs in the given object and all child objects
with the given key/value mapping.
|
static boolean |
DBUtil.replaceReferenceIDs(DBObject obj,
java.util.Map<? extends DBObjectID,? extends DBObjectID> idMap)
Replaces the referencing IDs in the given object and all child objects
with the given key/value mapping.
|
static void |
DBUtil.resetTemporaryCopy(DBObject copy,
DBObject newOrig,
DBObject newOrigPar,
DBObjectProvider pro)
Use to reset a temporary copy with a new original object hierarchy.
|
DBObject |
AbstractDBObjectID.resolveInParentObject(DBObject parent)
Used by resolvefromParent to find the object corresponding to this ID in
the given parent object.
|
DBObject |
BaseObjectID.resolveInParentObject(DBObject parent) |
DBObject |
ReferenceID.resolveInParentObject(DBObject parent) |
protected boolean |
ReferenceID.resolvesTo(DBObject obj)
Tests whether this ReferenceID would resolve to the given object (i.e.
|
void |
AbstractDBObjectProvider.setDefaultTemplateForType(java.lang.String type,
DBObject template)
Sets the default template object for the given type.
|
void |
DBObjectProvider.setDefaultTemplateForType(java.lang.String type,
DBObject template)
Sets the default template object for the given type.
|
static void |
TemporaryObjectID.setID(DBObject obj,
boolean recurse)
If the given object doesn't have an ID, this sets a new
TemporaryObjectID on the object.
|
void |
AbstractChildBuildableObject.setParent(DBObject parent) |
void |
AbstractChildDBObject.setParent(DBObject parent) |
void |
ChildDBObject.setParent(DBObject parent)
Sets the parent of this object.
|
void |
IdentityColumnProperties.setParent(DBObject parent) |
void |
Index.setParent(DBObject par)
Sets the parent Table of this Index.
|
void |
DBException.setRelatedObjects(DBObject... objs)
Sets the objects that are related to this exception - i.e.
|
static void |
DBUtil.updateObjectAndIDs(DBObject oldVersion,
DBObject newVersion)
Copys the newVersion to the old version and updates the oldVersion with
the IDs from the newVersion.
|
protected boolean |
DBObjectFactory.useIdentifierBasedIDs(DBObject obj)
Returns true if the given object should be given an IdentifierBasedID
rather than a NameBasedID by the default
DBObjectFactory.createID(oracle.javatools.db.DBObject)
implementation. |
void |
AbstractDBObjectProvider.validateObject(DBObject object)
Validates the given object using the DBObjectValidator registered against
that object's type.
|
void |
DBObjectProvider.validateObject(DBObject object)
Checks to see if the object is valid.
|
void |
AbstractDBObjectProvider.validateObject(DBObject original,
DBObject update)
Validates the given object update using the DBObjectValidator registered against
that object's type.
|
void |
DBObjectProvider.validateObject(DBObject original,
DBObject updated)
Checks to see if the object update is valid.
|
void |
AbstractDBObjectProvider.validateObject(DBObject original,
DBObject update,
java.lang.String property)
Deprecated.
|
void |
DBObjectProvider.validateObject(DBObject original,
DBObject updated,
java.lang.String property)
Deprecated.
use validateObjectProperty(DBObject,DBObject,Object)
|
void |
AbstractDBObjectProvider.validateObject(DBObject object,
java.lang.String property)
Deprecated.
|
void |
DBObjectProvider.validateObject(DBObject object,
java.lang.String property)
Deprecated.
use validateObjectProperty(DBObject,Object)
|
void |
AbstractDBObjectProvider.validateObjectProperty(DBObject original,
DBObject updated,
java.lang.Object property)
Deprecated.
|
void |
DBObjectProvider.validateObjectProperty(DBObject original,
DBObject updated,
java.lang.Object property)
|
void |
AbstractDBObjectProvider.validateObjectProperty(DBObject original,
DBObject update,
java.lang.String property) |
void |
DBObjectProvider.validateObjectProperty(DBObject original,
DBObject updated,
java.lang.String property)
Checks to see if the updated children of a given object are valid.
|
void |
AbstractDBObjectProvider.validateObjectProperty(DBObject object,
java.lang.Object property)
Deprecated.
|
void |
DBObjectProvider.validateObjectProperty(DBObject object,
java.lang.Object property)
Deprecated.
|
void |
AbstractDBObjectProvider.validateObjectProperty(DBObject object,
java.lang.String property) |
void |
DBObjectProvider.validateObjectProperty(DBObject object,
java.lang.String property)
Checks to see if the children of a given object are valid.
|
void |
AbstractDBObjectProvider.validateUniqueName(DBObject object,
DBObject contextObject) |
void |
DBObjectProvider.validateUniqueName(DBObject object,
DBObject contextObject)
Validates that a name is not used within a context DBObject, and throws
NameInUseException if it is.
|
void |
AbstractDBObjectProvider.validateUniqueName(java.lang.String type,
DBObject contextObject,
java.lang.String name)
Validates that a name is not used within a context DBObject, and throws
NameInUseException if it is.
|
void |
DBObjectProvider.validateUniqueName(java.lang.String type,
DBObject contextObject,
java.lang.String internalName)
Validates that a name is not used within a context DBObject, and throws
NameInUseException if it is.
|
Modifier and Type | Method and Description |
---|---|
void |
DBObjectFactory.ensureIDs(java.util.Collection<? extends DBObject> objs,
Difference diff)
Checks that all of the given objects that are part of a transaction
have an ID that is set up for the factory's provider.
|
static java.lang.String[] |
DBUtil.filterObjectTypes(java.lang.String[] objectTypes,
java.lang.Class<? extends DBObject> clz)
Filters the given array of types so that it only contains types whose
DBObject implementations are subclasses of the given class.
|
protected void |
AbstractBuildableObject.getOwnedObjectsImpl(java.util.Collection<DBObject> c,
java.lang.String... types)
Implementation first checks that the object has been built - then returns
the collection from suprt.getOwnedObjectsImpl().
|
protected void |
AbstractDBObject.getOwnedObjectsImpl(java.util.Collection<DBObject> objs,
java.lang.String... types)
Used by all the final children methods.
|
protected void |
Relation.getOwnedObjectsImpl(java.util.Collection<DBObject> c,
java.lang.String... types) |
protected void |
AbstractDBObject.includeOwnedObject(java.util.Collection<DBObject> objs,
DBObject obj,
java.lang.String... types) |
Constructor and Description |
---|
AbstractChildBuildableObject(java.lang.String name,
DBObject parent) |
AbstractChildDBObject(java.lang.String name,
DBObject parent) |
BaseObjectID(DBObject obj,
AbstractDBObjectProvider provider) |
BaseObjectID(DBObject obj,
DBObjectID parent) |
CascadeRequiredException(DBObject obj)
Constructor to use when the list of dependents is unknwon.
|
CascadeRequiredException(DBObject obj,
java.util.Collection<DBObjectID> deps)
The given object cannot be deleted because the list of dependent objects
exist.
|
CascadeRequiredException(DBObject obj,
java.lang.String msg)
Constructor to use when the list of dependents is unknwon.
|
DBException(DBObject obj,
java.lang.String msg)
Constructs a new DBException on the specified object with the
specified message.
|
DBException(DBObject obj,
java.lang.String msg,
java.lang.Throwable cause)
Constructs a new DBException on the specified object with the
specified message and wrapping the specified throwable
|
DBException(DBObject obj,
java.lang.Throwable cause)
Constructs a new DBException on the specified object wrapping the specified
throwable
|
DBObjectChange(DBObject obj)
Deprecated.
|
DBObjectChange(DBObject obj,
DBObjectProvider pro)
Deprecated.
|
DBObjectIterator(DBObject parent)
Creates a new DBObjectIterator that will search for children of the given
object.
|
DBSQLException(DBObject obj,
java.lang.String sql,
java.sql.SQLException sqe) |
DBSQLException(DBObject obj,
java.lang.String sql,
java.lang.String msg,
java.sql.SQLException sqe) |
IdentifierBasedID(DBObject obj,
java.lang.Object identifier,
AbstractDBObjectProvider pro) |
InvalidNameException(DBObject object,
java.lang.String message) |
InvalidNameException(DBObject object,
java.lang.String message,
java.lang.String title)
Deprecated.
|
NameBasedID(DBObject obj,
AbstractDBObjectProvider pro) |
NameBasedID(DBObject obj,
DBObjectID parent) |
NameInUseException(DBObject obj)
Constructs a NameInUseException to indicate that the given object
is invalid because its name is already in use.
|
NameInUseException(DBObject object,
DBObject existing)
Constructs a NameInUseException for a name clash with a known existing
object in the DBObjectProvider.
|
NameInUseException(DBObject object,
java.lang.String existingName,
java.lang.String existingType)
Constructs a NameInUseException for the given object that clashes with
an existing object in the DBObjectProvider.
|
NoCascadeRequiredException(DBObject obj)
Deprecated.
|
ReferenceID(DBObject obj)
Creates a ReferenceID populated with details from the given object
(including a parent ID to match the parent of the obj if one exists).
|
ReferenceID(DBObject obj,
DBObjectProvider pro)
Creates a ReferenceID to the give object, but sets the new reference up
with the given provider.
|
Constructor and Description |
---|
CascadeRequiredException(java.util.Collection<? extends DBObject> objs,
java.util.Collection<DBObjectID> deps)
Creates a cascade exception for a large operation.
|
DBObjectIterator(java.util.Iterator<? extends DBObject> parentIter)
Creates a new DBObjectIterator over all the objects in the parent Iterator.
|
NameInUseException(java.util.Collection<? extends DBObject> objs)
Constructs a NameInUseException to indicate that all the given objects
cannot be created because objects already exists with the same names.
|
Modifier and Type | Interface and Description |
---|---|
interface |
DataType
Interface defines a database datatype (VARCHAR, INTEGER etc) abstractly
in terms of its attributes (size, precision, scale etc).
|
Modifier and Type | Class and Description |
---|---|
class |
DataTypeAttribute
A data type can have a number of attributes that define its behaviour -
size, precision, scale etc.
|
class |
DataTypeSynonym
DataType implementation that delegates all calls to an underlying DataType
that it is a "synonym" for.
|
class |
DataTypeUsage
To "use" a DataType is to refer to it by ID and store values for any
attributes that DataType may have (precision, scale, size etc).
|
class |
PredefinedDataType
Default DataType implementation for simple (built-in) data types in a
database.
|
class |
PredefinedDataTypeUsage
Deprecated.
|
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 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 void |
DataTypeSynonym.copyToImpl(AbstractDBObject other,
DBObject copyParent,
IDPolicy idPolicy) |
protected void |
DataTypeUsage.copyToImpl(AbstractDBObject target,
DBObject copyParent,
IDPolicy idPolicy) |
protected void |
DataTypeCache.lazyObjectBuilt(DBObject obj) |
void |
DataType.validateDefaultValue(java.lang.Object defaultValue,
DataTypeUsage dataTypeUsage,
DBObject dbObject)
Deprecated.
validation is done by the ColumnValidator
|
void |
DataTypeSynonym.validateDefaultValue(java.lang.Object defaultValue,
DataTypeUsage dataTypeUsage,
DBObject dbObject)
Deprecated.
|
void |
PredefinedDataType.validateDefaultValue(java.lang.Object defaultValue,
DataTypeUsage dataTypeUsage,
DBObject dbObject)
Deprecated.
validation is done by the ColumnValidator
|
void |
DataType.validateUsage(DataTypeUsage dataTypeUsage,
DBObject dbObject)
Deprecated.
validation is done by the DataTypeUsageValidator
|
void |
DataTypeSynonym.validateUsage(DataTypeUsage dataTypeUsage,
DBObject dbObject)
Deprecated.
|
void |
PredefinedDataType.validateUsage(DataTypeUsage dataTypeUsage,
DBObject dbObject)
Deprecated.
validation is done by the DataTypeUsageValidator
|
Constructor and Description |
---|
DataTypeValidationException(DBObject context,
java.lang.String dataType,
java.lang.String message)
Deprecated.
|
DefaultValueValidationException(DBObject context,
java.lang.String dataType,
java.lang.String message)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
DBObject |
UnsupportedDDLException.getObject()
Gets the object that the ddl generation failed for.
|
Modifier and Type | Method and Description |
---|---|
protected DDL |
TokenDDLGenerator.createDDL(DDLOptions options,
java.lang.String code,
DBObject obj,
DDLType ddlType)
Creates a new DDL object with the given ddlCode by processing the given
code using a TokenProcessor and using the resulting String as the DDL
string.
|
java.lang.String |
DDLType.createPrompt(DBObject obj,
java.lang.String stmt)
Creates a prompt String appropriate to the supported database's command
line client (or equivalent) that can be prepended to the given statement
before execution.
|
Difference |
TokenContext.findUpdateDifference(DBObject obj)
If we are processing the update of an object, this finds a Difference
that shows the changes for the given object.
|
java.util.Collection |
TokenDDLGenerator.getAllowedPropertyValues(DBObject originalObject,
DBObject updatedObject,
java.lang.String property) |
DDL<T> |
DDLGenerator.getCreateDDL(DDLOptions options,
DBObject... objects)
Gets CREATE statements for the given objects.
|
DDL |
CreateDDLGenerator.getCreateDDL(DDLOptions options,
DBObject obj)
Gets the DDL to create the given object in the database.
|
java.lang.String |
TokenDDLGenerator.getDDLFragment(DBObject obj)
Gets a fragment of DDL from this generator for the given child object.
|
DDL<T> |
DDLGenerator.getDeleteDDL(DDLOptions options,
DBObject... objects)
Gets DROP statements for the given objects.
|
DDL |
DropDDLGenerator.getDropDDL(DDLOptions options,
DBObject obj)
Gets the DDL to DROP the given object from the database.
|
DDL<T> |
DDLGenerator.getUndeleteDDL(DDLOptions options,
DBObject... objects)
Gets statements to undelete (e.g.
|
DDL |
UndeleteDDLGenerator.getUndeleteDDL(DDLOptions options,
DBObject obj)
Gets the DDL to DROP the given object from the database.
|
Constructor and Description |
---|
DDL(DBObject obj)
Creates a new DDL object which will contain statements to perform actions
relating to the given object.
|
UnsupportedDDLException(java.lang.String string,
DBObject object)
The given message is automatically formatted with the object type and name
(in that order) using MessageFormat.
|
Modifier and Type | Class and Description |
---|---|
class |
DBObjectComparator<T extends DBObject>
Comparator for DBObjects.
|
Modifier and Type | Method and Description |
---|---|
DBObject |
DBObjectChange.getDBObject()
Gets the object this change has been on.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<DBObject> |
DBObjectChange.getOwnedObjectsAdded()
Returns any owned objects added to the DBObject as a result of the
change.
|
java.util.List<DBObject> |
DBObjectChange.getOwnedObjectsRemoved()
Returns any owned objects removed from the DBObject as a result
of the change.
|
java.util.Map<DBObject,DBObjectChange> |
DBObjectChange.getOwnedObjectsUpdated()
Returns any changes that have happened to any owned objects.
|
Modifier and Type | Method and Description |
---|---|
static void |
DBObjectChange.fireChildrenAdded(DBObject obj,
java.util.List added)
Fires a message that children have been added to the given object.
|
static void |
DBObjectChange.fireChildrenRemoved(DBObject obj,
java.util.List removed)
Fires a message that children have been removed from the given object.
|
static void |
DBObjectChange.fireObjectUpdated(DBObject obj)
Fires an empty change message on the given object.
|
static void |
DBObjectChange.fireObjectUpdated(DBObject obj,
java.util.List<DBObject> added,
java.util.List<DBObject> removed,
java.util.Map<java.lang.String,java.beans.PropertyChangeEvent> props)
Fires a compound event with added/removed children and changed
properties.
|
static void |
DBObjectChange.firePropertiesChanged(DBObject obj,
java.util.Map<java.lang.String,java.beans.PropertyChangeEvent> props)
Fires a message that the given properties have been changed on an
object.
|
static void |
DBObjectChange.firePropertyChanged(DBObject obj,
java.beans.PropertyChangeEvent... pces)
Fires a message that the given properties have been changed on an
object.
|
DBObjectChange |
DBObjectChange.getOwnedObjectUpdate(DBObject child)
Gets the change for a particular owned DBObject.
|
protected abstract void |
DBObjectPropertyListener.propertyChanged(DBObject obj,
java.lang.String property,
java.beans.PropertyChangeEvent pce)
Called whenever a DBObjectChange event is intercepted that includes a
change for one of the properties we are listening for.
|
Modifier and Type | Method and Description |
---|---|
static void |
DBObjectChange.fireObjectUpdated(DBObject obj,
java.util.List<DBObject> added,
java.util.List<DBObject> removed,
java.util.Map<java.lang.String,java.beans.PropertyChangeEvent> props)
Fires a compound event with added/removed children and changed
properties.
|
static void |
DBObjectChange.fireObjectUpdated(DBObject obj,
java.util.List<DBObject> added,
java.util.List<DBObject> removed,
java.util.Map<java.lang.String,java.beans.PropertyChangeEvent> props)
Fires a compound event with added/removed children and changed
properties.
|
Constructor and Description |
---|
DBObjectChange(DBObject obj,
DBObjectProvider pro) |
Modifier and Type | Method and Description |
---|---|
protected static DBSQLException |
StatementWrapper.createDBSQLException(Database db,
DBObject obj,
java.lang.String text,
java.sql.SQLException sqe)
Creates a DBSQLException to wrap the encountered SQLException.
|
protected DBSQLException |
StatementWrapper.createDBSQLException(DBObject obj,
java.lang.String text,
java.sql.SQLException sqe)
Creates a DBSQLException to wrapthe encountered SQLException.
|
void |
QueryWrapper.setContextObject(DBObject obj)
Sets a context DBObject that the statement is being executed for.
|
void |
StatementWrapper.setContextObject(DBObject obj)
Sets a context DBObject that the statement is being executed for.
|
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.
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection |
DelegateDDLGenerator.getAllowedPropertyValues(DBObject originalObject,
DBObject updatedObject,
java.lang.String property) |
java.util.Collection<java.lang.String> |
DelegateDDLGenerator.getAllowedReferenceParentTypes(DBObject obj,
java.lang.String property) |
java.util.Collection<java.lang.String> |
DelegateDDLGenerator.getAllowedReferenceTypes(DBObject object,
java.lang.String property) |
DDL |
DelegateDDLGenerator.getCreateDDL(DDLOptions options,
DBObject... objects) |
DDL |
DelegateDDLGenerator.getDeleteDDL(DDLOptions options,
DBObject... objects) |
java.lang.Object |
DelegateDDLGenerator.getImplicitDefaultValue(DBObject obj,
java.lang.String property) |
Nullable.NullBehaviour |
DelegateDDLGenerator.getNullBehaviour(DBObject originalObject,
DBObject updatedObject,
java.lang.String property) |
DDL |
DelegateDDLGenerator.getUndeleteDDL(DDLOptions options,
DBObject... objects) |
Modifier and Type | Method and Description |
---|---|
PropertyInfo |
DelegateDDLGenerator.findPropertyInfo(java.lang.Class<? extends DBObject> objClass,
java.lang.String prop) |
java.util.Map<java.lang.String,PropertyInfo> |
DelegateDDLGenerator.getPropertyInfos(java.lang.Class<? extends DBObject> objClass,
PropertyCriteria criteria) |
void |
DBObjectRegistry.registerClass(java.lang.String objType,
java.lang.Class<? extends DBObject> objClz)
Registers the given object type and class with the api's metadata
layer.
|
void |
DBObjectRegistry.registerClass(java.lang.String objType,
Thunk<java.lang.Class<? extends DBObject>> objClz)
Registers the given object type and class with the api's metadata
layer.
|
boolean |
DelegateDDLGenerator.supportsProperty(java.lang.Class<? extends DBObject> objClz,
java.lang.String prop) |
Modifier and Type | Class and Description |
---|---|
class |
HiveBucketProperties
Bean that encapsulates the properties specific to a Hive Bucketed Table.
|
class |
HivePartition
Bean that represents a partition in Hive.
|
class |
HivePartitionProperties
Bean to reprsent the partition model of a Hive table.
|
class |
HiveSkewProperties
Bean to represent the properties that control the skewing of a Hive table
or table partition.
|
class |
HiveStorageProperties
Collection of properties for a Table definition that are specific to the
Hive Metastore.
|
class |
TblProperty
Simple DBObject implementation for a key/value pair in a property map
(like TBLPROPERTIES or SERDEPROPERTIES).
|
Modifier and Type | Class and Description |
---|---|
class |
DatabaseLink
Model of a database DatabaseLink.
|
class |
Directory
Model of an Oracle Directory object.
|
class |
IndexPartition
Model of an Oracle index partition.
|
class |
Indextype |
class |
LOBDescriptor
LOBDescriptor encapsulates the partitioning properties of LOB and VARRAY
columns.
|
class |
MaterializedView
A MaterializedView represents a Materialized View in the database.
|
class |
MaterializedViewLog |
class |
OracleColumnProperties
DBObject that wraps all the properties that a Column can have that are
Oracle specific.
|
class |
OracleExternalTableProperties
This object represents the "external table clause" syntax for creating an
external table.
|
static class |
OracleExternalTableProperties.LocationSpecifier
The LOCATION clause lets you specify one or more external data sources.
|
class |
OracleIndexOrganizedTableProperties
Property object to hold the index organized specific properties for an IOT.
|
class |
OracleIndexPartitions
Model of the partitioning scheme on an Oracle index.
|
class |
OracleInMemoryColumnProperties
Child object that represents a component of the in-memory column clause
for a Table.
|
class |
OracleInMemoryProperties
Child object that represents Oracle Database In-Memory properties.
|
class |
OracleNestedTableProperties |
class |
OracleSQLQuery
Deprecated.
- folded in to SQLQuery
|
class |
OracleStorageProperties |
class |
OracleTablePartitions
OracleTablePartitions encapsulate the properties of an Oracle table's partitions
and subpartitions.
|
class |
OracleTableProperties
Extra properties for Oracle Tables
|
class |
OracleTablespaceProperties
Model of properties for an Oracle
Tablespace |
class |
RecycledObject
Model of an object that has been dropped and is now in the Oracle recycle
bin.
|
class |
TablePartition
TablePartition encapsulate the properties of an individual partition or subpartition.
|
class |
XMLSchema
Object to represent an XML Schema held in the database.
|
class |
XMLSchemaElement |
class |
XMLTypeColumnProperties |
Modifier and Type | Method and Description |
---|---|
static OracleTableProperties |
OracleTableProperties.findOrCreateOracleTableProperties(DBObject dbObject)
Static convenience method for getting OracleTableProperties property
|
static boolean |
LOBDescriptor.isLOBColumn(DBObjectID colID,
DBObject context)
Tests whether the datatype for the Column with the given ID is a LOB
type.
|
static boolean |
LOBDescriptor.isVARRAYColumn(DBObjectID colID,
DBObject context)
Tests whether the datatype for the Column with the given ID is a VARRAY
type.
|
Modifier and Type | Class and Description |
---|---|
class |
BigDataAccessParameter
SQLFragment that represents an access parameter for an Oracle "Big
Data" access driver.
|
class |
BigDataAccessParameters
SQLFragment that represents the access parameters for the Oracle "Big
Data" external table access drivers.
|
class |
BigDataField
Representation of a Big Data field object.
|
class |
BigDataFields
Object that represents the value of the com.oracle.bigdata.fields access
parameter.
|
class |
BigDataJsonArray
Array construct for use in big data access parameter values.
|
class |
BigDataJsonEntry
Entry (or element) construct for use in big data access parameter values.
|
class |
BigDataJsonObject
Object construct for use in big data access parameter values.
|
class |
BigDataTableProperties
Object that represents the value of the com.oracle.bigdata.tblproperties
access parameter.
|
class |
BigDataTableProperty
Representation of a big data "table property", which is a name/value
property pair.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
SXMLCommentGenerator.getComments(DBObject object) |
Modifier and Type | Interface and Description |
---|---|
interface |
PlSqlSourceObject
A PL/SQL Schema Object.
|
Modifier and Type | Class and Description |
---|---|
class |
DBObjectPlSqlFragment
Top-most PL/SQL specific superclass of all PL/SQL DBObject classes
in this package.
|
class |
Function
Representation of a PL/SQL Function.
|
class |
Package
Representation of a PL/SQL Package Spec
|
class |
PackageBody
Representation of a PL/SQL Package Body
|
class |
PlSqlAttribute
A representation of a Attribute within a
Type . |
class |
PlSqlBlock
When instantiated as a concrete class, this represents a PL/SQL Block.
|
class |
PlSqlCodeFragment
Any non whitespace/comment fragment of PL/SQL code
|
class |
PlSqlComment
Class representing a comment within PL/SQL.
|
class |
PlSqlDatatype
Representation of a PL/SQL Datatype such as a record, varray table etc.
|
class |
PlSqlDatum
An abstract representation of a PL/SQL object that may contain data, and as such
has a reference to a datatype or datatype usage
|
class |
PlSqlMethod
Representation of a method within a
Type . |
class |
PlSqlParameter
Representation of a parameter (argument) to any PL/SQL procedure, function
or method.
|
class |
PlSqlReference
A reference from some PL/SQL to another DBObject.
|
class |
PlSqlSchemaObject
Abstract superclass of all Schema level PL/SQL objects (ie
PlSqlSourceObjects )
other than Procedure and Function as they extend PlSqlSubProgram . |
class |
PlSqlSchemaObjectBody
Abstract superclass of
PackageBody and TypeBody . |
class |
PlSqlSchemaObjectSpec
|
class |
PlSqlStatement
A represtation of a PL/SQL statement, or compound construct that can be
used where a simple statement could (eg a block, if, loop etc).
|
class |
PlSqlSubProgram
A representation of a PL/SQL procedure or function.
|
class |
PlSqlVariable
A representation of a PL/SQL variable (or constant) defined at any scope
in a PL/SQL object.
|
class |
Procedure
Representation of a PL/SQL Procedure.
|
class |
Trigger
Representation of a Database Trigger
|
class |
Type
Representation of a PL/SQL Object Type.
|
class |
TypeBody
Representation of a Type Body
|
Modifier and Type | Method and Description |
---|---|
DBObject |
PlSqlBlock.findOwnedObject(DBObjectID id,
boolean strict) |
DBObject |
PlSqlBlock.findOwnedObject(DBObjectID id,
boolean strict) |
Modifier and Type | Method and Description |
---|---|
static java.util.List<DBObject> |
PlSqlUtilCore.getPlSqlFragmentReferers(PlSqlSourceObject so,
DBObjectID to)
|
static java.util.List<DBObject> |
PlSqlUtilCore.getPlSqlFragmentReferers(PlSqlSourceObject so,
DBObjectID to)
|
static java.util.List<DBObject> |
PlSqlUtilCore.getPlSqlFragmentReferers(PlSqlSourceObject so,
DBObjectID to,
DBObjectProvider pro)
Return a List of DBObjects within the PlSqlSourceObject which "may" reference the given DBObjectID.
|
static java.util.List<DBObject> |
PlSqlUtilCore.getPlSqlFragmentReferers(PlSqlSourceObject so,
DBObjectID to,
DBObjectProvider pro)
Return a List of DBObjects within the PlSqlSourceObject which "may" reference the given DBObjectID.
|
protected abstract java.util.List<DBObject> |
PlSqlUtilCore.getPlSqlFragmentReferersImpl(PlSqlSourceObject so,
DBObjectID to,
DBObjectProvider pro)
|
protected abstract java.util.List<DBObject> |
PlSqlUtilCore.getPlSqlFragmentReferersImpl(PlSqlSourceObject so,
DBObjectID to,
DBObjectProvider pro)
|
Modifier and Type | Method and Description |
---|---|
protected void |
DBObjectPlSqlFragment.copyToImpl(AbstractDBObject copy,
DBObject copyParent,
IDPolicy idPolicy) |
protected void |
DBObjectPlSqlFragment.copyToImpl(AbstractDBObject copy,
DBObject copyParent,
IDPolicy idPolicy) |
void |
PlSqlDatatype.validateDefaultValue(java.lang.Object defaultValue,
DataTypeUsage dataTypeUsage,
DBObject dbObject)
Deprecated.
|
void |
Type.validateDefaultValue(java.lang.Object defaultValue,
DataTypeUsage dataTypeUsage,
DBObject dbObject)
Deprecated.
|
void |
PlSqlDatatype.validateDefaultValue(java.lang.Object defaultValue,
DataTypeUsage dataTypeUsage,
DBObject dbObject)
Deprecated.
|
void |
Type.validateDefaultValue(java.lang.Object defaultValue,
DataTypeUsage dataTypeUsage,
DBObject dbObject)
Deprecated.
|
void |
PlSqlDatatype.validateUsage(DataTypeUsage dataTypeUsage,
DBObject dbObject)
Deprecated.
|
void |
Type.validateUsage(DataTypeUsage dataTypeUsage,
DBObject dbObject)
Deprecated.
|
void |
PlSqlDatatype.validateUsage(DataTypeUsage dataTypeUsage,
DBObject dbObject)
Deprecated.
|
void |
Type.validateUsage(DataTypeUsage dataTypeUsage,
DBObject dbObject)
Deprecated.
|
Constructor and Description |
---|
DBObjectPlSqlFragment(java.lang.String name,
DBObject parent) |
DBObjectPlSqlFragment(java.lang.String name,
DBObject parent) |
PlSqlBlock(java.lang.String name,
DBObject parent) |
PlSqlBlock(java.lang.String name,
DBObject parent) |
PlSqlCodeFragment(java.lang.String name,
DBObject parent) |
PlSqlCodeFragment(java.lang.String name,
DBObject parent) |
PlSqlMethod(java.lang.String name,
DBObject parent) |
PlSqlMethod(java.lang.String name,
DBObject parent) |
PlSqlStatement(java.lang.String name,
DBObject parent) |
PlSqlStatement(java.lang.String name,
DBObject parent) |
PlSqlSubProgram(java.lang.String name,
DBObject parent) |
PlSqlSubProgram(java.lang.String name,
DBObject parent) |
Modifier and Type | Method and Description |
---|---|
DBObject |
Metadata.newDBObject(java.lang.String type,
java.lang.String name)
Creates a new DBObject of given type, and sets it up with a name.
|
DBObject |
Metadata.newInstance(java.lang.String type)
Creates a new instance of a DBObject of the given type.
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection<java.lang.Class<? extends DBObject>> |
Metadata.getAllDBObjectClasses()
Gets all DBObject classes that are registered with the metadata (that
is, those that have an associated type String).
|
java.util.Map<java.lang.String,java.lang.Class<? extends DBObject>> |
Metadata.getDBObjectClasses()
The returned map contains a mapping of DBObject types to their declaring
DBObject subclasses.
|
java.lang.Class<? extends DBObject> |
Metadata.getObjectClass(java.lang.String type)
Gets the DBObject class that corresponds to the given object type.
|
protected java.util.Collection<java.lang.Class<? extends DBObject>> |
PropertyDefinition.getObjectClasses() |
protected java.util.Collection<java.lang.Class<? extends DBObject>> |
PropertyInfo.getObjectClasses()
If this property is restricted to certain object classes this returns
those classes.
|
java.util.Collection<java.lang.Class<? extends DBObject>> |
Metadata.getOwnerClasses(java.lang.Class<? extends DBObject> childClz)
Gets the classes of all objects that can own a child of the given
class.
|
java.lang.Class<? extends DBObject> |
PropertyDefinition.getReferencedClass() |
java.lang.Class<? extends DBObject> |
PropertyInfo.getReferencedClass()
If this property is a reference property (i.e.
|
Modifier and Type | Method and Description |
---|---|
boolean |
PropertyFilter.accept(DBObject obj) |
java.util.Collection |
AbstractPropertyManager.getAllowedPropertyValues(DBObject originalObject,
DBObject updatedObject,
java.lang.String property) |
java.util.Collection |
PropertyManager.getAllowedPropertyValues(DBObject originalObject,
DBObject updatedObject,
java.lang.String property)
Gets the allowed property values for the given object and property
in the described database.
|
java.util.Collection<java.lang.String> |
AbstractPropertyManager.getAllowedReferenceParentTypes(DBObject obj,
java.lang.String property) |
java.util.Collection<java.lang.String> |
PropertyManager.getAllowedReferenceParentTypes(DBObject obj,
java.lang.String property)
Gets the allowed object types of the parent object for a given
reference property.
|
java.util.Collection<java.lang.String> |
AbstractPropertyManager.getAllowedReferenceTypes(DBObject object,
java.lang.String property) |
java.util.Collection<java.lang.String> |
PropertyManager.getAllowedReferenceTypes(DBObject object,
java.lang.String property)
Gets the list of object types that can be referenced from the given
property.
|
java.lang.Object |
AbstractPropertyManager.getImplicitDefaultValue(DBObject obj,
java.lang.String property) |
java.lang.Object |
PropertyManager.getImplicitDefaultValue(DBObject obj,
java.lang.String property)
Gets the implicit default value for the given object property, if one
exists.
|
Nullable.NullBehaviour |
AbstractPropertyManager.getNullBehaviour(DBObject originalObject,
DBObject updatedObject,
java.lang.String property) |
Nullable.NullBehaviour |
PropertyManager.getNullBehaviour(DBObject originalObject,
DBObject updatedObject,
java.lang.String property)
Gets the null behaviour of the given object property.
|
abstract java.lang.Object |
PropertyInitializer.getPropertyInitialValue(DBObject obj,
java.lang.String propertyName) |
Modifier and Type | Method and Description |
---|---|
PropertyInfo |
AbstractPropertyManager.findPropertyInfo(java.lang.Class<? extends DBObject> objClz,
java.lang.String prop) |
PropertyInfo |
PropertyManager.findPropertyInfo(java.lang.Class<? extends DBObject> objClz,
java.lang.String prop)
Finds a PropertyInfo for the given property on the given object class.
|
java.util.Collection<java.lang.String> |
Metadata.getAllTypes(java.lang.Class<? extends DBObject> clz)
Gets all the valid DBObject types for the given class, including all
subclasses and implementations.
|
java.util.Collection<java.lang.Class<? extends DBObject>> |
Metadata.getOwnerClasses(java.lang.Class<? extends DBObject> childClz)
Gets the classes of all objects that can own a child of the given
class.
|
abstract PropertyInfo |
DynamicPropertyProvider.getPropertyInfo(java.lang.Class<? extends DBObject> objectClz,
java.lang.String prop,
DBObjectProvider pro)
Queries this provider for the PropertyInfo for a dynamic property.
|
java.util.Map<java.lang.String,PropertyInfo> |
AbstractPropertyManager.getPropertyInfos(java.lang.Class<? extends DBObject> objClz,
PropertyCriteria criteria) |
java.util.Map<java.lang.String,PropertyInfo> |
PropertyManager.getPropertyInfos(java.lang.Class<? extends DBObject> objClass,
PropertyCriteria criteria)
Gets the PropertyInfos (mapped by their property name) for the given
object class that are supported by this PropertyManager's
DBObjectProvider.
|
abstract java.lang.String[] |
PropertyInitializer.getPropertyNames(java.lang.Class<? extends DBObject> clz) |
static java.lang.String |
Metadata.getType(java.lang.Class<? extends DBObject> objClass)
Returns the type defined for the given object class.
|
boolean |
Metadata.isBeanProperty(java.lang.Class<? extends DBObject> clz,
java.lang.String propName)
Tests whether a given property is a bean property (i.e.
|
boolean |
PropertyInfo.isSupported(java.lang.Class<? extends DBObjectProvider> proClz,
java.lang.Class<? extends DBObject> objClz)
Tests whether this property is supported in the given provider for the
given object type.
|
boolean |
Metadata.isTypeOf(java.lang.Class<? extends DBObject> clz,
java.lang.String type)
Tests whether the given object type corresponds to a subclass of the given
object class.
|
void |
Metadata.registerIDProperty(java.lang.String name,
boolean staticReference,
java.lang.Class<? extends DBObject> referencedClass,
java.lang.String[] referencedTypes,
java.lang.Class<? extends DBObjectProvider> providerType,
java.lang.Class<? extends DBObject>... objectTypes)
Registers a new property in the APIs metadata that has a return type of
DBObjectID.
|
void |
Metadata.registerObjectClass(java.lang.String type,
java.lang.Class<? extends DBObject> clz)
Registers a new object type with its corresponding DBObject
implementation.
|
void |
Metadata.registerObjectClass(java.lang.String type,
Thunk<java.lang.Class<? extends DBObject>> clzThunk)
Registers a new object type with its corresponding DBObject
implementation.
|
void |
PropertyDefinition.setReferencesInfo(boolean isStatic,
java.lang.Class<? extends DBObject> referencedClass,
java.lang.String... referencedTypes)
Sets the information that customises the metadata for a referenced
property (i.e.
|
boolean |
AbstractPropertyManager.supportsProperty(java.lang.Class<? extends DBObject> objClz,
java.lang.String prop) |
boolean |
PropertyManager.supportsProperty(java.lang.Class<? extends DBObject> objClz,
java.lang.String prop)
Tests whether the given property is supported for the given object type.
|
Modifier and Type | Class and Description |
---|---|
class |
CascadeWorker<T extends DBObject>
Class responsible for doing the actual cascade of an object update or
removal.
|
Modifier and Type | Method and Description |
---|---|
protected CascadeAction |
CascadeWorker.cascadeDelete(DBObjectID removed,
DBObject referer,
T obj)
Cascade deletes the given removed object.
|
CascadeAction |
CascadeWorker.cascadeDelete(DBObject removed,
T obj)
Cascade deletes the given removed object.
|
protected void |
CascadeProcessor.cascadeDelete(DBObjectTransaction txn,
DBObject obj,
SystemObject depObj)
Processes the delete of the given DBObject to a dependent SystemObject.
|
protected CascadeAction |
CascadeWorker.removeReference(DBObjectID removed,
DBObject referer,
PropertyInfo info)
This method is called when a reference is found to a deleted object.
|
Modifier and Type | Interface and Description |
---|---|
interface |
AliasFragment
SQLFragment that consists of an expression and an alias.
|
interface |
DBObjectUsage
Interface implemented by fragments that use a DBObjectID to refer to another
DBObject.
|
interface |
FromObjectUsage
Interface implemented by any object that directly depends on a FromObject
(e.g.
|
interface |
JoinCondition |
interface |
SQLFragment
Interface for objects that encapsulate a fragment of SQL.
|
interface |
SQLFragmentWithDatatype
A SQLFragment that has a datatype, for example, a ColumnUsage or an Operation.
|
interface |
SQLQueryOwner
Interfaced to be implemented by any object that can own a SQLQuery.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractAliasFragment
SQLFragment that consists of an expression and an alias.
|
class |
AbstractDBObjectUsage
Abstract implementation for a SQLFragment that uses another DBObject (e.g
a Column) through a FromObject in the query.
|
class |
AbstractFromObjectUsage
Abstract SQLFragment implementation of FromObjectUsage.
|
class |
AbstractProviderUsageSQLFragment
Abstract SQLFragment implementation that is also a ProviderUsage.
|
class |
AbstractSchemaObjectUsage
Abstract class for usages that reference a SchemaObject (e.g.
|
class |
AbstractSQLFragment
Abstract superclass for SQLFragment implementations.
|
class |
AbstractSQLQuery
Deprecated.
- folded in to SQLQuery
|
class |
ArithmeticOperation
Concrete subclass of Operation for arithmetic operations - ADD, SUBTRACT,
MULTIPLY and DIVIDE.
|
class |
AsteriskUsage
Deprecated.
- use ColumnKeywordUsage
|
class |
BuiltInFunction
Class used for defining built in functions for the database.
|
class |
BuiltInFunctionArgument
An argument to a SQL Built-in Function
|
class |
CaseStatement
Class to represent a case statement in a sql query.
CASE [expression] WHEN condition THEN thenExpression WHEN condition THEN thenExpression ... |
static class |
CaseStatement.WhenThen |
class |
ColumnKeywordUsage
A FromObjectUsage that has a keyword for the Column name, rather than an
actual column.
|
class |
ColumnUsage
SQL fragment that is a use of a Column.
|
class |
Comparison
Subclass of Operation for comparisons.
|
class |
ConnectByRoot
SQLFragment representing the unary operator CONNECT_BY_ROOT.
|
class |
DataMiningFunction
Subclass of Operation for data mining functions.
|
static class |
DataMiningFunction.DataMiningArguments
Deprecated.
no longer required, use get/setDmSpecificArgs directly.
|
static class |
DataMiningFunction.DataMiningCostValues
An array of values
|
class |
ExpressionList
List of expressions.
|
class |
FKUsage
SQLFragment for the usage of a FKConstraint.
|
class |
FromObject
Object that represents a clause in the FROM statement of a SQL query.
|
class |
FunctionUsage |
class |
GroupByExpression
Expression for a part of a group by that isn't a simple column (e.g.
|
class |
GroupByObject
SQLFragment for the GROUP BY ...
|
class |
HierarchicalQueryObject
SQLFragment for the Hierarchical Query clause in a SQLQuery.
|
class |
IndexObject
Object to wrap a column expression (usually just a name, but could be any
sql expression) with an optional order type (ASC/DESC).
|
class |
JoinObject
Object that represent the JOIN clause of a SELECT statement (part of the
FROM clause).
|
class |
ModelObject
SQLFragment for the MODEL clause in a SQLQuery.
|
static class |
ModelObject.CellAssignment |
static class |
ModelObject.CellReferenceOptions |
static class |
ModelObject.ModelColumnClauses |
static class |
ModelObject.ModelRulesCellAssignmentExpr |
static class |
ModelObject.ModelRulesClause |
static class |
ModelObject.MultiColumnForLoop |
static class |
ModelObject.ReferenceModel |
static class |
ModelObject.SingleColumnForLoop |
class |
NonDeclarativeSQLQuery
Deprecated.
folded into SQLQuery
|
class |
OnJoinCondition
Object to represent the ON condition of a JOIN clause.
|
class |
Operation
Abstract class for operations.
|
class |
OrderByObject
Object to wrap each part of the ORDER BY clause of a SQLQuery.
|
class |
PlSqlUsage
Fragment that represents a usage of a piece of PlSql.
|
class |
RelationUsage
SQL fragment that is a use of a Relation.
|
class |
SelectObject
Object that represents a clause in the SELECT statement of a SQL query.
|
class |
SelectObjectUsage
Class that represents the usage of a SelectObject.
|
class |
SequenceUsage
SQL fragment that is a use of a Sequence.
|
class |
SetOperation
SQLFragment for dealing with operations to do with sets and ranges like
IN and BETWEEN.
|
class |
SetOperator
SQLFragment for dealing with queries that are linked using one of the SET
operators INTERSECT, UNION, MINUS and UNION ALL.
|
class |
SimpleSQLFragment
SQLFragment that we can't break down any more.
|
class |
SQLQuery
Object that represents a SQL query.
|
class |
SynonymUsage
SQLFragment for using a Synonym or Alias in a SQL query.
|
class |
UsingJoinCondition
Object to represent the condition part of a JOIN that has a USING clause.
|
class |
WhereObject
Object that represents a clause in the WHERE statement of a SQL query.
|
class |
WindowFunction
Subclass of Function for windowing functions (using the OVER syntax).
|
static class |
WindowFunction.WindowFunctionBound |
class |
WithClauseUsage
FromObjectUsage which represents the usage of a WITH clause in the FROM
clause.
|
class |
XMLFunctionUsage
Use spaces as argument seperators.
|
Modifier and Type | Method and Description |
---|---|
protected DBObject |
AbstractFromObjectUsage.findFragmentInQuery(DBObjectID id)
Finds the object that has the given id within the fragment heirachy of
this fragment.
|
protected DBObject |
AbstractSQLQueryBuilder.resolveID(DBObjectID id)
Resolves the given DBObjectID into an object.
|
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractProviderUsageSQLFragment.copyToImpl(AbstractDBObject target,
DBObject copyParent,
IDPolicy idPolicy) |
protected void |
ColumnUsage.copyToImpl(AbstractDBObject target,
DBObject copyParent,
IDPolicy idPolicy) |
protected void |
FunctionUsage.copyToImpl(AbstractDBObject target,
DBObject copyParent,
IDPolicy idPolicy) |
protected void |
Operation.copyToImpl(AbstractDBObject target,
DBObject copyParent,
IDPolicy idPolicy) |
DBObjectID |
AbstractSQLQueryBuilder.ensureID(DBObject frag)
Only call on an object that has been added to the hierarchy - e.g.
|
protected java.util.List<DBObjectID> |
AbstractSQLQueryBuilder.getIDs(DBObject[] objs) |
protected void |
AbstractSQLQueryBuilder.loadObject(DBObject frag)
Load the given object (i.e.
|
protected void |
AbstractSQLQueryBuilder.loadObjects(DBObject[] frags) |
protected void |
AbstractSQLQueryBuilder.setNewFromObject(DBObject frag,
FromObject oldFrom,
FromObject newFrom) |
protected void |
AbstractSQLQueryBuilder.unloadObject(DBObject frag) |
Constructor and Description |
---|
IDException(DBObject obj)
Constructor to use when an object has no ID.
|
Modifier and Type | Class and Description |
---|---|
class |
DBObjectMap<K extends DBObject,V>
Map implementation to use when the key is a DBObject.
|
class |
DBObjectSet<T extends DBObject>
Set implementation for storing DBObjects comparing only by name and type.
|
class |
SynchronizedBuildCache<T extends DBObject>
A thread-safe cache of DBObjects.
|
static interface |
SynchronizedBuildCache.BuildCacheListener<C extends DBObject>
Clients of SynchronizedBuildCache may choose to register an implementation
of BuildCacheListener for test and/or diagnostic purposes.
|
Modifier and Type | Method and Description |
---|---|
void |
DBObjectIDSet.addAll(DBObject... objs)
Adds the DBObjectIDs for every object in the given array from this set.
|
void |
DBObjectIDSet.removeAll(DBObject... objs)
Removes the DBObjectIDs for every object in the given array from this
set.
|
Modifier and Type | Class and Description |
---|---|
class |
DBObjectValidator<T extends DBObject>
Class responsible for validating an object definition in a
DBObjectProvider.
|
class |
ValidationContext<T extends DBObject>
Context object for a DBObjectValidator that defines the object to validate
and optionally a specific property to validate.
|
Modifier and Type | Method and Description |
---|---|
CascadeAction |
SchemaObjectValidator.cascadeDelete(DBObject removed,
T obj) |
protected boolean |
SchemaObjectValidator.checkSchemaDelete(DBObject removed,
T obj)
Checks whether the removed object is the Schema for the given
SchemaObject.
|
protected boolean |
DBObjectValidator.enforceChildNameUniqueInSchema(DBObject child)
Deprecated.
replaced by
#getNamespaceType(DBObject) . |
java.util.Collection<java.lang.String> |
DBObjectValidationModel.getInvalidProperties(DBObject obj)
Gets a list of the properties that are invalid on the given object.
|
java.util.Collection<ValidationException> |
DBObjectValidationModel.getValidation(DBObject obj,
java.lang.String prop)
Gets any ValidationExceptions that have been added against the given
object for the given property.
|
java.util.Map<java.lang.String,java.util.Collection<ValidationException>> |
DBObjectValidationModel.getValidationMap(DBObject obj)
Gets the validation map for the given object.
|
protected boolean |
DBObjectValidator.isChildOfPendingObject(DBObject obj)
Tests whether the given object has a SchemaObject parent that is a pending
(templated) object.
|
boolean |
DBObjectValidationModel.isValid(DBObject obj)
Simple test of whether the given object (or its children) has any
exceptions against it in the model.
|
boolean |
DBObjectValidationModel.isValid(DBObject obj,
java.lang.String prop)
Tests whether a property on the given object is valid.
|
protected void |
DBObjectValidator.validateNonNullableProperty(DBObject original,
DBObject updated,
java.lang.String propName)
Validate that the property has not been updated from not null to null in
an online database.
|
protected void |
DBObjectValidator.validateOwnedObjects(DBObject... children)
Deprecated.
|
protected void |
DBObjectValidator.validateOwnedObjects(ValidationLevel level,
DBObject... children)
Convenience method to call validateObject on the provider for any owned
objects.
|
static void |
DBObjectValidator.validateUniqueNames(DBObject[] objs)
Deprecated.
with no replacement. Unique name validation is done by
validateNameInUse.
|
Constructor and Description |
---|
MissingValidatorException(DBObject object)
Constructs a new ValidationException.
|
MissingValidatorException(DBObject object,
java.lang.String property)
Constructs a new ValidationException.
|
ValidationException(DBObject object,
java.lang.String message)
Constructs a new ValidationException.
|
ValidationException(DBObject object,
java.lang.String propName,
java.lang.String message)
Constructs a new ValidationException.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
DBObjectDeclarationFactory.createDeclarationId(DBObjectProvider pro,
DBObject obj)
Creates a unique identifier that can be used to create a
DBObjectDeclaration to any DBObject object (e.g.
|
Modifier and Type | Method and Description |
---|---|
DBObject |
OfflineDBObjectProvider.getDefaultTemplateForType(java.lang.String type) |
DBObject |
OfflineDBObjectProvider.getObject(OfflineDBObjectNode node)
Retrieves the object from the given node ensuring that the object's
ID is correctly setup for this provider.
|
protected DBObject |
OfflineDBObjectProvider.resolveID(DBObjectID id)
Finds a given object by ID.
|
Modifier and Type | Method and Description |
---|---|
static java.util.Collection<DBObject> |
OfflineDBUtil.loadAllObjects(OfflineDBObjectProvider pro)
Loads all the DBObjects in a given provider and returns them in a List.
|
Modifier and Type | Method and Description |
---|---|
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.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.
|
DBObjectID |
OfflineDBObjectFactory.ensureID(DBObject obj)
Checks that the given object has an ID.
|
DBObjectID |
OfflineDBObjectFactory.ensureID(DBObject obj,
boolean deep)
Checks that the given object has an ID.
|
boolean |
OfflineDBObjectProvider.isEditable(DBObject object) |
BaseObjectID |
OfflineDBObjectFactory.newID(DBObject obj)
Creates a new ID for the given object and sets it too.
|
BaseObjectID |
OfflineDBObjectFactory.newID(DBObject obj,
DBObjectID parent)
Creates a new ID for the given object and sets it too.
|
void |
OfflineDBObjectProvider.setDefaultTemplateForType(java.lang.String type,
DBObject so) |
protected boolean |
OfflineDBObjectFactory.useIdentifierBasedIDs(DBObject obj) |
void |
OfflineDBValidationManager.Validator.validateObject(OfflineDBObjectProvider pro,
DBObject original,
DBObject update,
java.lang.String property)
Validates the given object change for the given provider.
|
Constructor and Description |
---|
DependentProviderUpdateException(DBObject obj) |
Modifier and Type | Method and Description |
---|---|
DBObject |
ProviderDefaultTemplateSettings.getDefaultTemplate(java.lang.String type,
OfflineDBObjectProvider pro) |
Modifier and Type | Method and Description |
---|---|
void |
ProviderDefaultTemplateSettings.setDefaultTemplate(java.lang.String type,
DBObject obj) |
Modifier and Type | Method and Description |
---|---|
boolean |
UserPropertyDisplayManager.Filter.filter(DBObjectProvider pro,
DBObject object,
java.lang.String propName)
Used to control whether the User Defined Property of the given name should be
displayed for the given object.
|
java.lang.String |
UserPropertyDefn.getDefaultValue(OfflineDBObjectProvider pro,
DBObject dbObj)
|
static java.lang.String |
UserPropertyUtils.getDefaultValue(OfflineDBObjectProvider pro,
DBObject dbObj,
UserPropertyDefn upd)
Returns the default value of a User Property which could be from a registered
PropertyInitializer (or more likely UserPropertyInitializer )
or if no default value is provided by that mechanism, the default value defined
for the UserPropertyDefn . |
java.lang.Object |
UserPropertyInitializer.getPropertyInitialValue(DBObject obj,
java.lang.String propertyName) |
protected java.util.List<java.lang.String> |
AbstractUserPropertyValidator.getPropertyNames(OfflineDBObjectProvider pro,
DBObject dbo)
Subclasses can return a list of user defined property names that they
wish to validate for the given DBObject.
|
protected abstract java.lang.String |
UserPropertyInitializer.getUserPropertyDefault(DBObject obj,
java.lang.String userPropertyName)
Concrete subclasses should return the default value of the user property
with the given name for the given DBObject or throw a
PropertyInitializer.InitializationVeto exception.
|
static java.util.List<UserPropertyDefn> |
UserPropertyUtils.getUserPropertydefns(OfflineDBObjectProvider prov,
DBObject dbobject)
get a list of the user property definitions for a DBObject
|
static java.util.Map<java.lang.String,java.lang.String> |
UserPropertyUtils.getUserpropertyNameValueMap(DBObject dbo)
get a List of the user property values for a DBObject
|
static java.lang.Object |
UserPropertyUtils.getValue(OfflineDBObjectProvider prov,
DBObject dbObject,
java.lang.String udpName)
Return the User Defined Property Value.
|
static java.lang.Object |
UserPropertyDefn.getValue(OfflineDBObjectProvider prov,
DBObject dbObject,
java.lang.String udpName)
|
static void |
UserPropertyUtils.setValue(OfflineDBObjectProvider prov,
DBObject dbObject,
java.lang.String propName,
java.lang.Object propValue)
Sets the value of the given User defined property against the given DBObject.
|
static void |
UserPropertyUtils.setValues(OfflineDBObjectProvider prov,
DBObject dbObject,
java.util.Map<java.lang.String,java.lang.Object> values)
Sets the User defined properties defined in the map of name/value pairs
against the given DBObject.
|
void |
AbstractUserPropertyValidator.validateObject(OfflineDBObjectProvider pro,
DBObject original,
DBObject update,
java.lang.String property) |
abstract void |
AbstractUserPropertyValidator.validateUserPropertyValue(OfflineDBObjectProvider pro,
DBObject original,
DBObject update,
java.lang.String userPropertyName,
java.lang.String userPropertyValue)
Implementations of this method will be called to allow validation of
User Property Values.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
UserPropertyInitializer.getPropertyNames(java.lang.Class<? extends DBObject> clz) |
protected abstract java.lang.String[] |
UserPropertyInitializer.getUserPropertyNames(java.lang.Class<? extends DBObject> clz)
Concrete subclasses should return a String[] of user property names for
objects of the given class for which they provide a default value.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
SchemaObjectWizard.editObject(OfflineDBObjectProvider pro,
SchemaObject obj,
DBObject child)
Deprecated.
|
static boolean |
SchemaObjectWizard.editObject(OfflineDBObjectProvider pro,
SchemaObject obj,
DBObject child,
Context c)
Deprecated.
|