Oracle ADF Model and Business Components API Reference 10.1.2 B14022-01

oracle.jbo.server
Class MetaObjectManager

java.lang.Object
  extended byoracle.jbo.mom.DefinitionManager
      extended byoracle.jbo.server.MetaObjectManager
All Implemented Interfaces:
MetaObjectBase
Direct Known Subclasses:
ContextMetaObjectManager

public class MetaObjectManager
extends 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.

Since:
Jdeveloper 3.0

Field Summary
 
Fields inherited from class oracle.jbo.mom.DefinitionManager
mbValidateName, mContext, mLazyLoading, mSubstituteStat, xmlDoc
 
Fields inherited from interface oracle.jbo.common.MetaObjectBase
TYP_APP_MODULE, TYP_ATTRIBUTE, TYP_ATTRIBUTE_LIST_WITH_DEF, TYP_COMPONENT_OBJECT, TYP_DEF_ANY, TYP_DEF_APP_MODULE, TYP_DEF_ATTRIBUTE, TYP_DEF_COMPONENT_OBJECT, TYP_DEF_DOMAIN, TYP_DEF_ENTITY_ASSOC, TYP_DEF_ENTITY_OBJECT, TYP_DEF_PACKAGE, TYP_DEF_VIEW_LINK, TYP_DEF_VIEW_OBJECT, TYP_DOMAIN, TYP_ENTITY_ASSOC, TYP_ENTITY_OBJECT, TYP_ENTITY_ROW, TYP_ENTITY_ROW_SET, TYP_ENTITY_ROW_SET_ITERATOR, TYP_ENTITY_USAGE, TYP_PACKAGE, TYP_TRANSACTION, TYP_VALIDATOR_TYPE, TYP_VIEW_LINK, TYP_VIEW_OBJECT, TYP_VIEW_ROW, TYP_VIEW_ROW_SET, TYP_VIEW_ROW_SET_ITERATOR
 
Method Summary
protected  oracle.jbo.mom.ContainerDefImpl createContainerDefObject(boolean topLevel)
           
static void createSharedDataHandle()
           
static java.lang.Object findMetaObject(java.lang.String metaObjectName, int exId, java.lang.Class claz, boolean sub)
           
 com.sun.java.util.collections.ArrayList getCustomMessageBundlesList()
           
static java.lang.String getLatestXMLVersion()
           
static oracle.jbo.mom.xml.DefXMLParser getParser()
          Gets the XML parser.
protected  java.lang.String getProjectFileExtension()
           
static java.util.Properties getServerProperties()
          Gets the server properties loaded from oracle.jbo.server.jboserver.properties.
static SharedHandle getSharedHandle()
          Get the Shared Handle
static java.lang.String getSharedHandleName()
          Get the Shared handle name
static boolean getSharedHandleStatus()
          Get the Shared Handle Status
static MetaObjectManager getSingleton()
           
 java.lang.Long getVersionTimestamp()
           
 java.lang.String[] getXMLVersionArray()
           
protected  void initManager()
          Get the Hashtable for the XML JBOElements
protected  void initSubExtendsPropForProject()
          Set the substitute extends prop for Project For 8i, we treat it differently than other deployments
static void insertMetaObject(java.lang.String metaObjectName, java.lang.Object metaObject)
          Inserts the Meta Object into the statically maintained list of Meta Objects.
static boolean isLazyLoading()
          Gets the value of the JSP lazy loading flag.
static oracle.jbo.mom.xml.DefElementImpl loadBaseElement(java.lang.String metaObjectName)
           
static java.lang.Object loadFromSharedDataHandle(java.lang.String metaObjectName)
          Returns the def object from HashTable
 oracle.jbo.mom.DefinitionObject loadFromXML(java.lang.String tmpXMLFileName, oracle.jbo.mom.xml.DefElementImpl elem, java.lang.String objType)
          Loads the XML metadata stream and returns a Def Object
protected  java.lang.Object loadLazyFromSharedObject(java.lang.String metaObjectName, oracle.jbo.mom.ContainerDefImpl parent, boolean loadParent, boolean sub)
          Main function in MOM to load a object from XMLStream through Shared MetaData
static oracle.jbo.server.PackageDefImpl loadProject(java.lang.String projectName)
           
protected  java.lang.Object loadSpecialObjects(oracle.jbo.mom.xml.DefElementImpl elem, java.lang.String metaObjectName, java.lang.String objType)
           
static java.lang.Object loadXMLFromSharedDataHandle(java.lang.String metaObjectName)
          Returns the JBOElementImpl object from HashTable
static java.lang.Object removeMetaObject(java.lang.String metaObjectName)
          Removes the Meta Object from the statically maintained list of Meta Objects.
static void set8iProjectSub(java.lang.String projectName)
           
static void setLazyLoading(boolean lazyLoading)
          Sets the value of the JSP lazy loading flag.
static void setSharedHandleName(java.lang.String handleName)
          Set the Shared handle name, App module calls this function for the metaobjects
 
