public class SchemaObjectManager extends CascadeManager
CascadeManagerCascadeManager.LookupCriteria, CascadeManager.NoCascadeRequiredException| Constructor and Description | 
|---|
| SchemaObjectManager(DBObjectProvider provider) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | checkInit()By default this does nothing. | 
| protected void | clearAllCaches() | 
| static SystemObject[] | getDependencies(SystemObject obj,
               DBObjectProvider pro,
               boolean recurse)Deprecated. 
 use  CascadeManager.listReferencedObjects(SystemObject,boolean)on a
 manager instance. This method always returns an empty array. | 
| DBObjectID[] | getReferers(DBObject obj)Deprecated. 
 use  listReferers(DBObject)- this method simply
 returns an empty array. | 
| DBObjectID[] | getSchemaObjectReferers(SystemObject obj,
                       boolean deep)Deprecated. 
 use  CascadeManager.listTopLevelReferers(oracle.javatools.db.SystemObject,boolean)this method simply returns an empty array. | 
| protected boolean | haveRegisteredAll()Checks whether the whole provider has been loaded into the manager. | 
| protected java.lang.String[] | listObjectTypes() | 
| java.util.Collection<DBObjectID> | listReferers(DBObject obj)Lists all the references to the given object and its children. | 
| protected Schema[] | listSchemas() | 
| java.util.Collection<DBObjectID> | listTopLevelReferers(SystemObject obj,
                    CascadeManager.LookupCriteria criteria)Gets the ids for the SystemObjects who reference (either directly or
 via their children) the given SystemObject (or one of its children). | 
| protected boolean | needsInitialization(SystemObject obj)Returns true if the given schema object isn't built yet (i.e. | 
| protected void | registerAllObjects()Registers all objects in the underlying DBObjectProvider with this manager. | 
| protected void | registerDependency(SystemObject key,
                  DBObject referer,
                  DBObjectID referedTo)Registers a DBObject -> DBObject dependency (e.g. | 
| void | registerObject(SystemObject obj)Register the given SystemObject with this manager. | 
| void | registerObject(SystemObject obj,
              boolean loadOnly)Registers an object on the understanding that this is a load of the object,
 not a create or update. | 
| protected void | setRegisterProgress(int objN,
                   int objT,
                   int schemaN,
                   int schemaT,
                   java.lang.String schemaName) | 
| protected boolean | shouldRegister(SystemObject obj,
              boolean loadOnly)Online we register objects as they are loaded because all we care about is
 keeping our cache up-to-date (i.e. | 
| void | unregisterObject(SystemObject obj)Unregisters the given object from the object manager. | 
cascadeDelete, cascadeDelete, createIDMap, createIDSet, doCascadeDelete, findPropertyReferences, findReferers, getLogger, getProvider, includeSchemaObjects, isUnresolvedReference, listReferencedObjects, listReferencedObjects, listTopLevelReferers, listUnresolvedReferers, resolveUnresolvedReferences, resolveUnresolvedReferencespublic SchemaObjectManager(DBObjectProvider provider)
protected final boolean haveRegisteredAll()
protected void clearAllCaches()
public void registerObject(SystemObject obj)
public void registerObject(SystemObject obj, boolean loadOnly)
registerObject(SystemObject)protected boolean shouldRegister(SystemObject obj, boolean loadOnly)
protected final boolean needsInitialization(SystemObject obj)
public void unregisterObject(SystemObject obj)
@Deprecated public DBObjectID[] getSchemaObjectReferers(SystemObject obj, boolean deep)
CascadeManager.listTopLevelReferers(oracle.javatools.db.SystemObject,boolean)
 this method simply returns an empty array.public java.util.Collection<DBObjectID> listTopLevelReferers(SystemObject obj, CascadeManager.LookupCriteria criteria) throws CancelledException
CascadeManagerFor example for a Table this would return any Tables, Views or Synonyms (etc) that reference it via FKs, ColumnUsages or Object references).
The referers will not contain the given object, even if it has internal references (e.g. a PK referencing its own Columns). The references are all external.
listTopLevelReferers in class CascadeManagerobj - the object to lookup references tocriteria - restrictions on the lookupCancelledException - if the lookup is cancelled while executing.@Deprecated public DBObjectID[] getReferers(DBObject obj)
listReferers(DBObject) - this method simply
 returns an empty array.public java.util.Collection<DBObjectID> listReferers(DBObject obj) throws CancelledException
listReferers in class CascadeManagerobj - the object being referenced (e.g. a PK)CancelledException - if the lookup is cancelled while executing.protected void registerDependency(SystemObject key, DBObject referer, DBObjectID referedTo)
key - the top level SystemObjectreferer - the DBObject that holds the reference propertyreferedTo - the reference property valueprotected void checkInit()
                  throws CancelledException
CancelledExceptionprotected final void registerAllObjects()
                                 throws CancelledException
CancelledExceptionprotected java.lang.String[] listObjectTypes()
protected Schema[] listSchemas() throws DBException
DBExceptionprotected void setRegisterProgress(int objN,
                                   int objT,
                                   int schemaN,
                                   int schemaT,
                                   java.lang.String schemaName)
                            throws CancelledException
CancelledException@Deprecated public static final SystemObject[] getDependencies(SystemObject obj, DBObjectProvider pro, boolean recurse)
CascadeManager.listReferencedObjects(SystemObject,boolean) on a
 manager instance. This method always returns an empty array.