当前页面:
在线文档首页 >
JBOSS Portal 2.4 API 英文版文档
HibernatePersistenceManager - JBOSS Portal 2.4 API 英文版文档
org.jboss.portal.cms.hibernate.state
Class HibernatePersistenceManager
java.lang.Object
org.jboss.portal.cms.hibernate.state.HibernatePersistenceManager
- All Implemented Interfaces:
- org.apache.jackrabbit.core.state.PersistenceManager
- public class HibernatePersistenceManager
- extends java.lang.Object
- implements org.apache.jackrabbit.core.state.PersistenceManager
Method Summary |
void |
close()
|
org.apache.jackrabbit.core.state.NodeState |
createNew(org.apache.jackrabbit.core.NodeId id)
|
org.apache.jackrabbit.core.state.PropertyState |
createNew(org.apache.jackrabbit.core.PropertyId id)
|
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)
|
protected boolean |
exists(java.lang.String blobid)
|
java.lang.String |
getJNDIName()
|
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 |
setExternalBLOBs(boolean externalBLOBs)
|
void |
setExternalBLOBs(java.lang.String externalBLOBs)
|
void |
setJNDIName(java.lang.String JNDIName)
|
void |
setSchemaObjectPrefix(java.lang.String schemaObjectPrefix)
|
void |
store(org.apache.jackrabbit.core.state.ChangeLog changeLog)
|
void |
storeHB(org.apache.jackrabbit.core.state.ChangeLog changeLog)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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 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
)
HibernatePersistenceManager
public HibernatePersistenceManager()
- Creates a new
SimpleDbPersistenceManager
instance.
init
public void init(org.apache.jackrabbit.core.state.PMContext context)
throws java.lang.Exception
- Specified by:
init
in interface org.apache.jackrabbit.core.state.PersistenceManager
- Throws:
java.lang.Exception
close
public void close()
throws java.lang.Exception
- Specified by:
close
in interface org.apache.jackrabbit.core.state.PersistenceManager
- Throws:
java.lang.Exception
createNew
public org.apache.jackrabbit.core.state.NodeState createNew(org.apache.jackrabbit.core.NodeId id)
-
- Specified by:
createNew
in interface org.apache.jackrabbit.core.state.PersistenceManager
createNew
public org.apache.jackrabbit.core.state.PropertyState createNew(org.apache.jackrabbit.core.PropertyId id)
-
- Specified by:
createNew
in interface org.apache.jackrabbit.core.state.PersistenceManager
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(org.apache.jackrabbit.core.state.ChangeLog changeLog)
throws org.apache.jackrabbit.core.state.ItemStateException
- Specified by:
store
in interface org.apache.jackrabbit.core.state.PersistenceManager
- Throws:
org.apache.jackrabbit.core.state.ItemStateException
storeHB
public void storeHB(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
- Specified by:
load
in interface org.apache.jackrabbit.core.state.PersistenceManager
- 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
- Specified by:
load
in interface org.apache.jackrabbit.core.state.PersistenceManager
- Throws:
org.apache.jackrabbit.core.state.NoSuchItemStateException
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
- Specified by:
load
in interface org.apache.jackrabbit.core.state.PersistenceManager
- Throws:
org.apache.jackrabbit.core.state.NoSuchItemStateException
org.apache.jackrabbit.core.state.ItemStateException
exists
public boolean exists(org.apache.jackrabbit.core.NodeId id)
throws org.apache.jackrabbit.core.state.ItemStateException
- Specified by:
exists
in interface org.apache.jackrabbit.core.state.PersistenceManager
- Throws:
org.apache.jackrabbit.core.state.ItemStateException
exists
protected 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
- Specified by:
exists
in interface org.apache.jackrabbit.core.state.PersistenceManager
- 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
- Specified by:
exists
in interface org.apache.jackrabbit.core.state.PersistenceManager
- Throws:
org.apache.jackrabbit.core.state.ItemStateException
logException
protected void logException(java.lang.String message,
java.sql.SQLException se)