public class NonTransactionalJDOApplication extends Application
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. Use
the JDOApplication subclass if you wish to avoid the semantics of
Transaction boundaries.
Copyright 2007 Sans Pareil Technologies, Inc.
| Modifier and Type | Field and Description |
|---|---|
protected javax.jdo.PersistenceManager |
persistenceManager
The persistence manager instance that is to be used for the current
session. |
contentPane, dataDirectory, logger, MINIMUM_INTERVAL, pollingInterval, principal, properties, TIME_ZONES, timeZone, user, windowFOCUSED_COMPONENT_CHANGED_PROPERTY, ID_STRING, LOCALE_CHANGED_PROPERTY, MODAL_COMPONENTS_CHANGED_PROPERTY, WINDOWS_CHANGED_PROPERTY| Constructor and Description |
|---|
NonTransactionalJDOApplication()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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 NonTransactionalJDOApplication |
getApplication()
Convenience method to return the active application as a properly typed
object.
|
javax.jdo.PersistenceManager |
getPersistenceManager()
Returns
persistenceManager. |
protected void |
openPersistenceManager()
Initialiase
persistenceManager if necessary. |
void |
passivate()
Over-ridden to close the
persistenceManager if necessary. |
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, updatePollingIntervalactivated, addPropertyChangeListener, createTaskQueue, deactivating, 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, setStyleSheetprotected transient javax.jdo.PersistenceManager persistenceManager
session.public NonTransactionalJDOApplication()
throws javax.jdo.JDOException
persistenceManager.javax.jdo.JDOException - If errors are encountered while initialising
persistenceManager.public static NonTransactionalJDOApplication getApplication()
Application instance.public 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 ApplicationInstanceApplicationInstance.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.