|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exolab.core.service.Service
org.exolab.jms.persistence.DatabaseService
public class DatabaseService
The DatabaseService is used for managing the persistence aspect of this project.
| Method Summary | |
|---|---|
static PersistenceAdapter |
getAdapter()
Return the PersistenceAdapter created by this service. |
static java.sql.Connection |
getConnection()
Convenience function to return a connection to the PersistenceAdapter |
static DatabaseService |
instance()
Return the singleton instance of the DatabaseService |
void |
start()
|
void |
stop()
|
| Methods inherited from class org.exolab.core.service.Service |
|---|
getName, getState, restart, setState, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static DatabaseService instance()
throws PersistenceException
PersistenceExceptionpublic static PersistenceAdapter getAdapter()
PersistenceAdapter created by this service. This will
always be non-null.
public static java.sql.Connection getConnection()
throws PersistenceException
PersistenceException - - if no connection could be retrieved
or another error occured.
public void start()
throws org.exolab.core.service.ServiceException
start in interface org.exolab.core.service.Serviceablestart in class org.exolab.core.service.Serviceorg.exolab.core.service.ServiceException
public void stop()
throws org.exolab.core.service.ServiceException
stop in interface org.exolab.core.service.Serviceablestop in class org.exolab.core.service.Serviceorg.exolab.core.service.ServiceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||