oracle.dss.thin.portalUtil
Class DataviewCacheUtils
java.lang.Object
|
+--oracle.dss.thin.portalUtil.DataviewCacheUtils
- public class DataviewCacheUtils
- extends java.lang.Object
This is a utility class that allows creating cached copies of "thin" or "java-client" view objects. View object XML definitions are simply copied, while live datasource objects are replaced with CachedDataSource
Method Summary |
static boolean |
deleteViewCache(PersistenceManager manager, java.lang.String viewPath, java.lang.String scopeId)
Deletes view cache from the BI Beans Catalog |
static DataviewCommon |
getCachedView(PersistenceManager manager, java.util.Hashtable appEnv, java.lang.String sourcePath, java.lang.String scopeId)
Retrieves a cached view from BI Beans Catalog |
static void |
updateViewCache(PersistenceManager manager, java.lang.String sourcePath, DataviewCommon sourceView, java.lang.String scopeId, java.lang.String newcacheFolder)
Updates (or creates) view cache in BI Beans Catalog |
void |
updateViewCache(PersistenceManager manager, java.lang.String sourcePath, java.lang.String scopeId, java.lang.String newcacheFolder)
Updates (or creates) view cache in BI Beans Catalog |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CACHE_SCOPE_ID_ATTR
public static final java.lang.String CACHE_SCOPE_ID_ATTR
DataviewCacheUtils
public DataviewCacheUtils()
updateViewCache
public void updateViewCache(PersistenceManager manager,
java.lang.String sourcePath,
java.lang.String scopeId,
java.lang.String newcacheFolder)
throws javax.naming.NamingException
- Updates (or creates) view cache in BI Beans Catalog
-
- Parameters:
manager
- Instance of Persistence Manager
sourcePath
- Source view path within BI Beans Catalog (relative to the Persistence Manager context)
scopeId
- Scope ID for the cached object. Scope ID is used to distinguish cached objects created for different users or groups of users
newcacheFolder
- Folder where cached objects will be saved upon creation (objects that are updated will not be affected by this parameter).
updateViewCache
public static void updateViewCache(PersistenceManager manager,
java.lang.String sourcePath,
DataviewCommon sourceView,
java.lang.String scopeId,
java.lang.String newcacheFolder)
throws javax.naming.NamingException
- Updates (or creates) view cache in BI Beans Catalog
-
- Parameters:
manager
- Instance of Persistence Manager
sourcePath
- Source view path within BI Beans Catalog (relative to the Persistence Manager context)
sourceView
- View to be cached
scopeId
- Scope ID for the cached object. Scope ID is used to distinguish cached objects created for different users or groups of users
newcacheFolder
- Folder where cached objects will be saved upon creation (objects that are updated will not be affected by this parameter).
getCachedView
public static DataviewCommon getCachedView(PersistenceManager manager,
java.util.Hashtable appEnv,
java.lang.String sourcePath,
java.lang.String scopeId)
throws javax.naming.NamingException
- Retrieves a cached view from BI Beans Catalog
-
- Parameters:
manager
- Instance of Persistence Manager
appEnv
- Environment to be passed to persistence manager's lookup() method. This parameter is useful if you want to pass extra information to your custom Peristence Object Factory.
sourcePath
- Path to the original source view (not the cached view) within BI Beans Catalog
scopeId
- Scope ID for the cached object. Scope ID is used to distinguish cached objects created for different users or groups of users
- Returns:
- view instance (exact instance type, including "thick" vs. "thin" will be determined by the Persistence manager's Object Factory).
- See Also:
PersistenceManager.lookupDefinition(java.lang.String)
deleteViewCache
public static boolean deleteViewCache(PersistenceManager manager,
java.lang.String viewPath,
java.lang.String scopeId)
throws javax.naming.NamingException
- Deletes view cache from the BI Beans Catalog
-
- Parameters:
manager
- Instance of Persistence Manager
viewPath
- path within BI Beans Catalog (relative to the Persistence Manager context) for the view whcih cache should be deleted
scopeId
- Scope ID for the cached object. Scope ID is used to distinguish cached objects created for different users or groups of users
- Returns:
- a boolean value indicating whether cache was successfully deleted
Copyright © 2003, Oracle. All Rights Reserved.