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

E17503-02

oracle.adfnmc.metadata
Class MetaDataFrameworkManager

java.lang.Object
  extended by oracle.adfnmc.metadata.MetaDataFrameworkManager
All Implemented Interfaces:
CacheProvider

public class MetaDataFrameworkManager
extends java.lang.Object
implements CacheProvider


Field Summary
protected  MetaDataCache[] cache
           
static int DEBUG_BINDING_METADATA
           
 
Method Summary
 java.lang.Object fetch(java.lang.Object file, java.lang.Object type)
          The CacheProvider method which is invoked with the underlying SimpleCache detects a cache miss when attempting to fetch from the cache.
 ApplicationDefinition getDataBindings()
           
 ApplicationDefinition getDataBindings(java.lang.String location)
          Retrieved a cached version of the DataBindings.cpx element.
 DataControlConfigsDefinition getDataControlConfigById(java.lang.String id)
          Retrieved a cached version of the DataControls.dcx element.
 DataControlConfigsDefinition getDataControlConfigsDefinition(java.lang.String location)
          Retrieved a cached version of the DataControls.dcx element.
static MetaDataFrameworkManager getInstance()
           
 JavaBeanDefinition getJavaBeanDefinitionByName(java.lang.String fqn)
           
 JavaBeanDefinition getJavaBeanDefinitionByName(java.lang.String pkg, java.lang.String name)
           
 java.lang.String getLocationFromFullyQualifiedName(java.lang.String fqn, java.lang.String extension)
          Returns the potential file location from a given fully qualified name.
 PageDefDefinition getPageDefDefinitionById(java.lang.String id)
          Retrieved a cached version of the Page Defintion XML document.
 PageDefDefinition getPageDefDefinitionByLocation(java.lang.String location)
          Retrieved a cached version of the Page Defintion XML document.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG_BINDING_METADATA

public static final int DEBUG_BINDING_METADATA

cache

protected MetaDataCache[] cache
Method Detail

getInstance

public static MetaDataFrameworkManager getInstance()

getDataBindings

public ApplicationDefinition getDataBindings()
Returns:
the singleton DataBindings.cpx element

getDataBindings

public ApplicationDefinition getDataBindings(java.lang.String location)
Retrieved a cached version of the DataBindings.cpx element.

Parameters:
location - to the DataBindings.cpx file
Returns:
DataControlConfigs XML tree

getDataControlConfigById

public DataControlConfigsDefinition getDataControlConfigById(java.lang.String id)
Retrieved a cached version of the DataControls.dcx element.

Parameters:
id - to the DataControls.dcx file
Returns:
ApplicationDefinition XML tree

getDataControlConfigsDefinition

public DataControlConfigsDefinition getDataControlConfigsDefinition(java.lang.String location)
Retrieved a cached version of the DataControls.dcx element.

Parameters:
location - to the DataControls.dcx file
Returns:
ApplicationDefinition XML tree

getPageDefDefinitionById

public PageDefDefinition getPageDefDefinitionById(java.lang.String id)
Retrieved a cached version of the Page Defintion XML document.

Parameters:
id - of the [page definition] entry
Returns:
pageDefinition XML tree

getPageDefDefinitionByLocation

public PageDefDefinition getPageDefDefinitionByLocation(java.lang.String location)
Retrieved a cached version of the Page Defintion XML document.

Parameters:
location - to the [page definition].xml file
Returns:
pageDefinition XML tree

getJavaBeanDefinitionByName

public JavaBeanDefinition getJavaBeanDefinitionByName(java.lang.String pkg,
                                                      java.lang.String name)

getJavaBeanDefinitionByName

public JavaBeanDefinition getJavaBeanDefinitionByName(java.lang.String fqn)

fetch

public java.lang.Object fetch(java.lang.Object file,
                              java.lang.Object type)
The CacheProvider method which is invoked with the underlying SimpleCache detects a cache miss when attempting to fetch from the cache. This method is responsible for loading the content from disk/db/... and storing it into the underlying SimpleCache.

Specified by:
fetch in interface CacheProvider
Parameters:
file - is the fully qualified name of the file
type - the outter stanza's element name (aka type)
Returns:
the object (XmlAnyDefinition) to store in the cache

getLocationFromFullyQualifiedName

public java.lang.String getLocationFromFullyQualifiedName(java.lang.String fqn,
                                                          java.lang.String extension)
Returns the potential file location from a given fully qualified name.

Parameters:
fqn - the fully qualified name in package format (a.b.c.d)
extension - to add to the file name (i.e. .xml)
Returns:
the file location given the packaged formatted object and extension

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.