Methods inherited from class oracle.jbo.mom.DefinitionManager
closeStream, dumpMOM, findContainer, findDefinitionObject, findDefinitionObject, findDefinitionObject, findDefinitionObjectDontCheckName, findLoadedObject, findSubstituteName, getContext, getCurrentApplicationMap, getDefinitionObjectsMap, getDynamicObjectsContainer, getJboXMLDoc, getLatestDTDVersion, getLazyLoadProp, getMapLock, getMOMProperties, insertDefinition, is323Compatible, is903Compatible, isLazyLoadingMode, loadBaseXMLElement, loadContext, loadDefElement, loadLazyDefinitionObject, loadProjectDefinition, loadProjectDefinition, loadProjectDefinition, loadProjectDefinition, removeDefinition, reportVMProperties, setContextImpl, setLazyLoadingMode, setNameCheck
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSingleton

public static MetaObjectManager getSingleton()

getParser

public static oracle.jbo.mom.xml.DefXMLParser getParser()
Gets the XML parser.

Returns:
the XMLParser.

initManager

protected void initManager()
Get the Hashtable for the XML JBOElements


setSharedHandleName

public static void setSharedHandleName(java.lang.String handleName)
Set the Shared handle name, App module calls this function for the metaobjects


set8iProjectSub

public static void set8iProjectSub(java.lang.String projectName)

getSharedHandleName

public static java.lang.String getSharedHandleName()
Get the Shared handle name


getSharedHandleStatus

public static boolean getSharedHandleStatus()
Get the Shared Handle Status


getSharedHandle

public static SharedHandle getSharedHandle()
Get the Shared Handle


isLazyLoading

public static boolean isLazyLoading()
Gets the value of the JSP lazy loading flag.

Returns:
the value of the lazy loading flag.

setLazyLoading

public static void setLazyLoading(boolean lazyLoading)
Sets the value of the JSP lazy loading flag.

Parameters:
lazyLoading - the new value of the lazy loading flag.

insertMetaObject

public static void insertMetaObject(java.lang.String metaObjectName,
                                    java.lang.Object metaObject)
Inserts the Meta Object into the statically maintained list of Meta Objects.

Parameters:
metaObjectName - The fully qualified Name of the Meta Object

removeMetaObject

public static java.lang.Object removeMetaObject(java.lang.String metaObjectName)
Removes the Meta Object from the statically maintained list of Meta Objects.

Parameters:
metaObjectName - The fully qualified Name of the Meta Object
Returns:
The Meta Object that is removed. Returns null if no meta object exists.

loadLazyFromSharedObject

protected java.lang.Object loadLazyFromSharedObject(java.lang.String metaObjectName,
                                                    oracle.jbo.mom.ContainerDefImpl parent,
                                                    boolean loadParent,
                                                    boolean sub)
Main function in MOM to load a object from XMLStream through Shared MetaData


loadFromXML

public oracle.jbo.mom.DefinitionObject loadFromXML(java.lang.String tmpXMLFileName,
                                                   oracle.jbo.mom.xml.DefElementImpl elem,
                                                   java.lang.String objType)
Loads the XML metadata stream and returns a Def Object

Parameters:
tmpXMLFileName - name of the temporary XML file.
elem - an XML Stream as a DefElementImpl object.
objType - Object type Tag.
Returns:
a defObject, which is a JBO Object extending DefObject

loadProject

public static oracle.jbo.server.PackageDefImpl loadProject(java.lang.String projectName)

loadFromSharedDataHandle

public static java.lang.Object loadFromSharedDataHandle(java.lang.String metaObjectName)
Returns the def object from HashTable

Returns:
defObject: name of the Def Object (packagename.objName)

loadXMLFromSharedDataHandle

public static java.lang.Object loadXMLFromSharedDataHandle(java.lang.String metaObjectName)
Returns the JBOElementImpl object from HashTable

Returns:
DefElementImpl: name of the Def Object (packagename.objName)

findMetaObject

public static java.lang.Object findMetaObject(java.lang.String metaObjectName,
                                              int exId,
                                              java.lang.Class claz,
                                              boolean sub)

loadBaseElement

public static oracle.jbo.mom.xml.DefElementImpl loadBaseElement(java.lang.String metaObjectName)

initSubExtendsPropForProject

protected void initSubExtendsPropForProject()
Set the substitute extends prop for Project For 8i, we treat it differently than other deployments


getServerProperties

public static java.util.Properties getServerProperties()
Gets the server properties loaded from oracle.jbo.server.jboserver.properties.

Returns:
the server properties.

createSharedDataHandle

public static void createSharedDataHandle()
                                   throws javax.naming.NamingException
Throws:
javax.naming.NamingException

getProjectFileExtension

protected java.lang.String getProjectFileExtension()

loadSpecialObjects

protected java.lang.Object loadSpecialObjects(oracle.jbo.mom.xml.DefElementImpl elem,
                                              java.lang.String metaObjectName,
                                              java.lang.String objType)

createContainerDefObject

protected oracle.jbo.mom.ContainerDefImpl createContainerDefObject(boolean topLevel)

getXMLVersionArray

public java.lang.String[] getXMLVersionArray()

getLatestXMLVersion

public static java.lang.String getLatestXMLVersion()

getCustomMessageBundlesList

public com.sun.java.util.collections.ArrayList getCustomMessageBundlesList()

getVersionTimestamp

public final java.lang.Long getVersionTimestamp()

Oracle ADF Model and Business Components API Reference 10.1.2 B14022-01

 

Copyright © 1997, 2004, Oracle. All rights reserved.