Business Components

oracle.jbo.server
Class ApplicationModuleDefImpl

java.lang.Object
  |
  +--oracle.jbo.common.BaseObject
        |
        +--oracle.jbo.server.NamedObjectImpl
              |
              +--oracle.jbo.server.DefObject
                    |
                    +--oracle.jbo.server.ApplicationModuleDefImpl

public class ApplicationModuleDefImpl
extends oracle.jbo.server.DefObject

The base class for all generated ApplicationModule classes.

An Application Module is a container for View Objects, View Links and other Application Modules. This class is needed to load an Application Module and the components it contains from XML metadata. Calling loadXML() on an object instantiated from this class causes its components to be installed.


Field Summary
protected  java.lang.Class mComponentClass
          The class name for the object representing the ApplicationModuleDef
protected  java.util.Hashtable mRemoteServers
          Hash table to keep name value pairs for Platform, RemoteServer pairs
protected  boolean mRequeryOnCommit
           
protected  java.util.Hashtable mValidatorTypes
           
protected  java.util.Vector mViewLinkUsageList
          List of ViewLinkUsages
protected  java.util.Hashtable mViewLinkUsages
          Hash Table to keep a list of name value pairs for ViewLinkUsages
protected  java.util.Vector mViewUsageList
          List of viewObject names
protected  java.util.Hashtable mViewUsages
          Hash table to keep a list of name value pairs for ViewUsages
 
Fields inherited from class oracle.jbo.server.DefObject
mCompUsageList, mCompUsages
 
Fields inherited from class oracle.jbo.server.NamedObjectImpl
mFullName, mName, mParent, mProperties
 
Fields inherited from class oracle.jbo.common.BaseObject
TRACE_EVERY_ALLOC, TRACE_NONE, TRACE_OCCASIONAL, TRACE_UNINITIALIZED
 
Constructor Summary
protected ApplicationModuleDefImpl()
          Default Constructor
 
Method Summary
static ApplicationModuleDefImpl findDefObject(java.lang.String name)
          Finds a ApplicationModuleDefImpl instance from the statically maintained list of metaobjects, by name.
 java.lang.String getClientProxyClassName(java.lang.String platform)
          Gets the proxy class name of the remote server.
 java.lang.Class getComponentClass()
          Gets this instance's class.
 java.lang.String getServerClassName(java.lang.String platform)
          Gets the server class name of the remote server.
 boolean isRequeryOnCommit()
           
 void loadContainees()
          Loads components into this Application Module.
protected static ApplicationModuleDefImpl loadFromXML(oracle.jbo.server.xml.JboElementImpl xmlElement)
          Create an instance of ApplicatioModuleDef and load all the metadata from the XML pertinent to it.
protected static ApplicationModuleDefImpl loadFromXML(oracle.jbo.server.xml.JboElementImpl xmlElement, ApplicationModuleDefImpl aInfo)
          Loads the data from the XML stream and make a call the MetaObjectManager to to create an instance of the specific type of objectis and add to the hashtables that cache all the containees of the ApplicationModule.
 
Methods inherited from class oracle.jbo.server.DefObject
getPackageDef, getPackageName, isObjectResolved
 
Methods inherited from class oracle.jbo.server.NamedObjectImpl
getFullName, getName, getParent, getProperties, getPropertiesAsStrings, getProperty, setFullName, setProperty
 
Methods inherited from class oracle.jbo.common.BaseObject
dumpState, setTraceLevel, setTraceWriter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mComponentClass

protected java.lang.Class mComponentClass
The class name for the object representing the ApplicationModuleDef

mRequeryOnCommit

protected boolean mRequeryOnCommit

mValidatorTypes

protected java.util.Hashtable mValidatorTypes

mViewUsages

protected java.util.Hashtable mViewUsages
Hash table to keep a list of name value pairs for ViewUsages

mViewUsageList

protected java.util.Vector mViewUsageList
List of viewObject names

mViewLinkUsages

protected java.util.Hashtable mViewLinkUsages
Hash Table to keep a list of name value pairs for ViewLinkUsages

mViewLinkUsageList

protected java.util.Vector mViewLinkUsageList
List of ViewLinkUsages

mRemoteServers

protected java.util.Hashtable mRemoteServers
Hash table to keep name value pairs for Platform, RemoteServer pairs
Constructor Detail

ApplicationModuleDefImpl

protected ApplicationModuleDefImpl()
Default Constructor
Method Detail

findDefObject

public static ApplicationModuleDefImpl findDefObject(java.lang.String name)
Finds a ApplicationModuleDefImpl instance from the statically maintained list of metaobjects, by name.
Parameters:
entityName - the instance's fully qualified name.

getComponentClass

public java.lang.Class getComponentClass()
Gets this instance's class.
Returns:
the class.

getServerClassName

public java.lang.String getServerClassName(java.lang.String platform)
Gets the server class name of the remote server.
Parameters:
platform -  
Returns:
the server class of a RemoteServer instance, or null.

getClientProxyClassName

public java.lang.String getClientProxyClassName(java.lang.String platform)
Gets the proxy class name of the remote server.
Parameters:
platform -  
Returns:
the proxy class name of a RemoteServer instance, or null.

isRequeryOnCommit

public boolean isRequeryOnCommit()

loadFromXML

protected static ApplicationModuleDefImpl loadFromXML(oracle.jbo.server.xml.JboElementImpl xmlElement)
Create an instance of ApplicatioModuleDef and load all the metadata from the XML pertinent to it. This function is almost pivotal from RT's functional point of view.
Parameters:
XMLStream - for BC4J Framework

loadFromXML

protected static ApplicationModuleDefImpl loadFromXML(oracle.jbo.server.xml.JboElementImpl xmlElement,
                                                      ApplicationModuleDefImpl aInfo)
Loads the data from the XML stream and make a call the MetaObjectManager to to create an instance of the specific type of objectis and add to the hashtables that cache all the containees of the ApplicationModule. Eventually ViewObjects, ViewLinks and ApplicationModules are the containees of any ApplicationModule. The XMLStream is thus traversed to get the corresponding information about each of the possible children for an ApplicationModule, create these objects and add them to the cache.
Parameters:
XMLStream - Represents the JboElement
ApplicationModuleDefImpl - Instance of the Application Module Def

loadContainees

public void loadContainees()
Loads components into this Application Module.


Business Components