|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.2.0) E17493-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.ide.db.util.SchemaObjectBuilder
public class SchemaObjectBuilder
A UI utility to ensure that SystemObject definitions are fully loaded off the UI thread. A SystemObject may take time in being loaded from its source (database dictionary, xml files) and as the load happens lazily this can cause problems for UI components that require the full object definition (e.g. edit dialogs). Using this utility allows the object to be built in one progress bar, with the option to cancel for the user.
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 Summary | |
---|---|
SchemaObjectBuilder(boolean cancellable) Creates a new builder with the option for the user to cancel, or not if the operation must proceed. |
Method Summary | |
---|---|
void |
buildDerivedProperties(DBObjectProvider pro) Calling this method includes a "derived property" build in the process performed by this builder. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SchemaObjectBuilder(boolean cancellable)
cancellable
- whether the user can cancel the loadMethod Detail |
---|
public 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...)
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.2.0) E17493-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |