Package org.openxava.actions
Class SetDefaultSchemaAction
java.lang.Object
org.openxava.actions.BaseAction
org.openxava.actions.SetDefaultSchemaAction
- All Implemented Interfaces:
IAction,IChangeModeAction,IModuleContextAction,IRequestAction
Set value of default schema for JPA Persistence and
updates the session object 'defaultSchema'.
Useful for setting the default schema to be used by
JPA, the change only apply to the current thread,
and all the changes are reset just before each request.
- Author:
- Javier Paniza
-
Field Summary
Fields inherited from interface org.openxava.actions.IChangeModeAction
DETAIL, LIST, PREVIOUS_MODE, SPLIT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()The current default schema used by OpenXava and JPA.The new default schema for OpenXava and JPA.voidsetDefaultSchema(String company) The current default schema used by OpenXava and JPA.voidsetNewDefaultSchema(String newCompany) The new default schema for OpenXava and JPA.Methods inherited from class org.openxava.actions.BaseAction
addActions, addError, addErrors, addInfo, addMessage, addMessages, addWarning, clearActions, commit, executeAction, executeAfter, executeBefore, getContext, getEnvironment, getErrors, getLocale, getManager, getMessages, getNextMode, getQualifiedActionIfAvailable, getRequest, removeActions, resetDescriptionsCache, returnToPreviousControllers, rollback, setContext, setControllers, setDefaultControllers, setEnvironment, setErrors, setMessages, setNextMode, setRequest
-
Constructor Details
-
SetDefaultSchemaAction
public SetDefaultSchemaAction()
-
-
Method Details
-
execute
- Throws:
Exception
-
getDefaultSchema
The current default schema used by OpenXava and JPA. -
setDefaultSchema
The current default schema used by OpenXava and JPA. -
getNewDefaultSchema
The new default schema for OpenXava and JPA.This value update the property 'defaultSchema'.
-
setNewDefaultSchema
The new default schema for OpenXava and JPA.This value update the property 'defaultSchema'.
-