|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.adfnmc.cache.SimpleCache
oracle.adfnmc.metadata.MetaDataCache
public class MetaDataCache
Field Summary | |
---|---|
protected Map |
crossRef
|
protected java.lang.String |
crossRefId
|
static java.lang.String |
SINGLETON
|
Fields inherited from class oracle.adfnmc.cache.SimpleCache |
---|
access, cddr, config, data, MAX_COUNT, MAX_IDLE, provider, UNTYPED |
Constructor Summary | |
---|---|
MetaDataCache(CacheProvider cacheProvider,
java.lang.String crossRefAttribute,
java.lang.Object cddr)
Constructor for the MetaDataCache. |
Method Summary | |
---|---|
void |
addCrossRef(java.lang.String id,
java.lang.String loc)
Add a cross reference so the data can also be accessed from this id. |
XmlAnyDefinition |
getById(java.lang.String id)
Get the metadata by it's id (cross referenced index). |
XmlAnyDefinition |
getByLocation(java.lang.String loc)
Get the metadata by it's location (aka primary index). |
java.lang.String[] |
getIds()
|
void |
put(java.lang.Object key,
java.lang.Object value)
Generic version called from the underlying cache. |
void |
put(java.lang.String loc,
XmlAnyDefinition value)
Put the metadata into the cache |
Methods inherited from class oracle.adfnmc.cache.SimpleCache |
---|
dumpCache, get, getConfiguration, keySet, log, log, put, reset, setConfiguration, size |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SINGLETON
protected Map crossRef
protected java.lang.String crossRefId
Constructor Detail |
---|
public MetaDataCache(CacheProvider cacheProvider, java.lang.String crossRefAttribute, java.lang.Object cddr)
cacheProvider
- (implementer of the fetch method)cddr
- (or client data direct reference) passed to the provider on fetchMethod Detail |
---|
public void addCrossRef(java.lang.String id, java.lang.String loc)
id
- is the new cross referenceloc
- is the exiting reference by the underlying cachepublic XmlAnyDefinition getById(java.lang.String id)
id
- found in the outter stanza of the XML
public java.lang.String[] getIds()
public XmlAnyDefinition getByLocation(java.lang.String loc)
loc
- is the location where the file actually exists on disk
public void put(java.lang.String loc, XmlAnyDefinition value)
loc
- where the metadata resides on the disk (primary index)value
- the metadata itselfpublic void put(java.lang.Object key, java.lang.Object value)
key
- is the locvalue
- is the metadata
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |