|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jetspeed.page.impl.DatabasePageManagerCache
public class DatabasePageManagerCache
DatabasePageManagerCache
Field Summary | |
---|---|
protected static java.lang.ThreadLocal |
transactionedOperations
|
Constructor Summary | |
---|---|
DatabasePageManagerCache(org.apache.ojb.broker.PersistenceBroker broker,
java.util.Properties props)
DatabasePageManagerCache Construct a cache instance using OJB compliant signatures. |
Method Summary | |
---|---|
static void |
addTransaction(TransactionedOperation operation)
|
void |
cache(org.apache.ojb.broker.Identity oid,
java.lang.Object obj)
|
static void |
cacheAdd(org.apache.ojb.broker.Identity oid,
java.lang.Object obj)
cacheAdd Add object to cache and cache node instances by unique path; infuse nodes loaded by OJB with page manager configuration. |
static void |
cacheClear()
cacheClear Clear object and node caches. |
static void |
cacheInit(DatabasePageManager dbPageManager)
cacheInit Initialize cache using page manager configuration. |
static java.lang.Object |
cacheLookup(org.apache.ojb.broker.Identity oid)
cacheLookup Lookup objects by identity. |
static NodeImpl |
cacheLookup(java.lang.String path)
cacheLookup Lookup node instances by unique path. |
static void |
cacheRemove(org.apache.ojb.broker.Identity oid)
cacheRemove Remove identified object from object and node caches. |
static void |
cacheRemove(java.lang.String path)
cacheRemove Remove identified object from object and node caches. |
void |
clear()
|
static void |
dump()
|
static java.util.List |
getTransactions()
|
java.lang.Object |
lookup(org.apache.ojb.broker.Identity oid)
|
void |
remove(org.apache.ojb.broker.Identity oid)
|
static void |
resetCachedSecurityConstraints()
resetCachedSecurityConstraints Reset cached security constraints in all cached node objects. |
static void |
rollbackTransactions()
|
static void |
setPageManagerProxy(PageManager proxy)
setPageManagerProxy |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static java.lang.ThreadLocal transactionedOperations
Constructor Detail |
---|
public DatabasePageManagerCache(org.apache.ojb.broker.PersistenceBroker broker, java.util.Properties props)
broker
- broker that is to own cacheprops
- attribute properties passed to cacheMethod Detail |
---|
public static void cacheInit(DatabasePageManager dbPageManager)
pageManager
- configured page managerpublic static void setPageManagerProxy(PageManager proxy)
proxy
- proxied page manager interface used to
inject into Folder instances to provide
transaction/interceptionpublic static NodeImpl cacheLookup(java.lang.String path)
path
- node unique path
public static void cacheAdd(org.apache.ojb.broker.Identity oid, java.lang.Object obj)
oid
- object/node indentityobj
- object/node to cachepublic static void cacheClear()
public static java.lang.Object cacheLookup(org.apache.ojb.broker.Identity oid)
oid
- object identity
public static void cacheRemove(org.apache.ojb.broker.Identity oid)
oid
- object identitypublic static void cacheRemove(java.lang.String path)
path
- object pathpublic static void resetCachedSecurityConstraints()
public void cache(org.apache.ojb.broker.Identity oid, java.lang.Object obj)
cache
in interface org.apache.ojb.broker.cache.ObjectCache
public void clear()
clear
in interface org.apache.ojb.broker.cache.ObjectCache
public java.lang.Object lookup(org.apache.ojb.broker.Identity oid)
lookup
in interface org.apache.ojb.broker.cache.ObjectCache
public void remove(org.apache.ojb.broker.Identity oid)
remove
in interface org.apache.ojb.broker.cache.ObjectCache
public static void dump()
public static java.util.List getTransactions()
public static void addTransaction(TransactionedOperation operation)
principal
- The principal to set.public static void rollbackTransactions()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |