Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

oracle.jbo.server
Class ApplicationModuleDefImpl

java.lang.Object
  extended by oracle.jbo.server.NamedObjectImpl
      extended by oracle.jbo.mom.PersistableDefObject
          extended by oracle.jbo.server.DefObject
              extended by oracle.jbo.server.MetaObject
                  extended by oracle.jbo.server.ApplicationModuleDefImpl
All Implemented Interfaces:
Formattable, ResourceBundleOwner, VariableManagerOwner, VariableManagerOwnerBase

public class ApplicationModuleDefImpl
extends MetaObject


Field Summary
static java.lang.Class CLASS_INSTANCE
           
protected  boolean mClearCacheOnCommit
           
protected  boolean mClearCacheOnRollback
           
protected  boolean mRequeryOnCommit
           
 
Fields inherited from class oracle.jbo.server.MetaObject
mComponentClass
 
Fields inherited from class oracle.jbo.server.DefObject
DEF_MDS_CLIENT_KEY, DEF_SCOPE_PERS, DEF_SCOPE_SESSION, DEF_SCOPE_SHARED, mBaseDefObject, mExtendedDefObjects, mObjectResolved, PERSDEF_MDS_CLIENT_KEY
 
Fields inherited from class oracle.jbo.server.NamedObjectImpl
mObjName, mParent, mProperties, mUserData, RES_ID_SUFFIX
 
Constructor Summary
ApplicationModuleDefImpl()
           
 
Method Summary
 oracle.jbo.server.ViewUsage findViewObject(java.lang.String name)
           
 java.lang.Class getBaseComponentClass()
           
protected  boolean hasApplicationModule(java.lang.String amName)
           
protected  boolean hasViewLink(java.lang.String vlName)
           
protected  boolean hasViewObject(java.lang.String voName)
           
 boolean isClearCacheOnCommit()
          Returns the flag indicating whether all Entity Object caches will be cleared after the transaction is committed.
 boolean isClearCacheOnRollback()
           
 boolean isRequeryOnCommit()
          Indicates whether View Objects associated with this Application Module should be marked as needing to be executed after a database commit.
protected  ApplicationModule loadApplicationModule(ApplicationModule am, java.lang.String amName)
           
protected  void loadComponents(ApplicationModuleImpl am)
          This function loops through the list of ViewObjects, ViewLinks, and child ApplicationModules found in the ApplicationModule definition and create them in the ApplicationModule instance, identified by am.
protected  ViewLink loadViewLink(ApplicationModule am, java.lang.String vluName)
           
protected  ViewObject loadViewObject(ApplicationModule am, java.lang.String voName)
           
 void setClearCacheOnRollback(boolean b)
           
 
Methods inherited from class oracle.jbo.server.MetaObject
getMessageBundleClass, getMsgBundleDef, setComponentClass, setMessageBundleClass
 
Methods inherited from class oracle.jbo.server.DefObject
addExtendedDefObject, ensureVariableManager, getBaseDefObject, getDefScope, getExtendedDefObjects, getResourceBundleDef, getResourcePrefix, getVariableManager, getVarMgrParents, hasExtendedDefObjects, hasVariables, isBaseDefFor, isObjectResolved, loadProperties, loadProperties, loadResourceBundleDef, loadUserData, resolvePropertyRaw, setBaseDefObject, setBaseDefObject, setDefForComponent, setDefScope, setObjectResolved, setResourceBundleDef, unsetDefForComponent
 
Methods inherited from class oracle.jbo.mom.PersistableDefObject
getDefManager, loadXMLContents
 
Methods inherited from class oracle.jbo.server.NamedObjectImpl
formatChildCollectionForOutput, formatChildCollectionForOutput, formatChildCollectionForOutput, formatForOutput, formatForOutput, getAllProperties, getFullName, getName, getParent, getProperties, getPropertiesAsStrings, getPropertiesMap, getProperty, getProperty, getResourcesFromBundle, getUserData, parseAttrArrayElements, refreshProperty, requiresNamePrefixedResId, setFullName, setName, setParent, setPropertiesMap, setProperty
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface oracle.jbo.common.ResourceBundleOwner
getResourceBundleDef, getResourcePrefix
 
Methods inherited from interface oracle.jbo.VariableManagerOwner
getName
 

Field Detail

CLASS_INSTANCE

public static final java.lang.Class CLASS_INSTANCE

mClearCacheOnCommit

protected boolean mClearCacheOnCommit

mRequeryOnCommit

protected boolean mRequeryOnCommit

mClearCacheOnRollback

protected boolean mClearCacheOnRollback
Constructor Detail

ApplicationModuleDefImpl

public ApplicationModuleDefImpl()
Method Detail

loadComponents

protected void loadComponents(ApplicationModuleImpl am)
This function loops through the list of ViewObjects, ViewLinks, and child ApplicationModules found in the ApplicationModule definition and create them in the ApplicationModule instance, identified by am.

Parameters:
am - the ApplicationModule in which these components are created.

findViewObject

public oracle.jbo.server.ViewUsage findViewObject(java.lang.String name)

loadViewObject

protected ViewObject loadViewObject(ApplicationModule am,
                                    java.lang.String voName)

getBaseComponentClass

public java.lang.Class getBaseComponentClass()
Specified by:
getBaseComponentClass in class MetaObject

hasViewObject

protected boolean hasViewObject(java.lang.String voName)

loadApplicationModule

protected ApplicationModule loadApplicationModule(ApplicationModule am,
                                                  java.lang.String amName)

loadViewLink

protected ViewLink loadViewLink(ApplicationModule am,
                                java.lang.String vluName)

isClearCacheOnCommit

public boolean isClearCacheOnCommit()
Returns the flag indicating whether all Entity Object caches will be cleared after the transaction is committed.

After the transaction is committed, the value of this flag is used to determine whether the Entity Object caches are cleared or not. If this flag value is false, the cache contents are kept. In this case, the cache may contain data that is stale in that it does not match the newest data (changes made by another user and committed).

If this flag is true, the caches are cleared after the transaction is committed. When the user brings in data by traversing row collection, the latest data from the database will be brought into Entity caches.

Returns:
the current value of clear-cache-on-commit flag.
See Also:
RowSet.executeQuery(), Transaction.isClearCacheOnCommit(), Transaction.setClearCacheOnCommit(boolean)

isRequeryOnCommit

public boolean isRequeryOnCommit()
Indicates whether View Objects associated with this Application Module should be marked as needing to be executed after a database commit.

If this method returns true, then after a database commit, all View Objects contained by this Application Module will be marked as needing to be executed. Any attempt to retrieve rows from these View Objects or their row sets/row set iterators will cause the query to be re-executed.

Returns:
true indicates that all View Ojbects will be marked as needing to be executed after a database commit.

isClearCacheOnRollback

public boolean isClearCacheOnRollback()

setClearCacheOnRollback

public void setClearCacheOnRollback(boolean b)

hasViewLink

protected boolean hasViewLink(java.lang.String vlName)

hasApplicationModule

protected boolean hasApplicationModule(java.lang.String amName)

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.