|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--dtw.webmail.plugin.std.CastorHelper
An utility/helper class with common functionality for the standard Castor based plugin implementations.
Method Summary | |
CastorDatabasePool |
getDatabasePool()
Returns the pool of Castor JDO Database instances. |
org.exolab.castor.jdo.Database |
getJDODatabase()
Returns a Castor JDO database. |
static CastorHelper |
getReference()
Returns a reference to the singleton instance of the CastorHelper. |
void |
marshal(java.lang.Object object,
java.io.Writer writer)
Marshals an object to the given writer. |
void |
prepareJDO(java.lang.String configurl)
Prepares Castor JDO, with configuration (i.e. |
java.lang.Object |
unmarshal(java.io.Reader reader)
Unmarshalls an object from the given reader. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public void marshal(java.lang.Object object, java.io.Writer writer) throws JwmaException
object
- the instance to be marshalled.writer
- the Writer.
JwmaException
- on failure.public java.lang.Object unmarshal(java.io.Reader reader) throws JwmaException
reader
- the Reader.
JwmaException
public void prepareJDO(java.lang.String configurl) throws JwmaException
configurl
- the URL to the configuration file.
JwmaException
public org.exolab.castor.jdo.Database getJDODatabase() throws JwmaException
JwmaException
public CastorDatabasePool getDatabasePool()
public static CastorHelper getReference()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |