public class SetDefaultSchemaAction extends BaseAction
Useful for setting the default schema to be used by
JPA and Hibernate, the change only apply to the current thread,
and all the changes are reset just before each request.
DETAIL, LIST, PREVIOUS_MODE, SPLIT
Constructor and Description |
---|
SetDefaultSchemaAction() |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
java.lang.String |
getDefaultSchema()
The current default schema used by OpenXava and JPA.
|
java.lang.String |
getNewDefaultSchema()
The new default schema for OpenXava and JPA.
|
void |
setDefaultSchema(java.lang.String company)
The current default schema used by OpenXava and JPA.
|
void |
setNewDefaultSchema(java.lang.String newCompany)
The new default schema for OpenXava and JPA.
|
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
public void execute() throws java.lang.Exception
java.lang.Exception
public java.lang.String getDefaultSchema()
public void setDefaultSchema(java.lang.String company)
public java.lang.String getNewDefaultSchema()
This value update the property 'defaultSchema'.
public void setNewDefaultSchema(java.lang.String newCompany)
This value update the property 'defaultSchema'.