public class BuiltInObjectCache
extends oracle.javatools.db.marshal.AbstractResourceCache
DatabaseDescriptor.listBuiltInObjects(DBObjectCriteria)| Constructor and Description | 
|---|
BuiltInObjectCache(DatabaseDescriptor desc,
                  java.lang.String resourceDir)
Creates a new cache for the given DatabaseDescriptor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
isEmpty()
Tests whether this cache is empty - i.e. 
 | 
java.util.List<BuiltInFunction> | 
listBuiltInFunctions()
Lists the Built-in functions that are specific to the version of the database
 that owns this BuiltInObjectCache (and later). 
 | 
<T extends SystemObject> | 
listBuiltInObjects(DBObjectCriteria<T> criteria)
Lists the built in objects from this cache that match the given
 criteria. 
 | 
void | 
registerBuiltInObject(java.lang.String type,
                     java.lang.String schema,
                     java.lang.String name)
Registers a built in object that will be loaded as a resource file
 under the resource root. 
 | 
void | 
registerBuiltInObject(SystemObject obj)
Registers a built in object that is not loaded from a resource file. 
 | 
public BuiltInObjectCache(DatabaseDescriptor desc, java.lang.String resourceDir)
desc - the DatabaseDescriptor this is the cache for.resourceDir - the resource root directory for lazy loading built
 in objects from.public boolean isEmpty()
public final java.util.List<BuiltInFunction> listBuiltInFunctions()
bundle - The resource bundle that contains the description of functions
 keyed by function name.  Can be null.public final <T extends SystemObject> java.util.Collection<T> listBuiltInObjects(DBObjectCriteria<T> criteria)
criteria - the criteria of which objects to listpublic void registerBuiltInObject(java.lang.String type,
                                  java.lang.String schema,
                                  java.lang.String name)
type - the type of the object.schema - the name of the object's schema (and therefore
 subdirectory of the resource root). Can be null for system objects.name - the name of the object.public void registerBuiltInObject(SystemObject obj)
obj - the object to register