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

HibernatePersistenceManager - JBOSS Portal 2.2 API 英文版文档


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

java.lang.Object
  extended byorg.apache.jackrabbit.core.state.AbstractPersistenceManager
      extended byorg.jboss.portal.cms.hibernate.state.HibernatePersistenceManager
All Implemented Interfaces:
org.apache.jackrabbit.core.state.PersistenceManager

public class HibernatePersistenceManager
extends org.apache.jackrabbit.core.state.AbstractPersistenceManager


Field Summary
protected  java.lang.String auto
           
protected  java.lang.String autocommit
           
protected  java.lang.String batch_size
           
protected  org.apache.jackrabbit.core.fs.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  org.apache.jackrabbit.core.state.util.BLOBStore blobStore
          BLOBStore that manages BLOB data in the file system (if externalBLOBs==true)
protected  java.lang.String datasource
           
protected  boolean externalBLOBs
           
protected static int INITIAL_BUFFER_SIZE
           
protected  boolean initialized
           
protected  java.lang.String isolation
           
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  java.lang.String provider_class
           
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()
           
protected  void closeStream(java.io.InputStream in)
           
 void destroy(org.apache.jackrabbit.core.state.NodeReferences refs)
           
 void destroy(org.apache.jackrabbit.core.state.NodeState state)
           
 void destroy(org.apache.jackrabbit.core.state.PropertyState state)
           
 boolean exists(org.apache.jackrabbit.core.NodeId id)
           
 boolean exists(org.apache.jackrabbit.core.state.NodeReferencesId targetId)
           
 boolean exists(org.apache.jackrabbit.core.PropertyId id)
           
 boolean exists(java.lang.String blobid)
           
 java.lang.String getAuto()
           
 java.lang.String getAutocommit()
           
 java.lang.String getBatch_size()
           
 java.lang.String getDatasource()
           
 java.lang.String getIsolation()
           
protected  org.hibernate.Session getNewConnection()
           
 java.lang.String getProvider_class()
           
 java.lang.String getSchemaObjectPrefix()
           
 void init(org.apache.jackrabbit.core.state.PMContext context)
           
 boolean isExternalBLOBs()
           
 org.apache.jackrabbit.core.state.NodeState load(org.apache.jackrabbit.core.NodeId id)
           
 org.apache.jackrabbit.core.state.NodeReferences load(org.apache.jackrabbit.core.state.NodeReferencesId targetId)
           
 org.apache.jackrabbit.core.state.PropertyState load(org.apache.jackrabbit.core.PropertyId id)
           
protected  void logException(java.lang.String message, java.sql.SQLException se)
           
 void setAuto(java.lang.String auto)
           
 void setAutocommit(java.lang.String autocommit)
           
 void setBatch_size(java.lang.String batch_size)
           
 void setDatasource(java.lang.String datasource)
           
 void setExternalBLOBs(boolean externalBLOBs)
           
 void setExternalBLOBs(java.lang.String externalBLOBs)
           
 void setIsolation(java.lang.String isolation)
           
 void setProvider_class(java.lang.String provider_class)
           
 void setSchemaObjectPrefix(java.lang.String schemaObjectPrefix)
           
 void store(org.apache.jackrabbit.core.state.ChangeLog changeLog)
           
 void store(org.apache.jackrabbit.core.state.NodeReferences refs)
          

This method uses shared PreparedStatements which must be executed strictly sequentially.

 void store(org.apache.jackrabbit.core.state.NodeState state)
          

This method uses shared PreparedStatements which must be executed strictly sequentially.

 void store(org.apache.jackrabbit.core.state.PropertyState state)
          

This method uses shared PreparedStatements which must be executed strictly sequentially.

 
Methods inherited from class org.apache.jackrabbit.core.state.AbstractPersistenceManager
createNew, createNew
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCHEMA_OBJECT_PREFIX_VARIABLE

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

initialized

protected boolean initialized

datasource

protected java.lang.String datasource

batch_size

protected java.lang.String batch_size

isolation

protected java.lang.String isolation

auto

protected java.lang.String auto

autocommit

protected java.lang.String autocommit

provider_class

protected java.lang.String provider_class

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

blobFS

protected org.apache.jackrabbit.core.fs.FileSystem blobFS
file system where BLOB data is stored (if externalBLOBs==true)


blobStore

protected org.apache.jackrabbit.core.state.util.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

getDatasource

public java.lang.String getDatasource()

setDatasource

public void setDatasource(java.lang.String datasource)

getBatch_size

public java.lang.String getBatch_size()

setBatch_size

public void setBatch_size(java.lang.String batch_size)

getIsolation

public java.lang.String getIsolation()

setIsolation

public void setIsolation(java.lang.String isolation)

getAuto

public java.lang.String getAuto()

setAuto

public void setAuto(java.lang.String auto)

getAutocommit

