|
www.element4solution.com | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecte4s.util.E4Object
e4s.html.editing.AEP_EditingDataDescriptor
public abstract class AEP_EditingDataDescriptor
Default implementation AEP - Application Exit Point during editing using E4EditingElement.
A detailed description can be found at E4EditingElement.
E4EditingElement,
E4EditingDataDescriptor| Field Summary |
|---|
| Fields inherited from class e4s.util.E4Object |
|---|
CRLF, E4S_CORE_SYSTEM_LANGUAGE, NBSP, NULLSTR, URL_ENCODING_CHARSET |
| Fields inherited from interface e4s.html.editing.AEP_EditingDataDescriptor_Intf |
|---|
MODE_DELETE, MODE_DISPLAY_FOR_DELETE, MODE_DUPLICATE, MODE_INSERT, MODE_UPDATE, PARAM_PREFIX_DUPLICATE |
| Constructor Summary | |
|---|---|
AEP_EditingDataDescriptor()
|
|
| Method Summary | |
|---|---|
void |
afterDelete(BODY body,
E4Fieldset fieldset,
E4DBConnection_Intf con)
This is the default implementation, doing no no additional output or stuff. |
void |
afterDuplicate(BODY body,
HIDDENFIELD[] originalValues,
E4Fieldset fieldset,
E4DBConnection_Intf con)
This method will be called after duplication of a record, if enabled E4EditingDataDescriptor.enableDuplicate(). |
void |
afterInsert(BODY body,
E4Fieldset fieldset,
E4DBConnection_Intf con)
This is the default implementation, doing no no additional output or stuff. |
void |
afterUpdate(BODY body,
E4Fieldset fieldset,
E4DBConnection_Intf con)
This is the default implementation, doing no no additional output or stuff. |
boolean |
beforeDelete(E4Fieldset fieldset)
This is the default implementation, returning a value of true. |
boolean |
beforeDuplicate(E4Fieldset fieldset)
This is the default implementation, returning a value of true. |
boolean |
beforeInsert(E4Fieldset fieldset)
This is the default implementation, returning a value of true. |
boolean |
beforeUpdate(E4Fieldset fieldset)
This is the default implementation, returning a value of true. |
boolean |
canDelete(E4DBSelect_Intf select)
Default implementation, that does nothing. |
boolean |
canDuplicate(E4DBSelect_Intf select)
Default implementation, that does nothing. |
boolean |
canEdit(E4DBSelect_Intf select)
Default implementation, that does nothing. |
void |
createFieldset_Search(E4Fieldset fieldset)
This is the default implementation which does no changes. |
void |
createFieldset(E4Fieldset fieldset,
char mode)
This is the default implementation which does no changes. |
static java.lang.String |
extractPresetField4Duplication(E4Fieldset fieldset,
E4InputFieldName_Intf fieldname)
Extract a value for a field that is used to point out to the original value of a recordset. |
static HIDDENFIELD[] |
extractPresetFields4Duplication(E4Fieldset fieldset)
Extract hiddenfields pointing out to the original value of a recordset. |
E4DBReference[] |
modifyDeleteExecutionList(E4DBReference[] cols)
Default implementation, returns the reference unchanged. |
E4DBReference[] |
modifyDeleteIntegrityList(E4DBReference[] cols)
Default implementation, returns the reference unchanged. |
void |
pageEnd(BODY body,
char mode,
E4CgiParams params)
Default implementation, that does nothing. |
boolean |
pageStart(BODY body,
char mode,
E4CgiParams params)
Default implementation, that does nothing. |
void |
setForm(FORM dummy)
|
void |
setServlet(E4ServletImplementation_Intf servlet)
This is the default implementation which does nothing. |
| Methods inherited from class e4s.util.E4Object |
|---|
_getSVNVersionString, Calendar, CName, CName, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelNone, E4LabelNone, E4LabelNone, E4LabelNone, E4LabelSys, E4LabelSys, e4sCopyright, e4sVersion, encode, encode, encode, encodeHtml, encodeHtml, encodeHtml, encodeURL, encodeURL, encodeURL, finalize, getLINE, getTRACE, getTRACE, getTRACE, getTRACE, getTRACE, getTRACE, getTraceMemory, HtmlEncode, HtmlEncode, HtmlEncode, isdecimal, isdigit, isnotok, isnotok, isnumeric, isok, isok, isok, isok, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingStack, mkdirs, null2nbsp, null2nbsp, null2nbsp, ok, ok, ok, ok, outPrintln, setLogFile4Trace, setTraceMemory, STACKTRACE, toDebug, toDouble, toFloat, toFloat, toString, TRACE_CALLS, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, wait |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AEP_EditingDataDescriptor()
| Method Detail |
|---|
public void setServlet(E4ServletImplementation_Intf servlet)
setServlet in interface AEP_EditingDataDescriptor_Intfservlet - the actual servlet
public void createFieldset(E4Fieldset fieldset,
char mode)
throws java.lang.Exception
createFieldset in interface AEP_EditingDataDescriptor_Intffieldset - the values from the input formmode - the update/display mode (AEP_EditingDataDescriptor_Intf.MODE_INSERT, AEP_EditingDataDescriptor_Intf.MODE_UPDATE or AEP_EditingDataDescriptor_Intf.MODE_DELETE).
java.lang.Exceptione4s.html.editing.AEP_EditingDataDescriptor_Intf#createFieldset()
public void createFieldset_Search(E4Fieldset fieldset)
throws java.lang.Exception
createFieldset_Search in interface AEP_EditingDataDescriptor_Intffieldset - the values from the input form
java.lang.Exception
public boolean beforeInsert(E4Fieldset fieldset)
throws java.lang.Exception
beforeInsert in interface AEP_EditingDataDescriptor_Intffieldset - the values from the input form
java.lang.Exceptione4s.html.editing.AEP_EditingDataDescriptor_Intf#beforeInsert(),
#afterInsert(),
#beforeUpdate(),
#beforeDelete()
public boolean beforeDuplicate(E4Fieldset fieldset)
throws java.lang.Exception
beforeDuplicate in interface AEP_EditingDataDescriptor_Intffieldset - the values from the input form
java.lang.Exceptione4s.html.editing.AEP_EditingDataDescriptor_Intf#beforeInsert(),
#afterInsert(),
#beforeUpdate(),
#beforeDelete()
public void afterInsert(BODY body,
E4Fieldset fieldset,
E4DBConnection_Intf con)
throws java.lang.Exception
afterInsert in interface AEP_EditingDataDescriptor_Intfbody - the related BODY element to provide additional output if requiredcon - the current database connection in transaction modefieldset - the values from the input form
java.lang.Exceptione4s.html.editing.AEP_EditingDataDescriptor_Intf#afterInsert(),
#beforeInsert(),
#afterUpdate(),
#afterDelete()
public boolean beforeUpdate(E4Fieldset fieldset)
throws java.lang.Exception
beforeUpdate in interface AEP_EditingDataDescriptor_Intffieldset - the values from the input form
java.lang.Exceptione4s.html.editing.AEP_EditingDataDescriptor_Intf#beforeUpdate(),
#afterUpdate(),
#beforeInsert(),
#beforeDelete()
public void afterUpdate(BODY body,
E4Fieldset fieldset,
E4DBConnection_Intf con)
throws java.lang.Exception
afterUpdate in interface AEP_EditingDataDescriptor_Intfbody - the related BODY element to provide additional output if requiredcon - the current database connection in transaction modefieldset - the values from the input form
java.lang.Exceptione4s.html.editing.AEP_EditingDataDescriptor_Intf#afterUpdate(),
#beforeUpdate(),
#afterInsert(),
#afterDelete()
public boolean beforeDelete(E4Fieldset fieldset)
throws java.lang.Exception
beforeDelete in interface AEP_EditingDataDescriptor_Intffieldset - the values from the input form
java.lang.Exceptione4s.html.editing.AEP_EditingDataDescriptor_Intf#beforeDelete(),
#afterDelete(),
#beforeInsert(),
#beforeUpdate()
public void afterDelete(BODY body,
E4Fieldset fieldset,
E4DBConnection_Intf con)
throws java.lang.Exception
afterDelete in interface AEP_EditingDataDescriptor_Intfbody - the related BODY element to provide additional output if requiredcon - the current database connection in transaction modefieldset - the values from the input form
java.lang.Exceptione4s.html.editing.AEP_EditingDataDescriptor_Intf#afterDelete(),
#beforeDelete(),
#afterUpdate(),
#afterInsert()
public E4DBReference[] modifyDeleteIntegrityList(E4DBReference[] cols)
throws java.lang.Exception
public static E4DBTypeUsage[] getUsage()functions in the user defined, generated datatypes. Additionally, there can be a defined reference in the data dictionary. When editing a table, it is known which field is the index field. So this is compared to the column list, a SQL select will be performed and if at least one such a value exists in the table, then deletion will be aborted and an error message is displayed. This mechanism also requires
e4s.html.E4EditingDataDescriptor#setCheckReferencesOnDelete()
set to true.
In some cases, you want this feature and in some you don't. This interface function now enables
to decide, which tables require integrity checking and which do not.
modifyDeleteIntegrityList in interface AEP_EditingDataDescriptor_Intfcols - an array with column definitions, might be null
java.lang.ExceptionE4DBIntegrity.hasAnyData(e4s.db.E4DBTypeUsage[], e4s.db.E4DBTableName, e4s.application.E4ApplObj_Intf, e4s.util.E4String),
E4DBReference.removeReference(e4s.db.E4DBReference[], e4s.db.E4DBTableName),
E4DBReference.addUsage(e4s.db.E4DBReference[],e4s.db.E4DBReference),
E4DBSelect_Intf.getReferenceLookup(e4s.db.E4DBColumnName),
e4s.html.E4EditingDataDescriptor#getCheckReferencesOnDelete(),
e4s.html.E4EditingDataDescriptor#setCheckReferencesOnDelete()
public E4DBReference[] modifyDeleteExecutionList(E4DBReference[] cols)
throws java.lang.Exception
public static E4DBTypeUsage[] getUsage()functions in the user defined, generated datatypes. Additionally, there can be a defined reference in the data dictionary. When editing a table, it is known which field is the index field. So this is compared to the column list, a SQL select will be performed and if at least one such a value exists in the table, then deletion will be aborted and an error message is displayed. This mechanism also requires
e4s.html.E4EditingDataDescriptor#setCheckReferencesOnDelete()
set to true.
In some cases, you want this feature and in some you don't. This interface function now enables
to decide, which tables require integrity checking and which do not.
modifyDeleteExecutionList in interface AEP_EditingDataDescriptor_Intfcols - an array with column definitions, might be null
java.lang.ExceptionE4DBReference.removeReference(e4s.db.E4DBReference[], e4s.db.E4DBTableName),
E4DBReference.addUsage(e4s.db.E4DBReference[], e4s.db.E4DBReference),
E4DBSelect_Intf.getReferenceDelete(e4s.db.E4DBColumnName)
public boolean canDelete(E4DBSelect_Intf select)
throws java.lang.Exception
canDelete in interface AEP_EditingDataDescriptor_Intfselect - the selection interface representing the current record
java.lang.Exception#canDuplicate(e4.db.E4DBSelect_Intf),
#canEdit(e4.db.E4DBSelect_Intf)
public boolean canEdit(E4DBSelect_Intf select)
throws java.lang.Exception
canEdit in interface AEP_EditingDataDescriptor_Intfselect - the selection interface representing the current record
java.lang.Exception#canDelete(e4.db.E4DBSelect_Intf),
#canDuplicate(e4.db.E4DBSelect_Intf)
public boolean canDuplicate(E4DBSelect_Intf select)
throws java.lang.Exception
canDuplicate in interface AEP_EditingDataDescriptor_Intfselect - the selection interface representing the current record
java.lang.Exception#canDelete(e4.db.E4DBSelect_Intf),
#canEdit(e4.db.E4DBSelect_Intf)
public boolean pageStart(BODY body,
char mode,
E4CgiParams params)
throws java.lang.Exception
pageStart in interface AEP_EditingDataDescriptor_Intfbody - the BODY context for any additional outputsmode - the update/display mode (AEP_EditingDataDescriptor_Intf.MODE_INSERT, AEP_EditingDataDescriptor_Intf.MODE_UPDATE or AEP_EditingDataDescriptor_Intf.MODE_DELETE).
java.lang.Exception
public void pageEnd(BODY body,
char mode,
E4CgiParams params)
throws java.lang.Exception
pageEnd in interface AEP_EditingDataDescriptor_Intfbody - the BODY context for any additional outputsmode - the update/display mode (AEP_EditingDataDescriptor_Intf.MODE_INSERT, AEP_EditingDataDescriptor_Intf.MODE_UPDATE or AEP_EditingDataDescriptor_Intf.MODE_DELETE).
java.lang.Exceptionpublic void setForm(FORM dummy)
setForm in interface AEP_EditingDataDescriptor_Intf
public void afterDuplicate(BODY body,
HIDDENFIELD[] originalValues,
E4Fieldset fieldset,
E4DBConnection_Intf con)
throws java.lang.Exception
AEP_EditingDataDescriptor_IntfE4EditingDataDescriptor.enableDuplicate(). This is a good place, to
copy (duplicate) related records if needed. A default implementation can be found here:
afterDuplicate(BODY, HIDDENFIELD[], E4Fieldset, E4DBConnection_Intf)
afterDuplicate in interface AEP_EditingDataDescriptor_Intfbody - you can write out some informations for the user right hereoriginalValues - is an array of index fields that point out to the existing record (the copy-from-source), the order can be
different extractPresetField4Duplication(E4Fieldset, e4s.html.input.extended.E4InputFieldName_Intf),
extractPresetFields4Duplication(E4Fieldset).fieldset - the validated fieldset with replaced index values on auto-increment fields, if applicablecon - the database connection (you should refer to it as this might be a transaction)
java.lang.ExceptionE4EditingDataDescriptor.enableDuplicate(),
AEP_EditingDataDescriptor_Intf.afterDuplicate(e4s.html.BODY, e4s.html.input.extended.HIDDENFIELD[], e4s.html.input.extended.E4Fieldset, e4s.db.E4DBConnection_Intf),
AEP_EditingDataDescriptor_Intf.beforeDuplicate(e4s.html.input.extended.E4Fieldset),
AEP_EditingDataDescriptor_Intf.canDuplicate(e4s.db.E4DBSelect_Intf),
E4ModuleEditingHandling02.duplicateRecord,
AEP_EditingDataDescriptor_Intf.MODE_DUPLICATE,
AEP_EditingDataDescriptor_Intf.PARAM_PREFIX_DUPLICATE
public static java.lang.String extractPresetField4Duplication(E4Fieldset fieldset,
E4InputFieldName_Intf fieldname)
fieldset - the editing fieldsetfieldname - the name of a field (without AEP_EditingDataDescriptor_Intf.PARAM_PREFIX_DUPLICATE
AEP_EditingDataDescriptor_Intf.PARAM_PREFIX_DUPLICATE,
extractPresetFields4Duplication(E4Fieldset),
AEP_EditingDataDescriptor_Intf.afterDuplicate(BODY, HIDDENFIELD[], E4Fieldset, E4DBConnection_Intf)public static HIDDENFIELD[] extractPresetFields4Duplication(E4Fieldset fieldset)
fieldset - the editing fieldset
AEP_EditingDataDescriptor_Intf.PARAM_PREFIX_DUPLICATE,
extractPresetField4Duplication(E4Fieldset, E4InputFieldName_Intf),
AEP_EditingDataDescriptor_Intf.afterDuplicate(BODY, HIDDENFIELD[], E4Fieldset, E4DBConnection_Intf)
|
www.element4solution.com | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||