SPT Core API

com.sptci.echo2
Class JDOApplication

java.lang.Object
  extended by nextapp.echo2.app.ApplicationInstance
      extended by com.sptci.echo2.Application
          extended by com.sptci.echo2.NonTransactionalJDOApplication
              extended by 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

Field Summary
 
Fields inherited from class com.sptci.echo2.NonTransactionalJDOApplication
persistenceManager
 
Fields inherited from class com.sptci.echo2.Application
contentPane, dataDirectory, logger, MINIMUM_INTERVAL, pollingInterval, principal, properties, TIME_ZONES, timeZone, user, window
 
Fields inherited from class nextapp.echo2.app.ApplicationInstance
FOCUSED_COMPONENT_CHANGED_PROPERTY, ID_STRING, LOCALE_CHANGED_PROPERTY, MODAL_COMPONENTS_CHANGED_PROPERTY, WINDOWS_CHANGED_PROPERTY
 
Constructor Summary
JDOApplication()
          Default constructor.
 
Method Summary
protected  void activated()
          Initialise NonTransactionalJDOApplication.persistenceManager when this instance is about to be activated to process a user request.
protected  void deactivating()
          Close NonTransactionalJDOApplication.persistenceManager when this instance is about to be deactivated from service.
static JDOApplication getApplication()
          Convenience method to return the active application as a properly typed object.
 
Methods inherited from class com.sptci.echo2.NonTransactionalJDOApplication
activate, closePersistenceManager, dispose, getPersistenceManager, openPersistenceManager, passivate
 
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
 

Constructor Detail

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()
Method Detail

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

SPT Core API