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

HibernatePersistenceManager - JBOSS Portal 2.6 API 英文版文档


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

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

public class HibernatePersistenceManager
extends java.lang.Object

Author:
Roy Russo, Thomas Heute

Nested Class Summary
(package private)  class HibernatePersistenceManager.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
           
private  org.hibernate.SessionFactory hibernateSessionFactory
           
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
           
protected  java.lang.String nodeReferenceSelect
           
protected  java.lang.String nodeReferenceSelectData
           
protected  java.lang.String nodeReferenceSelectExist
           
protected  java.lang.String nodeStateSelect
           
protected  java.lang.String nodeStateSelectData
           
protected  java.lang.String nodeStateSelectExist
           
protected  java.lang.String propertyStateSelect
           
protected  java.lang.String propertyStateSelectData
           
protected  java.lang.String propertyStateSelectExist
           
protected static java.lang.String SCHEMA_OBJECT_PREFIX_VARIABLE
           
protected  java.lang.String schemaObjectPrefix
           
 
Constructor Summary
HibernatePersistenceManager()
          Creates a new SimpleDbPersistenceManager instance.
 
Method Summary
 void close()
           
private  void closeSession(org.hibernate.Session session)
           
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 id)
           
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 id)
           
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)
           
 void store(ChangeLog changeLog)
           
 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

hibernateSessionFactory

private org.hibernate.SessionFactory hibernateSessionFactory

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

nodeStateSelect

protected java.lang.String nodeStateSelect

nodeStateSelectData

protected java.lang.String nodeStateSelectData

nodeStateSelectExist

protected java.lang.String nodeStateSelectExist

propertyStateSelect

protected java.lang.String propertyStateSelect

propertyStateSelectData

protected java.lang.String propertyStateSelectData

propertyStateSelectExist

protected java.lang.String propertyStateSelectExist

nodeReferenceSelect

protected java.lang.String nodeReferenceSelect

nodeReferenceSelectData

protected java.lang.String nodeReferenceSelectData

nodeReferenceSelectExist

protected java.lang.String nodeReferenceSelectExist

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)

Constructor Detail

HibernatePersistenceManager

public HibernatePersistenceManager()
Creates a new SimpleDbPersistenceManager instance.

Method Detail

init

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

close

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

createNew

public NodeState createNew(NodeId id)
{@inheritDoc}


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)

store

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

closeSession

private void closeSession(org.hibernate.Session session)

storeHB

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

load

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

createBlob

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

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

exists

public boolean exists(NodeId id)
               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)