|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1) E10653-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.jbo.mom.DefinitionManager
public abstract class 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 |
mContext
Handle to the Context initialized for the framework |
protected boolean |
mLazyLoading
Is 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 |
mSubstituteStat
Flag to keep check if we are in a Substitute case |
Constructor Summary | |
---|---|
protected |
DefinitionManager()
|
Method Summary | |
---|---|
protected abstract ContainerDefImpl |
createContainerDefObject(boolean topLevel)
|
void |
deleteCustomizations(DefinitionObject def)
Removes any MDS customizations made to the definition object. |
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(java.io.Writer, boolean) . |
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 |
findDefObjectUsingMetadataObject(java.lang.String metaObjectName,
int exId,
java.lang.Class claz)
|
java.lang.Object |
findLoadedObject(java.lang.String defObjName)
See DefinitionContext.findDefObj(java.lang.String) . |
java.lang.Object |
findLoadedSessionObject(java.lang.String defObjName)
|
java.lang.Object |
findMetadataObject(java.lang.String metaObjectName)
Get the Metadata Object |
java.lang.Object |
findPersDefObject(java.lang.String metaObjectName,
int exId,
java.lang.Class claz,
boolean sub)
|
java.lang.Object |
findSessionDefObject(java.lang.String metaObjectName,
int exId,
java.lang.Class claz,
boolean sub)
|
java.lang.String |
findSubstituteName(java.lang.String metaObjectName)
|
java.lang.String[] |
getAllDefinitionNames(java.lang.Class defClass)
|
protected boolean |
getBooleanFlag(PropertyMetadata prop,
boolean deflt)
|
javax.naming.Context |
getContext()
Gets the context, an instance of the context factory. |
protected java.util.Map |
getCurrentApplicationMap(boolean create)
Deprecated. since 10.1.3. No direct replacement (but see comments above). |
protected java.util.HashMap |
getDefinitionObjectsMap()
Deprecated. since 9.0.5. No direct replacement (but see comments for getCurrentApplicationMap(boolean) ). |
protected ContainerDefImpl |
getDynamicObjectsContainer()
Returns the package that manages dynamically created definition objects. |
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.util.Properties |
getMOMProperties()
Gets the server properties loaded from oracle.jbo.server.jboserver.properties. |
java.lang.String |
getPersDefObjectName(java.lang.String metaObjectName)
|
protected ContainerDefImpl |
getProjectDef()
|
protected abstract java.lang.String |
getProjectFileExtension()
|
java.lang.String |
getSessionDefBaseDir()
|
static java.lang.String |
getSessionDefBasePackage()
|
static java.util.List |
getSessionDefPackages()
|
int |
getSessPersDefObjCount()
|
LongRunningStatementMonitor |
getStatementMonitor()
Return the LongRunningStatementMonitor that
can monitor and terminate long running SQL statements. |
java.lang.String[] |
getSubstitutedNames(java.lang.String metaObjectName,
boolean recurse)
|
ValidatorFactory |
getValidatorFactory(java.lang.String nameSpace)
|
abstract java.lang.String[] |
getXMLVersionArray()
|
boolean |
hasDefinitionBeenUpdated(DefinitionObject def)
figures out if the defintion object has been updated since it was read into the DefinitionManager cache. |
protected void |
initListener()
|
protected void |
initManager()
|
protected void |
initSubExtendsPropForProject()
Set the substitute extends prop for Project |
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(java.lang.String, java.lang.Object, boolean) . |
protected void |
insertPersDefObject(java.lang.String defObjName,
java.lang.Object defObj,
boolean isAgeable)
|
protected void |
insertSessionDefObject(java.lang.String defObjName,
java.lang.Object defObj,
boolean isAgeable)
|
boolean |
is323Compatible()
|
boolean |
is903Compatible()
|
boolean |
isLazyLoadingMode()
Gets the value of the JSP lazy loading flag. |
boolean |
isNameForSessionDef(java.lang.String name)
|
boolean |
isPersDefSupported()
|
boolean |
isSessionDefSupported()
|
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 java.lang.Object |
loadDefinitionObjectWithoutCaching(java.lang.String metaObjectName)
Main function in MOM to load a object from XMLStream through XMLContext |
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 |
registerValidatorFactory(java.lang.String nameSpace,
ValidatorFactory valFac)
|
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). |
java.lang.Object |
removeDefinition(DefinitionObject def)
Removes the definition from the cache |
protected java.lang.Object |
removeDefinition(java.lang.String defObjName)
See DefinitionContext.removeDefObj(java.lang.String) . |
java.lang.Object |
removeDefinitionIfChanged(DefinitionObject def)
Removed the Defintion Object from the cache if it has changed since it was read. |
protected java.lang.Object |
removePersDefObject(java.lang.String defObjName)
|
protected java.lang.Object |
removeSessionDefObject(java.lang.String defObjName)
|
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)
|
void |
setSessionDefBaseDir(java.lang.String baseDir)
|
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()
public void registerValidatorFactory(java.lang.String nameSpace, ValidatorFactory valFac)
public ValidatorFactory getValidatorFactory(java.lang.String nameSpace)
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.String[] getAllDefinitionNames(java.lang.Class defClass)
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.loadDefIfNotFound
- loads metaobject from metadata store if not found.
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 settings
public boolean isPersDefSupported()
public boolean isSessionDefSupported()
public java.lang.String getPersDefObjectName(java.lang.String metaObjectName)
public java.lang.Object findPersDefObject(java.lang.String metaObjectName, int exId, java.lang.Class claz, boolean sub)
public java.lang.Object findSessionDefObject(java.lang.String metaObjectName, int exId, java.lang.Class claz, boolean sub)
public int getSessPersDefObjCount()
public boolean hasDefinitionBeenUpdated(DefinitionObject def)
def
-
public java.lang.Object removeDefinitionIfChanged(DefinitionObject def)
def
-
public void deleteCustomizations(DefinitionObject def) throws oracle.mds.exception.UnsupportedUpdateException
def
-
oracle.mds.exception.UnsupportedUpdateException
public java.lang.Object removeDefinition(DefinitionObject def)
def
-
public java.lang.String[] getSubstitutedNames(java.lang.String metaObjectName, boolean recurse)
public 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)
protected java.lang.Object loadDefinitionObjectWithoutCaching(java.lang.String metaObjectName)
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
protected ContainerDefImpl getProjectDef()
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(java.io.Writer, boolean)
.
public void dumpMOM()
protected void insertDefinition(java.lang.String defObjName, java.lang.Object defObj, boolean isAgeable)
DefinitionContext.insertDefObj(java.lang.String, java.lang.Object, boolean)
.
protected void insertDefinition(java.lang.String defObjName, java.lang.Object defObj)
protected java.lang.Object removeDefinition(java.lang.String defObjName)
DefinitionContext.removeDefObj(java.lang.String)
.
public java.lang.String getSessionDefBaseDir()
public boolean isNameForSessionDef(java.lang.String name)
public static java.util.List getSessionDefPackages()
public static java.lang.String getSessionDefBasePackage()
public void setSessionDefBaseDir(java.lang.String baseDir)
protected void insertPersDefObject(java.lang.String defObjName, java.lang.Object defObj, boolean isAgeable)
protected void insertSessionDefObject(java.lang.String defObjName, java.lang.Object defObj, boolean isAgeable)
protected java.lang.Object removePersDefObject(java.lang.String defObjName)
protected java.lang.Object removeSessionDefObject(java.lang.String defObjName)
public java.lang.Object findLoadedObject(java.lang.String defObjName)
DefinitionContext.findDefObj(java.lang.String)
.
public java.lang.Object findLoadedSessionObject(java.lang.String defObjName)
public void removeAllDefinitions()
public java.lang.Object getMapLock()
DefinitionContext.getCacheLock()
.
protected java.util.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 java.util.HashMap getDefinitionObjectsMap()
getCurrentApplicationMap(boolean)
).
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()).
public 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.public java.lang.Object findDefObjectUsingMetadataObject(java.lang.String metaObjectName, int exId, java.lang.Class claz)
public java.lang.Object findMetadataObject(java.lang.String metaObjectName)
metaObjectName
-
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1) E10653-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |