|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.bsf.smartValueObject.mediator.HibernateMediator
Mediator for Hibernate.
Field Summary | |
private org.bsf.smartValueObject.mediator.MediatorConfig |
config
|
private static java.lang.Object |
DBNAME
|
private java.lang.String |
indexField
|
private static org.apache.commons.logging.Log |
log
|
private static java.lang.String |
PASSWORD
|
private net.sf.hibernate.SessionFactory |
sessions
|
private static java.lang.String |
USERNAME
|
Fields inherited from interface org.bsf.smartValueObject.mediator.Mediator |
INDEXFIELD |
Constructor Summary | |
HibernateMediator(org.bsf.smartValueObject.mediator.MediatorConfig config)
|
Method Summary | |
void |
deleteGraph(java.lang.Object graph)
Deletes a graph. |
java.lang.Object |
getGraph(java.lang.Object prototype)
Retrieves a graph based on given prototype. |
private java.util.Properties |
getHsqlDbProperties()
Gets configuration for HsqlDB. |
private java.util.Properties |
getMySqlProperties()
Gets configuration for MySQL. |
private java.lang.Object |
getPK(java.lang.Object o)
Gets primary key from object (from the field specied in indexField). |
private void |
initHibernate(java.util.Collection classes)
|
org.bsf.smartValueObject.mediator.ChangeSummary |
updateGraph(java.lang.Object graph)
Stores a graph. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final org.apache.commons.logging.Log log
private net.sf.hibernate.SessionFactory sessions
private static final java.lang.String USERNAME
private static final java.lang.String PASSWORD
private static final java.lang.Object DBNAME
private java.lang.String indexField
private org.bsf.smartValueObject.mediator.MediatorConfig config
Constructor Detail |
public HibernateMediator(org.bsf.smartValueObject.mediator.MediatorConfig config)
Method Detail |
private void initHibernate(java.util.Collection classes)
private java.util.Properties getMySqlProperties()
private java.util.Properties getHsqlDbProperties()
public java.lang.Object getGraph(java.lang.Object prototype) throws MediatorException
getGraph
in interface Mediator
prototype
- a prototype to obtain a initialized graph.
MediatorException
public org.bsf.smartValueObject.mediator.ChangeSummary updateGraph(java.lang.Object graph) throws MediatorException
updateGraph
in interface Mediator
graph
- the root element of the graph.
MediatorException
public void deleteGraph(java.lang.Object graph) throws MediatorException
deleteGraph
in interface Mediator
graph
- the root element of the graph.
MediatorException
private java.lang.Object getPK(java.lang.Object o) throws MediatorException
o
-
MediatorException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |