Expresso 5-5-0

com.jcorporate.expresso.services.controller
Class DBMaint

java.lang.Object
  extended byorg.apache.struts.action.Action
      extended bycom.jcorporate.expresso.core.controller.Controller
          extended bycom.jcorporate.expresso.core.controller.DBController
              extended bycom.jcorporate.expresso.services.controller.DBMaint
All Implemented Interfaces:
Serializable

public class DBMaint
extends DBController

Controller that enables basic maintenance (add/update/delete) of any DBObject DBMaint acts more as a controller for allowing operations on DBObjects. The real work for adding, deleting, searching and updating is carried out by a series of classes that are dynamically instantiated and live in the com.jcorporate.expresso.core.servlet.commands package. These classes can be extended to add additional functionality.

When tracking down code functionality, the core states are in package:
 com.jcorporate.expresso.services.dbmaint

The only state handlers embedded in the class are minimalistic classes for allowing admins to select the DBObjects to administer from dropdown lists.

Version:
$Revision: 1.17 $ $Date: 2004/04/08 22:52:07 $
Author:
Michael Nash
See Also:
Serialized Form

Field Summary
static String ADD
           
static String LIST
           
static String PROMPT
           
static String SEARCH
           
static String UPDATE
           
 
Fields inherited from class com.jcorporate.expresso.core.controller.Controller
CTL_SUCC_CTL, CTL_SUCC_STATE, CTL_SUCC_TRAN, mLog, NEWSTATE_EXCEPTION_KEY, ORIGINAL_URL_KEY, REQUEST_KEY, RESPONSE_KEY, RETURN_TO_SENDER_TRAN, STATE_ERR_CTL, STATE_ERR_STATE, STATE_ERR_TRAN, STATE_SUCC_CTL, STATE_SUCC_STATE, STATE_SUCC_TRAN
 
Fields inherited from class org.apache.struts.action.Action
ACTION_SERVLET_KEY, APPLICATION_KEY, DATA_SOURCE_KEY, defaultLocale, ERROR_KEY, EXCEPTION_KEY, FORM_BEANS_KEY, FORWARDS_KEY, LOCALE_KEY, MAPPING_KEY, MAPPINGS_KEY, MESSAGE_KEY, MESSAGES_KEY, MULTIPART_KEY, PLUG_INS_KEY, REQUEST_PROCESSOR_KEY, servlet, SERVLET_KEY, TRANSACTION_TOKEN_KEY
 
Constructor Summary
DBMaint()
          Default Constructor.
 
Method Summary
 String getTitle()
          Retrieve the title of this Controller
 
Methods inherited from class com.jcorporate.expresso.core.controller.DBController
addTransition, getString, isAllowed, stateAllowed
 
Methods inherited from class com.jcorporate.expresso.core.controller.Controller
addFinalState, addPromptTransitions, addRegDomainParamtoSession, addRequestedURLtoSession, addState, addStatePairing, endTimer, execute, findControllerForm, generateToken, getActionForward, getControllerChainingTransition, getControllerSecurityTransition, getFinalState, getInitialState, getLogger, getSchema, getSchemaHierarchy, getSchemaInstance, getState, getStates, getString, getString, handleException, instantiate, isFinalState, isHandleState, isPromptState, isTokenValid, loadStateForm, newState, nextHandleState, nextPromptState, populateStateForm, postPerform, prePerform, previousPromptState, processRequestTransitions, processTransitions, redirectRequest, redirectRequest, remapFromExtension, resetToken, saveToken, setControllerChainingTransition, setControllerSecurityTransition, setCurrentState, setInitialState, setSchema, setSchema, setupDefaultValues, setupReturnToSender, setupSubclassLog, transition, transition, transition, unloadStateForm
 
Methods inherited from class org.apache.struts.action.Action
execute, generateToken, getDataSource, getDataSource, getLocale, getResources, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, perform, perform, resetToken, saveErrors, saveMessages, saveToken, setLocale, setServlet, toHex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UPDATE

public static final String UPDATE
See Also:
Constant Field Values

LIST

public static final String LIST
See Also:
Constant Field Values

ADD

public static final String ADD
See Also:
Constant Field Values

SEARCH

public static final String SEARCH
See Also:
Constant Field Values

PROMPT

public static final String PROMPT
See Also:
Constant Field Values
Constructor Detail

DBMaint

public DBMaint()
Default Constructor. It constructs all the state

Method Detail

getTitle

public String getTitle()
Retrieve the title of this Controller

Overrides:
getTitle in class Controller
Returns:
java.lang.String The Title of the controller

Expresso 5-5-0

Please see www.jcorporate.com for information about new Expresso releases.