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.SystemObject...) or ensureObjectBuiltEx(oracle.javatools.db.SystemObject...) :
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)
This is separate to the  
ensureObjectBuilt(oracle.javatools.db.SystemObject...) and ensureObjectBuiltEx(oracle.javatools.db.SystemObject...) mechanisms in that it is for explictly building the derived properties of a single object. | 
boolean | 
ensureObjectBuilt(SystemObject... objs)
Ensures that all of the given SystemObjects are fully loaded from their metadata source (e.g. 
 | 
boolean | 
ensureObjectBuiltEx(SystemObject... 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(SystemObject... objs)
If any error is encountered it is displayed to the user.
objs - the objects to buildensureObjectBuiltEx(oracle.javatools.db.SystemObject...)public boolean ensureObjectBuiltEx(SystemObject... objs) throws DBException, CancelledException
objs - the objects to buildDBException - if there was a database errorCancelledException - if the user cancelled the loadensureObjectBuilt(oracle.javatools.db.SystemObject...)public void ensureDerivedPropertiesBuiltEx(DBObject obj) throws DBException
ensureObjectBuilt(oracle.javatools.db.SystemObject...) and ensureObjectBuiltEx(oracle.javatools.db.SystemObject...) mechanisms in that it is for explictly building the derived properties of a single object. It uses the same logic and progress bar as the other methods.
It should only be used for objects that are not SystemObjects but that could still require a derived property build (e.g. SQLQuery).
obj - the object to ensure has its derived properties built.pro - the containing providerDBException - if the derived property build fails