|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.formaria.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) Formaria Ltd., 2008. See license.txt for license details
$Revision: 2.1 $
| Field Summary | |
|---|---|
protected Project |
currentProject
|
| Constructor Summary | |
|---|---|
DatabaseLifecycleListener()
|
|
| Method Summary | |
|---|---|
boolean |
canClose(Project project)
Can the current project close? |
void |
initialize(Project 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 Project currentProject
| Constructor Detail |
|---|
public DatabaseLifecycleListener()
| Method Detail |
|---|
public void initialize(Project project)
initialize in interface LifeCycleListenerproject - the owner projectpublic void shutdown()
shutdown in interface LifeCycleListenerpublic boolean canClose(Project project)
canClose in interface LifeCycleListenerproject - the project initiating the shutdown
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||