|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openxava.actions.BaseAction
org.openxava.actions.SetDefaultSchemaAction
public class SetDefaultSchemaAction
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 and Hibernate, the change only apply to the current thread,
and all the changes are reset just before each request.
| Field Summary |
|---|
| Fields inherited from interface org.openxava.actions.IChangeModeAction |
|---|
DETAIL, LIST, PREVIOUS_MODE, SPLIT |
| Constructor Summary | |
|---|---|
SetDefaultSchemaAction()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.openxava.actions.BaseAction |
|---|
addActions, addError, addErrors, addInfo, addMessage, addMessages, addWarning, clearActions, executeAfter, executeBefore, getContext, getEnvironment, getErrors, getLocale, getManager, getMessages, getNextMode, getRequest, removeActions, resetDescriptionsCache, returnToPreviousControllers, setContext, setControllers, setDefaultControllers, setEnvironment, setErrors, setMessages, setNextMode, setRequest |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SetDefaultSchemaAction()
| Method Detail |
|---|
public void execute()
throws java.lang.Exception
java.lang.Exceptionpublic 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'.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||