public java.lang.String getAutocommit()

setAutocommit

public void setAutocommit(java.lang.String autocommit)

getProvider_class

public java.lang.String getProvider_class()

setProvider_class

public void setProvider_class(java.lang.String provider_class)

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(org.apache.jackrabbit.core.state.PMContext context)
          throws java.lang.Exception
Throws:
java.lang.Exception

close

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

store

public void store(org.apache.jackrabbit.core.state.ChangeLog changeLog)
           throws org.apache.jackrabbit.core.state.ItemStateException
Throws:
org.apache.jackrabbit.core.state.ItemStateException

load

public org.apache.jackrabbit.core.state.NodeState load(org.apache.jackrabbit.core.NodeId id)
                                                throws org.apache.jackrabbit.core.state.NoSuchItemStateException,
                                                       org.apache.jackrabbit.core.state.ItemStateException
Throws:
org.apache.jackrabbit.core.state.NoSuchItemStateException
org.apache.jackrabbit.core.state.ItemStateException

load

public org.apache.jackrabbit.core.state.PropertyState load(org.apache.jackrabbit.core.PropertyId id)
                                                    throws org.apache.jackrabbit.core.state.NoSuchItemStateException,
                                                           org.apache.jackrabbit.core.state.ItemStateException
Throws:
org.apache.jackrabbit.core.state.NoSuchItemStateException
org.apache.jackrabbit.core.state.ItemStateException

store

public void store(org.apache.jackrabbit.core.state.NodeState state)
           throws org.apache.jackrabbit.core.state.ItemStateException

This method uses shared PreparedStatements which must be executed strictly sequentially. Because this method synchronizes on the persistence manager instance there is no need to synchronize on the shared statement. If the method would not be sychronized the shared statements would have to be synchronized.

Throws:
org.apache.jackrabbit.core.state.ItemStateException

store

public void store(org.apache.jackrabbit.core.state.PropertyState state)
           throws org.apache.jackrabbit.core.state.ItemStateException

This method uses shared PreparedStatements which must be executed strictly sequentially. Because this method synchronizes on the persistence manager instance there is no need to synchronize on the shared statement. If the method would not be sychronized the shared statements would have to be synchronized.

Throws:
org.apache.jackrabbit.core.state.ItemStateException

destroy

public void destroy(org.apache.jackrabbit.core.state.NodeState state)
             throws org.apache.jackrabbit.core.state.ItemStateException
Throws:
org.apache.jackrabbit.core.state.ItemStateException

destroy

public void destroy(org.apache.jackrabbit.core.state.PropertyState state)
             throws org.apache.jackrabbit.core.state.ItemStateException
Throws:
org.apache.jackrabbit.core.state.ItemStateException

load

public org.apache.jackrabbit.core.state.NodeReferences load(org.apache.jackrabbit.core.state.NodeReferencesId targetId)
                                                     throws org.apache.jackrabbit.core.state.NoSuchItemStateException,
                                                            org.apache.jackrabbit.core.state.ItemStateException
Throws:
org.apache.jackrabbit.core.state.NoSuchItemStateException
org.apache.jackrabbit.core.state.ItemStateException

store

public void store(org.apache.jackrabbit.core.state.NodeReferences refs)
           throws org.apache.jackrabbit.core.state.ItemStateException

This method uses shared PreparedStatements which must be executed strictly sequentially. Because this method synchronizes on the persistence manager instance there is no need to synchronize on the shared statement. If the method would not be sychronized the shared statements would have to be synchronized.

Throws:
org.apache.jackrabbit.core.state.ItemStateException

destroy

public void destroy(org.apache.jackrabbit.core.state.NodeReferences refs)
             throws org.apache.jackrabbit.core.state.ItemStateException
Throws:
org.apache.jackrabbit.core.state.ItemStateException

exists

public boolean exists(org.apache.jackrabbit.core.NodeId id)
               throws org.apache.jackrabbit.core.state.ItemStateException
Throws:
org.apache.jackrabbit.core.state.ItemStateException

exists

public boolean exists(java.lang.String blobid)
               throws org.apache.jackrabbit.core.state.ItemStateException
Throws:
org.apache.jackrabbit.core.state.ItemStateException

exists

public boolean exists(org.apache.jackrabbit.core.PropertyId id)
               throws org.apache.jackrabbit.core.state.ItemStateException
Throws:
org.apache.jackrabbit.core.state.ItemStateException

exists

public boolean exists(org.apache.jackrabbit.core.state.NodeReferencesId targetId)
               throws org.apache.jackrabbit.core.state.ItemStateException
Throws:
org.apache.jackrabbit.core.state.ItemStateException

closeStream

protected void closeStream(java.io.InputStream in)

logException

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

getNewConnection

protected org.hibernate.Session getNewConnection()
                                          throws org.hibernate.HibernateException
Throws:
org.hibernate.HibernateException