|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.Application
org.apache.wicket.protocol.http.WebApplication
net.databinder.DataApplicationBase
net.databinder.hib.DataApplication
public abstract class DataApplication
Optional Databinder base Application class for configuration and session management. Supports multiple session factories with key objects.
| Nested Class Summary | |
|---|---|
static class |
DataApplication.BmarkDataBrowser
Bookmarkable subclass of DataBrowser page. |
| Field Summary |
|---|
| Fields inherited from class org.apache.wicket.Application |
|---|
CONFIGURATION, CONTEXTPATH, DEPLOYMENT, DEVELOPMENT |
| Constructor Summary | |
|---|---|
DataApplication()
|
|
| Method Summary | |
|---|---|
void |
buildHibernateSessionFactory(java.lang.Object key)
Called by init to create Hibernate session factory and load a configuration. |
void |
buildHibernateSessionFactory(java.lang.Object key,
org.hibernate.cfg.AnnotationConfiguration config)
Builds and a session factory with the given configuration. |
protected void |
configureHibernate(org.hibernate.cfg.AnnotationConfiguration config)
Configures the default session factory; override to add annotated classes but don't forget to call this super-implementation if you want its defaults. |
protected void |
configureHibernate(org.hibernate.cfg.AnnotationConfiguration config,
java.lang.Object key)
Configures the session factory associated with the key. |
protected void |
configureHibernateEssentials(org.hibernate.cfg.AnnotationConfiguration config)
For Hibernate settings that should not normally be overriden by client applications. |
protected void |
dataInit()
Initializes a default Hibernate session factory and mounts a page for the data browser. |
org.hibernate.SessionFactory |
getHibernateSessionFactory(java.lang.Object key)
Supply the session factory for the given key. |
protected boolean |
isDataBrowserAllowed()
Returns true if development mode is enabled. |
protected void |
mountDataBrowser()
Mounts Data Diver to /dbrowse. |
org.apache.wicket.RequestCycle |
newRequestCycle(org.apache.wicket.Request request,
org.apache.wicket.Response response)
|
protected void |
setHibernateSessionFactory(java.lang.Object key,
org.hibernate.SessionFactory sf)
|
| Methods inherited from class net.databinder.DataApplicationBase |
|---|
internalInit, isCookielessSupported, isDevelopment, newConverterLocator, newWebResponse, setCookielessSupported |
| Methods inherited from class org.apache.wicket.protocol.http.WebApplication |
|---|
getApplicationKey, getConfigurationType, getDefaultRequestCycleFactory, getInitParameter, getRequestCycleProcessor, getResourceFinder, getServletContext, getSessionAttributePrefix, getWicketFilter, init, internalDestroy, logEventTarget, logResponseTarget, mount, mount, mountBookmarkablePage, mountBookmarkablePage, mountSharedResource, newAjaxRequestTarget, newRequestCycleProcessor, newSession, newSession, newSession, newSessionStore, newWebRequest, outputDevelopmentModeWarning, sessionDestroyed, setApplicationKey, setWicketFilter, unmount |
| Methods inherited from class org.apache.wicket.Application |
|---|
addComponentInstantiationListener, addComponentOnAfterRenderListener, addComponentOnBeforeRenderListener, addRenderHeadListener, configure, destroy, exists, get, get, getApplicationKeys, getApplicationSettings, getConverterLocator, getDebugSettings, getExceptionSettings, getFrameworkSettings, getHomePage, getMarkupCache, getMarkupSettings, getMetaData, getName, getPageSettings, getRequestCycleFactory, getRequestCycleSettings, getRequestLogger, getRequestLoggerSettings, getResourceSettings, getSecuritySettings, getSessionFactory, getSessionSettings, getSessionStore, getSharedResources, initializeComponents, newRequestCycle, newRequestLogger, notifyRenderHeadListener, onDestroy, removeComponentInstantiationListener, removeComponentOnAfterRenderListener, removeComponentOnBeforeRenderListener, removeRenderHeadListener, set, setMetaData, unset |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataApplication()
| Method Detail |
|---|
protected void dataInit()
dataInit in class DataApplicationBaseaoe,
mountDataBrowser()protected void mountDataBrowser()
public void buildHibernateSessionFactory(java.lang.Object key)
key - session factory key; the default key is null
public final void buildHibernateSessionFactory(java.lang.Object key,
org.hibernate.cfg.AnnotationConfiguration config)
key - session factory key; the default key is nullconfig - annotation conifurationconfigureHibernateEssentials(AnnotationConfiguration),
configureHibernate(AnnotationConfiguration, Object)
protected void configureHibernate(org.hibernate.cfg.AnnotationConfiguration config,
java.lang.Object key)
config - configuration to updatekey - object, or null for the default factoryprotected void configureHibernateEssentials(org.hibernate.cfg.AnnotationConfiguration config)
config - Hibernate configurationprotected void configureHibernate(org.hibernate.cfg.AnnotationConfiguration config)
config - used to build Hibernate session factorypublic org.hibernate.SessionFactory getHibernateSessionFactory(java.lang.Object key)
HibernateApplication
getHibernateSessionFactory in interface HibernateApplicationkey - object, or null for the default factory
protected void setHibernateSessionFactory(java.lang.Object key,
org.hibernate.SessionFactory sf)
key - object, or null for the default factorysf - session factory to retain
public org.apache.wicket.RequestCycle newRequestCycle(org.apache.wicket.Request request,
org.apache.wicket.Response response)
newRequestCycle in class DataApplicationBaseDataRequestCycleprotected boolean isDataBrowserAllowed()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||