public abstract class RecordFormActionSupport extends FormActionSupport
Modifier and Type | Field and Description |
---|---|
protected SessionPersistence |
persistence |
action, log, propertyName
Modifier | Constructor and Description |
---|---|
protected |
RecordFormActionSupport(ActionBase action,
SessionPersistence persistence) |
protected |
RecordFormActionSupport(ActionBase action,
SessionPersistence persistence,
String propertyName) |
Modifier and Type | Method and Description |
---|---|
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
|
addFieldError, getActionParam, getRecordPropertyName, isEnableFieldErrors, setEnableFieldErrors
protected SessionPersistence persistence
protected RecordFormActionSupport(ActionBase action, SessionPersistence persistence)
protected RecordFormActionSupport(ActionBase action, SessionPersistence persistence, String propertyName)
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 otherwisepublic 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)
record
- the Record object, contains all fields and the field
propertiesCopyright © 2008–2022 Apache Software Foundation. All rights reserved.