|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.empire.commons.ErrorObject
org.apache.empire.struts2.actionsupport.FormActionSupport
org.apache.empire.struts2.actionsupport.RecordFormActionSupport
org.apache.empire.struts2.actionsupport.RecordActionSupport
public class RecordActionSupport
RecordActionSupport
This class provides functions for form data processing for a given Table or View (DBRowSet).
The record object provided with the constructor will be used to obtain further context specific metadata
such as field options (getFieldOptions) and field accessibility (isFieldReadOnly).
The record object should initially be invalid and not attached to any Table or View (DBRowSet).
Nested Class Summary | |
---|---|
static class |
RecordActionSupport.SessionPersistance
Deprecated. |
Constructor Summary | |
---|---|
RecordActionSupport(ActionBase action,
org.apache.empire.db.DBRowSet rowset,
org.apache.empire.db.DBRecord record,
RecordActionSupport.SessionPersistance persistence)
Deprecated. |
|
RecordActionSupport(ActionBase action,
org.apache.empire.db.DBRowSet rowset,
org.apache.empire.db.DBRecord record,
RecordActionSupport.SessionPersistance persistence,
java.lang.String propertyName)
Deprecated. |
|
RecordActionSupport(ActionBase action,
org.apache.empire.db.DBRowSet rowset,
org.apache.empire.db.DBRecord record,
SessionPersistence persistence)
|
|
RecordActionSupport(ActionBase action,
org.apache.empire.db.DBRowSet rowset,
org.apache.empire.db.DBRecord record,
SessionPersistence persistence,
java.lang.String propertyName)
|
Method Summary | |
---|---|
void |
closeRecord()
Closes the record and releases any allocated session objects |
boolean |
createRecord()
creates a new record. |
boolean |
deleteRecord()
deletes the current record database. |
boolean |
deleteRecord(java.lang.Object[] recKey,
boolean newRec)
deletes the record identified by the supplied key from the database. |
org.apache.empire.db.DBRecord |
detachRecord()
|
java.lang.Object[] |
findAnyConflictRecord()
|
java.util.List<org.apache.empire.db.DBIndex> |
findChangedIndexes()
|
RecordActionSupport.SessionPersistance |
getPersistance()
Deprecated. |
org.apache.empire.db.DBRecord |
getRecord()
|
org.apache.empire.db.DBRowSet |
getRowset()
|
boolean |
initReferenceColumns()
sets all required foreign keys for this record. |
boolean |
isLoadBeforeDelete()
|
boolean |
loadFormData()
loads the data from the form into the current record object |
boolean |
loadFormData(java.lang.Object[] recKey,
boolean insert)
This function load all form date from the request into the record for each record column the following steps are taken 1. |
boolean |
loadRecord()
loads the record either from the supplied item key on the request or from the session. |
boolean |
loadRecord(java.lang.Object[] recKey)
loads the record identified by the supplied key from the database |
boolean |
reloadRecord()
reloads the current record from the session. |
boolean |
saveChanges()
Updates the record by calling onUpdateRecord and updates the currentKey The update will not be commited, hence the caller must commit or rollback the operation |
void |
setLoadBeforeDelete(boolean loadBeforeDelete)
|
Methods inherited from class org.apache.empire.struts2.actionsupport.RecordFormActionSupport |
---|
getActionParamKey, getActionParamNewFlag, getPersistence, getRecordKeyString, getRequestFieldName, hasActionKey, isNewRecord |
Methods inherited from class org.apache.empire.struts2.actionsupport.FormActionSupport |
---|
getRecordPropertyName, isEnableFieldErrors, setEnableFieldErrors |
Methods inherited from class org.apache.empire.commons.ErrorObject |
---|
clearError, getErrorMessage, getErrorParams, getErrorSource, getErrorType, getMessage, hasError, isExceptionsEnabled, setExceptionsEnabled |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RecordActionSupport(ActionBase action, org.apache.empire.db.DBRowSet rowset, org.apache.empire.db.DBRecord record, SessionPersistence persistence, java.lang.String propertyName)
public RecordActionSupport(ActionBase action, org.apache.empire.db.DBRowSet rowset, org.apache.empire.db.DBRecord record, SessionPersistence persistence)
@Deprecated public RecordActionSupport(ActionBase action, org.apache.empire.db.DBRowSet rowset, org.apache.empire.db.DBRecord record, RecordActionSupport.SessionPersistance persistence, java.lang.String propertyName)
@Deprecated public RecordActionSupport(ActionBase action, org.apache.empire.db.DBRowSet rowset, org.apache.empire.db.DBRecord record, RecordActionSupport.SessionPersistance persistence)
Method Detail |
---|
public org.apache.empire.db.DBRecord getRecord()
getRecord
in class RecordFormActionSupport
public org.apache.empire.db.DBRowSet getRowset()
public boolean isLoadBeforeDelete()
public void setLoadBeforeDelete(boolean loadBeforeDelete)
@Deprecated public RecordActionSupport.SessionPersistance getPersistance()
public boolean createRecord()
public boolean initReferenceColumns()
public boolean loadRecord(java.lang.Object[] recKey)
public boolean loadRecord()
public boolean reloadRecord()
public boolean deleteRecord(java.lang.Object[] recKey, boolean newRec)
recKey
- the record keynewRec
- flag indicating whether it is a new unsaved record.
public final boolean deleteRecord()
public boolean loadFormData(java.lang.Object[] recKey, boolean insert)
public boolean loadFormData()
RecordFormActionSupport
loadFormData
in class RecordFormActionSupport
public boolean saveChanges()
public void closeRecord()
public org.apache.empire.db.DBRecord detachRecord()
public final java.util.List<org.apache.empire.db.DBIndex> findChangedIndexes()
public final java.lang.Object[] findAnyConflictRecord()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |