站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

JBossCachePersistenceManager - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.cms.hibernate.state
Class JBossCachePersistenceManager

java.lang.Object
  extended byorg.jboss.portal.cms.hibernate.state.JBossCachePersistenceManager

public class JBossCachePersistenceManager
extends java.lang.Object


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

log

private static org.apache.log4j.Logger log
Logger instance


SCHEMA_OBJECT_PREFIX_VARIABLE

protected static final java.lang.String SCHEMA_OBJECT_PREFIX_VARIABLE
See Also:
Constant Field Values

initialized

protected boolean initialized

jndiName

protected java.lang.String jndiName

schemaObjectPrefix

protected java.lang.String schemaObjectPrefix

externalBLOBs

protected boolean externalBLOBs

INITIAL_BUFFER_SIZE

protected static final int INITIAL_BUFFER_SIZE
See Also:
Constant Field Values

blobSelect

protected java.lang.String blobSelect

blobSelectData

protected java.lang.String blobSelectData

blobSelectExist

protected java.lang.String blobSelectExist

nodeBinValSelect

protected java.lang.String nodeBinValSelect

blobFS

protected FileSystem blobFS
file system where BLOB data is stored (if externalBLOBs==true)


blobStore

protected BLOBStore blobStore
BLOBStore that manages BLOB data in the file system (if externalBLOBs==true)


pmCache

private static TreeCacheMBean pmCache

preloaded

private static boolean preloaded
Constructor Detail

JBossCachePersistenceManager

public JBossCachePersistenceManager()
Creates a new SimpleDbPersistenceManager instance.

Method Detail

getJNDIName

public java.lang.String getJNDIName()

setJNDIName

public void setJNDIName(java.lang.String JNDIName)

getSchemaObjectPrefix

public java.lang.String getSchemaObjectPrefix()

setSchemaObjectPrefix

public void setSchemaObjectPrefix(java.lang.String schemaObjectPrefix)

isExternalBLOBs

public boolean isExternalBLOBs()

setExternalBLOBs

public void setExternalBLOBs(boolean externalBLOBs)

setExternalBLOBs

public void setExternalBLOBs(java.lang.String externalBLOBs)

init

public void init(PMContext context)
          throws java.lang.Exception
Throws:
java.lang.Exception

loadProperties

private static void loadProperties()
                            throws java.lang.Exception
Throws:
java.lang.Exception

exists

public boolean exists(NodeId node)
               throws ItemStateException
Throws:
ItemStateException

load

public NodeState load(NodeId node)
               throws NoSuchItemStateException,
                      ItemStateException
Throws:
NoSuchItemStateException
ItemStateException

store

private void store(NodeState state)
            throws ItemStateException
Throws:
ItemStateException

update

private void update(NodeState state)
             throws ItemStateException
Throws:
ItemStateException

destroy

private void destroy(NodeState state)
              throws ItemStateException
This is called by store(Changelog) this should not be called anywhere else

Throws:
ItemStateException

close

public void close()
           throws java.lang.Exception
Throws:
java.lang.Exception

createNew

public NodeState createNew(NodeId id)
{@inheritDoc}


createBlob

private java.sql.Blob createBlob(byte[] bytes)

storeHB

public void storeHB(ChangeLog changeLog)
             throws ItemStateException
Throws:
ItemStateException

exists

private boolean exists(java.lang.String query,
                       java.lang.String id)
                throws ItemStateException
Throws:
ItemStateException

logException

protected void logException(java.lang.String message,
                            java.sql.SQLException se)