|
Oracle Application Development Framework Model and Business Components Java API Reference
10g Release 3 (10.1.3) B16005-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.jbo.mom.DefinitionManager
A static class used for accessing meta-objects.
This class contains references to all Business Componenents for Java meta-objects. These classes are loaded from XML through JNDI calls to the appropriate context, and are also loaded at runtime from jboserver.properties.
| Field Summary | |
protected boolean |
mbValidateName |
protected javax.naming.Context |
mContextHandle to the Context initialized for the framework |
protected boolean |
mLazyLoadingIs lazy loading true, this flag is set to the right value after reading the the jboserver properties, It is suggested to keep the value set to true, In 8i with SharedDataHandle we might want users to turn lazy loading to false |
protected boolean |
mSubstituteStatFlag to keep check if we are in a Substitute case |
| Constructor Summary | |
protected |
DefinitionManager() |
| Method Summary | |
protected abstract ContainerDefImpl |
createContainerDefObject(boolean topLevel) |
void |
dumpDefObjInfo(int index, java.lang.Object key, DefinitionObjectInfo defObjInfo, boolean forUseChain, java.io.PrintWriter out) |
void |
dumpMOM() |
void |
dumpMOM(java.io.Writer out, boolean dumpUseChain)See DefinitionContext#dumpMOM. |
protected ContainerDefImpl |
findContainer(java.lang.String packageName) |
java.lang.Object |
findDefinitionObject(java.lang.String metaObjectName, int exId, java.lang.Class claz, boolean sub)Finds the Meta Object from the statically maintained list of Meta Objects. |
java.lang.Object |
findDefinitionObject(java.lang.String metaObjectName, int exId, java.lang.Class claz, boolean sub, boolean loadDefIfNotFound)Finds the Meta Object from the statically maintained list of Meta Objects. |
java.lang.Object |
findDefinitionObject(java.lang.String metaObjectName, int exId, java.lang.Class claz, boolean sub, boolean loadDefIfNotFound, boolean bDisableNameChecking)Finds the Meta Object from the statically maintained list of Meta Objects. |
java.lang.Object |
findDefinitionObjectDontCheckName(java.lang.String metaObjectName, int exId, java.lang.Class claz, boolean sub)Finds the Meta Object from the statically maintained list of Meta Objects. |
java.lang.Object |
findLoadedObject(java.lang.String defObjName)See DefinitionContext#findDefObj. |
protected java.lang.String |
findSubstituteName(java.lang.String metaObjectName) |
protected boolean |
getBooleanFlag(PropertyMetadata prop, boolean deflt) |
javax.naming.Context |
getContext()Gets the context, an instance of the context factory. |
protected com.sun.java.util.collections.Map |
getCurrentApplicationMap(boolean create)Deprecated. since 10.1.3. No direct replacement (but see comments above). |
protected abstract java.lang.String |
getDefaultMOMCacheScope()Return an indication as to the default scope of the MOM cache (to be used if the application's adf-config.xml does not explicitly indicate a value). |
protected com.sun.java.util.collections.HashMap |
getDefinitionObjectsMap()Deprecated. since 9.0.5. No direct replacement (but see comments for getCurrentApplicationMap(boolean)). |
protected ContainerDefImpl |
getDynamicObjectsContainer()Returns DynamicObjectsPackage. |
protected abstract java.lang.String |
getDynamicPackageName() |
DTD |
getJboDTD()Gets the cached DTD. |
DefXMLParser |
getJboXMLDoc()Deprecated. since 10.1.3. See comments above. |
protected java.lang.String |
getLatestDTDVersion() |
boolean |
getLazyLoadProp()Function to set the lazy load property |
java.lang.Object |
getMapLock()See DefinitionContext#getCacheLock. |
java.lang.String |
getMOMCacheScope()Return an indication as to the scope of the MOM cache. |
java.util.Properties |
getMOMProperties()Gets the server properties loaded from oracle.jbo.server.jboserver.properties. |
protected abstract java.lang.String |
getProjectFileExtension() |
LongRunningStatementMonitor |
getStatementMonitor()Return the LongRunningStatementMonitor that can monitor and terminate long running SQL statements. |
abstract java.lang.String[] |
getXMLVersionArray() |
protected void |
initListener() |
protected void |
initManager() |
protected void |
initSubExtendsPropForProject()Set the substitute extends prop for Project For 8i, we treat it differently than other deployments |
protected void |
insertDefinition(java.lang.String defObjName, java.lang.Object defObj) |
protected void |
insertDefinition(java.lang.String defObjName, java.lang.Object defObj, boolean isAgeable)See DefinitionContext#insertDefObj. |
boolean |
is323Compatible() |
boolean |
is903Compatible() |
boolean |
isLazyLoadingMode()Gets the value of the JSP lazy loading flag. |
DefElement |
loadBaseXMLElement(java.lang.String metaObjectName)Function gets called for extends case where the superclass needs to be loaded. |
void |
loadContext(java.lang.String cusContextFactory, java.lang.String initContext)Allows the application to change the context factory and default context at runtime. |
DefElement |
loadDefElement(java.lang.String metaObjectName) |
protected abstract DefinitionObject |
loadFromXML(java.lang.String metaObjectName, DefElement elem, java.lang.String objType)Loads the XML metadata stream and returns a Def Object |
protected java.lang.Object |
loadLazyDefinitionObject(java.lang.String metaObjectName, ContainerDefImpl parent, boolean loadParent, boolean sub)Main function in MOM to load a object from XMLStream through XMLContext |
protected abstract java.lang.Object |
loadLazyFromSharedObject(java.lang.String metaObjectName, ContainerDefImpl parent, boolean loadParent, boolean sub) |
ContainerDefImpl |
loadProjectDefinition() |
protected ContainerDefImpl |
loadProjectDefinition(java.io.InputStream is, java.lang.String metaObjectName)Deprecated. since 10.1.3. Use loadProjectDefinition(String) instead. |
protected ContainerDefImpl |
loadProjectDefinition(java.io.Reader reader, java.lang.String metaObjectName)Deprecated. since 10.1.3. Use loadProjectDefinition(String) instead. |
ContainerDefImpl |
loadProjectDefinition(java.lang.String projectName)Finds the named package definition from the MOM cache. |
protected abstract java.lang.Object |
loadSpecialObjects(DefElement impl, java.lang.String metaObjectName, java.lang.String objType) |
void |
removeAllDefinitions()Purges the MOM cache for the current thread (which may or may not be shared with other threads, depending upon the scope of the MOM cache). |
protected java.lang.Object |
removeDefinition(java.lang.String defObjName)See DefinitionContext#removeDefObj. |
void |
reportVMProperties()Diagnostic method which reports some useful VM properties throught the diagnostic stream |
void |
setContextImpl(javax.naming.Context jndiContext)Set the JNDI context through API Call |
protected void |
setLazyLoadingMode(boolean lazyLoading)Sets the value of the JSP lazy loading flag. |
protected void |
setNameCheck(boolean flag) |
protected boolean |
usesMDS()Return an indication as to whether the current application should use MDS for this DefinitionManager instance. |
protected abstract boolean |
usesMDSByDefault()Return an indication as to whether this DefinitionManager instance should use MDS if the application's adf-config.xml does not explicitly indicate true or false. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected boolean mLazyLoading
protected javax.naming.Context mContext
protected boolean mSubstituteStat
protected boolean mbValidateName
| Constructor Detail |
protected DefinitionManager()
| Method Detail |
protected void initListener()
protected void initManager()
protected void setNameCheck(boolean flag)
public DefXMLParser getJboXMLDoc()
public DTD getJboDTD()
public void setContextImpl(javax.naming.Context jndiContext)
jndiContext - Initial Context Implpublic boolean isLazyLoadingMode()
protected void setLazyLoadingMode(boolean lazyLoading)
lazyLoading - the new value of the lazy loading flag.protected ContainerDefImpl findContainer(java.lang.String packageName)
public java.lang.Object findDefinitionObject(java.lang.String metaObjectName,
int exId,
java.lang.Class claz,
boolean sub)
metaObjectName - the fully qualified Name of the Meta Object.exId - id identifying the meta-object kind.claz - meta-object implementation class.sub - flag controlling whether to perform meta-object substitution.
public java.lang.Object findDefinitionObject(java.lang.String metaObjectName,
int exId,
java.lang.Class claz,
boolean sub,
boolean loadDefIfNotFound)
metaObjectName - the fully qualified Name of the Meta Object.exId - id identifying the meta-object kind.claz - meta-object implementation class.sub - flag controlling whether to perform meta-object substitution.
public java.lang.Object findDefinitionObjectDontCheckName(java.lang.String metaObjectName,
int exId,
java.lang.Class claz,
boolean sub)
metaObjectName - the fully qualified Name of the Meta Object.exId - id identifying the meta-object kind.claz - meta-object implementation class.sub - flag controlling whether to perform meta-object substitution.
public java.lang.Object findDefinitionObject(java.lang.String metaObjectName,
int exId,
java.lang.Class claz,
boolean sub,
boolean loadDefIfNotFound,
boolean bDisableNameChecking)
metaObjectName - the fully qualified Name of the Meta Object.exId - id identifying the meta-object kind.claz - meta-object implementation class.sub - flag controlling whether to perform meta-object substitution.bDisableNameChecking - disables name checking regardless of the internal settingsprotected java.lang.String findSubstituteName(java.lang.String metaObjectName)
protected abstract java.lang.Object loadSpecialObjects(DefElement impl,
java.lang.String metaObjectName,
java.lang.String objType)
protected abstract java.lang.Object loadLazyFromSharedObject(java.lang.String metaObjectName,
ContainerDefImpl parent,
boolean loadParent,
boolean sub)
protected java.lang.Object loadLazyDefinitionObject(java.lang.String metaObjectName,
ContainerDefImpl parent,
boolean loadParent,
boolean sub)
public DefElement loadDefElement(java.lang.String metaObjectName)
protected abstract DefinitionObject loadFromXML(java.lang.String metaObjectName,
DefElement elem,
java.lang.String objType)
metaObjectName - name of the metaobject, for diagnostic purposes.elem - an XML Stream as a DefElement object.objType - object type Tag.protected ContainerDefImpl getDynamicObjectsContainer()
protected abstract java.lang.String getDynamicPackageName()
protected abstract java.lang.String getProjectFileExtension()
protected abstract ContainerDefImpl createContainerDefObject(boolean topLevel)
protected ContainerDefImpl loadProjectDefinition(java.io.InputStream is,
java.lang.String metaObjectName)
loadProjectDefinition(String) instead.
protected ContainerDefImpl loadProjectDefinition(java.io.Reader reader,
java.lang.String metaObjectName)
loadProjectDefinition(String) instead.public ContainerDefImpl loadProjectDefinition(java.lang.String projectName)
projectName - the fully-qualified name of the package.public ContainerDefImpl loadProjectDefinition()
protected void initSubExtendsPropForProject()
Finds if there is a subtitute extends tag and sets the right flag, finally makes a top level call to loadProject() Function first checks in Command line argument then in the file jboserver.properties only if this is missing in command line argument
public boolean is323Compatible()
public boolean is903Compatible()
protected boolean getBooleanFlag(PropertyMetadata prop,
boolean deflt)
public boolean getLazyLoadProp()
public void loadContext(java.lang.String cusContextFactory,
java.lang.String initContext)
cusContextFactory - the name of the new custom context factory. if null the default is restored.initContext - the name of the new default context. if null the default is restored.public javax.naming.Context getContext()
public java.util.Properties getMOMProperties()
public DefElement loadBaseXMLElement(java.lang.String metaObjectName)
metaObjectName -public void reportVMProperties()
public abstract java.lang.String[] getXMLVersionArray()
protected java.lang.String getLatestDTDVersion()
public void dumpDefObjInfo(int index,
java.lang.Object key,
DefinitionObjectInfo defObjInfo,
boolean forUseChain,
java.io.PrintWriter out)
public void dumpMOM(java.io.Writer out,
boolean dumpUseChain)
DefinitionContext#dumpMOM.public void dumpMOM()
protected void insertDefinition(java.lang.String defObjName,
java.lang.Object defObj,
boolean isAgeable)
DefinitionContext#insertDefObj.
protected void insertDefinition(java.lang.String defObjName,
java.lang.Object defObj)
protected java.lang.Object removeDefinition(java.lang.String defObjName)
DefinitionContext#removeDefObj.public java.lang.Object findLoadedObject(java.lang.String defObjName)
DefinitionContext#findDefObj.public void removeAllDefinitions()
public java.lang.Object getMapLock()
DefinitionContext#getCacheLock.protected com.sun.java.util.collections.Map getCurrentApplicationMap(boolean create)
get, put, and remove on the returned Map should instead invoke the findLoadedObject, insertDefinition, and removeDefinition methods directly.create - Create map if not found?protected com.sun.java.util.collections.HashMap getDefinitionObjectsMap()
getCurrentApplicationMap(boolean)).protected abstract java.lang.String getDefaultMOMCacheScope()
public java.lang.String getMOMCacheScope()
protected abstract boolean usesMDSByDefault()
DefinitionManager instance should use MDS if the application's adf-config.xml does not explicitly indicate true or false. This default value is obtained from a JVM-wide BC4J property. (Actually, that's not currently true for JUMetaObjectManager - see comments in JUMetaObjectManager.usesMDSByDefault()).protected boolean usesMDS()
DefinitionManager instance.public LongRunningStatementMonitor getStatementMonitor()
LongRunningStatementMonitor that can monitor and terminate long running SQL statements. The monitor runs in its own thread.LongRunningStatementMonitor instance.
|
Oracle Application Development Framework Model and Business Components Java API Reference
10g Release 3 (10.1.3) B16005-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||