org.openxava.actions
Class SetSchemaAction

java.lang.Object
  extended by org.openxava.actions.BaseAction
      extended by org.openxava.actions.ViewBaseAction
          extended by org.openxava.actions.SetSchemaAction
All Implemented Interfaces:
IAction, IChangeModeAction, IModuleContextAction, IRequestAction

public class SetSchemaAction
extends ViewBaseAction

Author:
Federico Alcantara

Field Summary
 
Fields inherited from interface org.openxava.actions.IChangeModeAction
DETAIL, LIST, PREVIOUS_MODE, SPLIT
 
Constructor Summary
SetSchemaAction()
           
 
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.ViewBaseAction
closeDialog, getModelName, getPreviousView, getPreviousViews, getView, resetDescriptionsCache, returnToPreviousView, setControllers, setPreviousViews, setView, showDialog, showDialog, showNewView, showView
 
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, returnToPreviousControllers, setContext, 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

SetSchemaAction

public SetSchemaAction()
Method Detail

execute

public void execute()
             throws java.lang.Exception
Throws:
java.lang.Exception

getDefaultSchema

public java.lang.String getDefaultSchema()
The current default schema used by OpenXava and JPA.


setDefaultSchema

public void setDefaultSchema(java.lang.String company)
The current default schema used by OpenXava and JPA.


getNewDefaultSchema

public java.lang.String getNewDefaultSchema()
The new default schema for OpenXava and JPA.

This value update the property 'defaultSchema'.


setNewDefaultSchema

public void setNewDefaultSchema(java.lang.String newCompany)
The new default schema for OpenXava and JPA.

This value update the property 'defaultSchema'.