|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.xoetrope.optional.data.sql.DatabaseLifecycleListener
public class DatabaseLifecycleListener
A shutdown/lifecycle listener designed for database like the standalone or
in-memory version of HSQLDB. The listener calls SHUTDOWN on the database
so as to give the database a chance to save any modified tables and records
before the JVM exits. The listener is added by referencing it in the startup
properties vile via the LifeCycleListener entry.
Copyright (c) Xoetrope Ltd., 2002-2006. See license.txt for license details
$Revision: 2.1 $
| Field Summary | |
|---|---|
protected XProject |
currentProject
|
| Constructor Summary | |
|---|---|
DatabaseLifecycleListener()
|
|
| Method Summary | |
|---|---|
boolean |
canClose(XProject project)
Can the current project close? |
void |
initialize(XProject project)
Called when the application/applet has been created and initialized. |
void |
shutdown()
Called when the application/applet has been shutdown and is about to exit. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected XProject currentProject
| Constructor Detail |
|---|
public DatabaseLifecycleListener()
| Method Detail |
|---|
public void initialize(XProject project)
initialize in interface XLifeCycleListenerproject - the owner projectpublic void shutdown()
shutdown in interface XLifeCycleListenerpublic boolean canClose(XProject project)
canClose in interface XLifeCycleListenerproject - the project initiating the shutdown
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||