public class SchemaObjectBuilder
extends java.lang.Object
A progress bar will only be used if this is invoked on the event thread.
Customization available before calling ensureObjectBuilt(oracle.javatools.db.DBObject...)
or
ensureObjectBuiltEx(oracle.javatools.db.DBObject...)
:
buildDerivedProperties(oracle.javatools.db.DBObjectProvider)
with the object's DBObjectProvider.setProperties(java.lang.String, java.lang.String...)
.Constructor and Description |
---|
SchemaObjectBuilder(boolean cancellable)
Creates a new builder with the option for the user to cancel, or not if
the operation must proceed.
|
Modifier and Type | Method and Description |
---|---|
void |
buildDerivedProperties(DBObjectProvider pro)
Calling this method includes a "derived property" build in the process
performed by this builder.
|
void |
ensureDerivedPropertiesBuiltEx(DBObject obj)
Deprecated.
|
boolean |
ensureObjectBuilt(DBObject... objs)
Ensures that all of the given SystemObjects are fully loaded from their
metadata source (e.g.
|
boolean |
ensureObjectBuiltEx(DBObject... objs)
Ensures that all of the given SystemObjects are fully loaded from their
metadata source (e.g.
|
void |
setProperties(java.lang.String type,
java.lang.String... props)
Sets specific properties to build.
|
public SchemaObjectBuilder(boolean cancellable)
cancellable
- whether the user can cancel the loadpublic void buildDerivedProperties(DBObjectProvider pro)
pro
- the provider to use for the derived property build on this
object.public void setProperties(java.lang.String type, java.lang.String... props)
null
will register
them for all objects.type
- the object type the properties are forprops
- the properties that need building for the given
object type.public boolean ensureObjectBuilt(DBObject... objs)
If any error is encountered it is displayed to the user.
objs
- the objects to buildensureObjectBuiltEx(oracle.javatools.db.DBObject...)
public boolean ensureObjectBuiltEx(DBObject... objs) throws DBException, CancelledException
objs
- the objects to buildDBException
- if there was a database errorCancelledException
- if the user cancelled the loadensureObjectBuilt(oracle.javatools.db.DBObject...)
@Deprecated public void ensureDerivedPropertiesBuiltEx(DBObject obj) throws DBException
ensureObjectBuiltEx(oracle.javatools.db.DBObject...)
after calling
buildDerivedProperties(oracle.javatools.db.DBObjectProvider)
.DBException