|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.empire.struts2.actionsupport.FormActionSupport
org.apache.empire.struts2.actionsupport.RecordFormActionSupport
public abstract class RecordFormActionSupport
| Field Summary | |
|---|---|
protected SessionPersistence |
persistence
|
| Fields inherited from class org.apache.empire.struts2.actionsupport.FormActionSupport |
|---|
action, log, propertyName |
| Constructor Summary | |
|---|---|
protected |
RecordFormActionSupport(ActionBase action,
SessionPersistence persistence)
|
protected |
RecordFormActionSupport(ActionBase action,
SessionPersistence persistence,
String propertyName)
|
| Method Summary | |
|---|---|
protected boolean |
compareKey(Object[] currentKey,
Object[] updateKey)
this method compares two primary key objects |
Object[] |
getActionParamKey()
Returns the record key. |
boolean |
getActionParamNewFlag()
Returns a flag whether or not the current record is a new record. |
SessionPersistence |
getPersistence()
|
abstract Record |
getRecord()
|
protected Record |
getRecordFromSession()
|
String |
getRecordKeyString()
|
String |
getRequestFieldName(Column column)
returns the name of a field as used in the form |
boolean |
hasActionKey(boolean acceptSessionKey)
Checks wether or not the record key is supplied |
boolean |
isNewRecord()
|
boolean |
loadFormData()
loads the data from the form into the current record object |
protected void |
persistOnSession()
|
protected void |
removeFromSession()
|
protected boolean |
setRecordFieldValue(int i,
Object value,
boolean verify)
overridable: sets the value of single field |
protected boolean |
setUpdateFields(Record record)
adds all fields found in the HTTP-JSPRequest for this table to the record |
| Methods inherited from class org.apache.empire.struts2.actionsupport.FormActionSupport |
|---|
addFieldError, getActionParam, getRecordPropertyName, isEnableFieldErrors, setEnableFieldErrors |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected SessionPersistence persistence
| Constructor Detail |
|---|
protected RecordFormActionSupport(ActionBase action,
SessionPersistence persistence)
protected RecordFormActionSupport(ActionBase action,
SessionPersistence persistence,
String propertyName)
| Method Detail |
|---|
public SessionPersistence getPersistence()
public abstract Record getRecord()
public String getRecordKeyString()
public boolean isNewRecord()
public String getRequestFieldName(Column column)
column -
protected Record getRecordFromSession()
protected void persistOnSession()
protected void removeFromSession()
public boolean hasActionKey(boolean acceptSessionKey)
acceptSessionKey - true if a key supplied on the session is acceptable or false otherwise
public Object[] getActionParamKey()
public boolean getActionParamNewFlag()
public boolean loadFormData()
loadFormData in class FormActionSupport
protected boolean setRecordFieldValue(int i,
Object value,
boolean verify)
protected boolean setUpdateFields(Record record)
rec - the Record object, contains all fields and the field
propertiesrequest - request providing access to the HTTP-JSPRequest parameters
protected final boolean compareKey(Object[] currentKey,
Object[] updateKey)
keyColumns - an array of the primary key columnscurrentKey - the current key objectupdateKey - the comparative value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||