org.apache.empire.struts2.actionsupport
Class ActionBase

java.lang.Object
  extended by org.apache.empire.struts2.actionsupport.ActionBase
All Implemented Interfaces:
com.opensymphony.xwork2.LocaleProvider, ActionItemProperty, RequestParamProvider
Direct Known Subclasses:
WebAction

public abstract class ActionBase
extends java.lang.Object
implements ActionItemProperty, RequestParamProvider, com.opensymphony.xwork2.LocaleProvider


Constructor Summary
ActionBase()
           
 
Method Summary
 java.lang.Object getActionBean(java.lang.Class objClass, boolean create)
           
 java.lang.Object getActionBean(java.lang.Class objClass, boolean create, java.lang.String ownerProperty)
           
abstract  int getListPageSize()
           
 java.lang.String getRecordKeyString(java.lang.Object[] key, boolean isNew)
          this method assembles all key values to a combined string The key parts will be separated by forward slashes (KEY_SEP_CHAR) thus the key parts must not contain forward slashes.
 java.lang.String getRecordKeyString(org.apache.empire.data.Record record)
          this method assembles all key values to a combined string The key parts will be separated by forward slashes (KEY_SEP_CHAR) thus the key parts must not contain forward slashes.
 void putActionBean(java.lang.Object obj)
           
 void putActionBean(java.lang.Object obj, java.lang.String ownerProperty)
           
 void removeActionBean(java.lang.Class objClass)
           
 void removeActionBean(java.lang.Class objClass, java.lang.String propertyName)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.empire.struts2.action.ActionItemProperty
getItemPropertyName
 
Methods inherited from interface org.apache.empire.struts2.action.RequestParamProvider
getRequestArrayParam, getRequestParam, getRequestParameters, hasRequestParam
 
Methods inherited from interface com.opensymphony.xwork2.LocaleProvider
getLocale
 

Constructor Detail

ActionBase

public ActionBase()
Method Detail

getListPageSize

public abstract int getListPageSize()

getActionBean

public java.lang.Object getActionBean(java.lang.Class objClass,
                                      boolean create,
                                      java.lang.String ownerProperty)

getActionBean

public java.lang.Object getActionBean(java.lang.Class objClass,
                                      boolean create)

putActionBean

public void putActionBean(java.lang.Object obj,
                          java.lang.String ownerProperty)

putActionBean

public void putActionBean(java.lang.Object obj)

removeActionBean

public void removeActionBean(java.lang.Class objClass,
                             java.lang.String propertyName)

removeActionBean

public void removeActionBean(java.lang.Class objClass)

getRecordKeyString

public java.lang.String getRecordKeyString(org.apache.empire.data.Record record)
this method assembles all key values to a combined string The key parts will be separated by forward slashes (KEY_SEP_CHAR) thus the key parts must not contain forward slashes. Additionally the functions adds an asterisk if the record is new i.e. has not yet been inserted into the database

Parameters:
record - the record for which to create a key string
Returns:
the record key string

getRecordKeyString

public java.lang.String getRecordKeyString(java.lang.Object[] key,
                                           boolean isNew)
this method assembles all key values to a combined string The key parts will be separated by forward slashes (KEY_SEP_CHAR) thus the key parts must not contain forward slashes. Additionally the functions adds an asterisk if the record is new i.e. has not yet been inserted into the database

Parameters:
key - the key values of the record
isNew - flag indicating wether or not the record is a new record
Returns:
the record key string