|
||||||||||
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.HibernatePersistenceManager
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 |
private static org.apache.log4j.Logger log
protected static final java.lang.String SCHEMA_OBJECT_PREFIX_VARIABLE
private org.hibernate.SessionFactory hibernateSessionFactory
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 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 nodeReferenceSelect
protected java.lang.String nodeReferenceSelectData
protected java.lang.String nodeReferenceSelectExist
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
)
Constructor Detail |
public HibernatePersistenceManager()
SimpleDbPersistenceManager
instance.
Method Detail |
public void init(PMContext context) throws java.lang.Exception
java.lang.Exception
public void close() throws java.lang.Exception
java.lang.Exception
public NodeState createNew(NodeId id)
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 store(ChangeLog changeLog) throws ItemStateException
ItemStateException
private void closeSession(org.hibernate.Session session)
public void storeHB(ChangeLog changeLog) throws ItemStateException
ItemStateException
public NodeState load(NodeId id) throws NoSuchItemStateException, ItemStateException
NoSuchItemStateException
ItemStateException
private java.sql.Blob createBlob(byte[] bytes)
private void update(NodeState state) throws ItemStateException
ItemStateException
private void destroy(NodeState state) throws ItemStateException
ItemStateException
public boolean exists(NodeId id) 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 |