|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.portal.cms.hibernate.state.JBossCachePersistenceManager
Nested Class Summary | |
private static class |
JBossCachePersistenceManager.CacheLoader
|
(package private) class |
JBossCachePersistenceManager.DbBLOBStore
|
Field Summary | |
protected FileSystem |
blobFS
file system where BLOB data is stored (if externalBLOBs==true ) |
protected java.lang.String |
blobSelect
|
protected java.lang.String |
blobSelectData
|
protected java.lang.String |
blobSelectExist
|
protected BLOBStore |
blobStore
BLOBStore that manages BLOB data in the file system (if externalBLOBs==true ) |
protected boolean |
externalBLOBs
|
protected static int |
INITIAL_BUFFER_SIZE
|
protected boolean |
initialized
|
protected java.lang.String |
jndiName
|
private static org.apache.log4j.Logger |
log
Logger instance |
protected java.lang.String |
nodeBinValSelect
|
private static TreeCacheMBean |
pmCache
|
private static boolean |
preloaded
|
protected static java.lang.String |
SCHEMA_OBJECT_PREFIX_VARIABLE
|
protected java.lang.String |
schemaObjectPrefix
|
Constructor Summary | |
JBossCachePersistenceManager()
Creates a new SimpleDbPersistenceManager instance. |
Method Summary | |
void |
close()
|
private java.sql.Blob |
createBlob(byte[] bytes)
|
NodeState |
createNew(NodeId id)
{@inheritDoc} |
private void |
destroy(NodeState state)
This is called by store(Changelog) this should not be called anywhere else |
boolean |
exists(NodeId node)
|
private boolean |
exists(java.lang.String query,
java.lang.String id)
|
java.lang.String |
getJNDIName()
|
java.lang.String |
getSchemaObjectPrefix()
|
void |
init(PMContext context)
|
boolean |
isExternalBLOBs()
|
NodeState |
load(NodeId node)
|
private static void |
loadProperties()
|
protected void |
logException(java.lang.String message,
java.sql.SQLException se)
|
void |
setExternalBLOBs(boolean externalBLOBs)
|
void |
setExternalBLOBs(java.lang.String externalBLOBs)
|
void |
setJNDIName(java.lang.String JNDIName)
|
void |
setSchemaObjectPrefix(java.lang.String schemaObjectPrefix)
|
private void |
store(NodeState state)
|
void |
storeHB(ChangeLog changeLog)
|
private void |
update(NodeState state)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static org.apache.log4j.Logger log
protected static final java.lang.String SCHEMA_OBJECT_PREFIX_VARIABLE
protected boolean initialized
protected java.lang.String jndiName
protected java.lang.String schemaObjectPrefix
protected boolean externalBLOBs
protected static final int INITIAL_BUFFER_SIZE
protected java.lang.String blobSelect
protected java.lang.String blobSelectData
protected java.lang.String blobSelectExist
protected java.lang.String nodeBinValSelect
protected FileSystem blobFS
externalBLOBs==true
)
protected BLOBStore blobStore
externalBLOBs==true
)
private static TreeCacheMBean pmCache
private static boolean preloaded
Constructor Detail |
public JBossCachePersistenceManager()
SimpleDbPersistenceManager
instance.
Method Detail |
public java.lang.String getJNDIName()
public void setJNDIName(java.lang.String JNDIName)
public java.lang.String getSchemaObjectPrefix()
public void setSchemaObjectPrefix(java.lang.String schemaObjectPrefix)
public boolean isExternalBLOBs()
public void setExternalBLOBs(boolean externalBLOBs)
public void setExternalBLOBs(java.lang.String externalBLOBs)
public void init(PMContext context) throws java.lang.Exception
java.lang.Exception
private static void loadProperties() throws java.lang.Exception
java.lang.Exception
public boolean exists(NodeId node) throws ItemStateException
ItemStateException
public NodeState load(NodeId node) throws NoSuchItemStateException, ItemStateException
NoSuchItemStateException
ItemStateException
private void store(NodeState state) throws ItemStateException
ItemStateException
private void update(NodeState state) throws ItemStateException
ItemStateException
private void destroy(NodeState state) throws ItemStateException
ItemStateException
public void close() throws java.lang.Exception
java.lang.Exception
public NodeState createNew(NodeId id)
private java.sql.Blob createBlob(byte[] bytes)
public void storeHB(ChangeLog changeLog) throws ItemStateException
ItemStateException
private boolean exists(java.lang.String query, java.lang.String id) throws ItemStateException
ItemStateException
protected void logException(java.lang.String message, java.sql.SQLException se)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |