Class SetDefaultSchemaAction

java.lang.Object
org.openxava.actions.BaseAction
org.openxava.actions.SetDefaultSchemaAction
All Implemented Interfaces:
IAction, IChangeModeAction, IModuleContextAction, IRequestAction

public class SetDefaultSchemaAction extends BaseAction
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
  • Constructor Details

    • SetDefaultSchemaAction

      public SetDefaultSchemaAction()
  • Method Details

    • execute

      public void execute() throws Exception
      Throws:
      Exception
    • getDefaultSchema

      public String getDefaultSchema()
      The current default schema used by OpenXava and JPA.
    • setDefaultSchema

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

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

      This value update the property 'defaultSchema'.

    • setNewDefaultSchema

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

      This value update the property 'defaultSchema'.