|
SPT Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnextapp.echo.app.ApplicationInstance
com.sptci.echo.Application
com.sptci.echo.JDOApplication
public class JDOApplication
An application class that maintains a JDO PersistenceManager
for the lifecycle of the session. This class does not provide
any built in Transaction management. Use this class if
you want precise control over the Transaction boundary.
Copyright 2007 Sans Pareil Technologies, Inc.
| Field Summary | |
|---|---|
protected javax.jdo.PersistenceManager |
persistenceManager
The persistence manager instance that is to be used for the current session. |
| Fields inherited from class com.sptci.echo.Application |
|---|
contentPane, dataDirectory, logger, MINIMUM_INTERVAL, pollingInterval, principal, properties, TIME_ZONES, timeZone, user, window |
| Fields inherited from class nextapp.echo.app.ApplicationInstance |
|---|
FOCUSED_COMPONENT_CHANGED_PROPERTY, ID_STRING, LOCALE_CHANGED_PROPERTY, MODAL_COMPONENTS_CHANGED_PROPERTY, STYLE_SHEET_CHANGED_PROPERTY, WINDOWS_CHANGED_PROPERTY |
| Constructor Summary | |
|---|---|
JDOApplication()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
activate()
Over-ridden to open a persistence manager if necessary. |
protected void |
closePersistenceManager()
Close persistenceManager when it is no longer necessary. |
void |
dispose()
Invoked when the application is disposed and will not be used again. |
static JDOApplication |
getApplication()
Convenience method to return the active application as a properly typed object. |
static javax.jdo.PersistenceManager |
getPersistenceManager()
Returns persistenceManager. |
protected void |
openPersistenceManager()
Initialiase persistenceManager if necessary. |
void |
passivate()
Over-ridden to close the persistenceManager if necessary. |
| Methods inherited from class com.sptci.echo.Application |
|---|
addPane, addTask, getContentPane, getDataDirectory, getLocales, getLogger, getOffset, getParentView, getPrincipal, getProperty, getTimeZone, getUser, getWindow, getZIndex, hasQueuedTasks, init, processFatalException, processFatalException, removePane, removeTask, setContentPane, setDataDirectory, setPrincipal, setProperty, setUser, updatePollingInterval |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected transient javax.jdo.PersistenceManager persistenceManager
session.
| Constructor Detail |
|---|
public JDOApplication()
throws javax.jdo.JDOException
persistenceManager.
javax.jdo.JDOException - If errors are encountered while initialising
persistenceManager.| Method Detail |
|---|
public static JDOApplication getApplication()
Application instance.public static javax.jdo.PersistenceManager getPersistenceManager()
persistenceManager.
public void activate()
activate in class ApplicationInstancepublic void passivate()
persistenceManager if necessary.
passivate in class ApplicationInstanceclosePersistenceManager()public void dispose()
persistenceManager.
dispose in class ApplicationInstanceclosePersistenceManager(),
ApplicationInstance.dispose()protected void openPersistenceManager()
persistenceManager if necessary.
protected void closePersistenceManager()
persistenceManager when it is no longer necessary. This
is usually called when the instance is being dispose()d or
passivate()ed.
|
SPT Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||