|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.h2.server.web.DbStarter
public class DbStarter
This class can be used to start the H2 TCP server (or other H2 servers, for example the PG server) inside a web application container such as Tomcat or Jetty. It can also open a database connection.
| Constructor Summary | |
|---|---|
DbStarter()
|
|
| Method Summary | |
|---|---|
void |
contextDestroyed(ServletContextEvent servletContextEvent)
|
void |
contextInitialized(ServletContextEvent servletContextEvent)
|
java.sql.Connection |
getConnection()
Get the connection. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DbStarter()
| Method Detail |
|---|
public void contextInitialized(ServletContextEvent servletContextEvent)
public java.sql.Connection getConnection()
public void contextDestroyed(ServletContextEvent servletContextEvent)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||