com.sptci.echo2
Class JDOApplication
java.lang.Object
nextapp.echo2.app.ApplicationInstance
com.sptci.echo2.Application
com.sptci.echo2.NonTransactionalJDOApplication
com.sptci.echo2.JDOApplication
- All Implemented Interfaces:
- Serializable
public class JDOApplication
- extends NonTransactionalJDOApplication
An application class that maintains a JDO PersistenceManager
for the lifecycle of the session. In addition, this instance
provides automatic Transaction management by starting a
new Transaction at the inception of a request, and
committing the Transaction at the end of the
request.
© Copyright 2007 Sans Pareil Technologies, Inc.
- Version:
- $Id: JDOApplication.java 4553 2008-12-24 10:34:16Z rakesh $
- Author:
- Rakesh Vidyadharan 2007-03-02
- See Also:
- Serialized Form
| Fields inherited from class com.sptci.echo2.Application |
contentPane, dataDirectory, logger, MINIMUM_INTERVAL, pollingInterval, principal, properties, TIME_ZONES, timeZone, user, window |
| Methods inherited from class com.sptci.echo2.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 nextapp.echo2.app.ApplicationInstance |
addPropertyChangeListener, createTaskQueue, doInit, doValidation, enqueueCommand, enqueueTask, firePropertyChange, generateId, generateSystemId, getActive, getComponentByRenderId, getContextProperty, getDefaultWindow, getFocusedComponent, getLayoutDirection, getLocale, getModalContextRoot, getStyle, getStyleSheet, getUpdateManager, hasTaskQueues, processInput, processQueuedTasks, removePropertyChangeListener, removeTaskQueue, setActive, setContextProperty, setFocusedComponent, setLocale, setStyleSheet |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JDOApplication
public JDOApplication()
throws javax.jdo.JDOException
- Default constructor.
- Throws:
javax.jdo.JDOException - If errors are encountered while initialising
NonTransactionalJDOApplication.persistenceManager.- See Also:
NonTransactionalJDOApplication.NonTransactionalJDOApplication()
getApplication
public static JDOApplication getApplication()
- Convenience method to return the active application as a properly typed
object.
- Returns:
- The currently active
Application instance.
activated
protected void activated()
- Initialise
NonTransactionalJDOApplication.persistenceManager when this instance is about to
be activated to process a user request.
- Overrides:
activated in class ApplicationInstance
deactivating
protected void deactivating()
- Close
NonTransactionalJDOApplication.persistenceManager when this instance is about to
be deactivated from service.
- Overrides:
deactivating in class ApplicationInstance