Package com.apgar.common.lib.trigger
Class GenericValueCreationTrigger
java.lang.Object
com.orchestranetworks.schema.trigger.TableTrigger
com.apgar.common.lib.trigger.GenericValueCreationTrigger
Table trigger to pre-fill a few fields using data in a record passed in the session's tracking info.
This class' input parameters only serve as an example and can be customized as needed.
The trigger is defined as follows for the table it is applied on in the XSD of its dataset.
<xs:complexType name="SampleTable_Type">
<xs:annotation>
<xs:documentation xml:lang="en-US">
<osd:label>Sample Table</osd:label>
</xs:documentation>
<xs:appinfo>
<osd:table>...</osd:table>
<osd:trigger class="com.apgar.common.lib.trigger.GenericValueCreationTrigger">
<name>./name</name>
</osd:trigger>
</xs:appinfo>
</xs:annotation>
</xs:complexType>
- Author:
- APGAR Consulting
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()Gets the parameter fieldvoidSets the parameter value in the recordvoidSets the parameter fieldvoidsetup(TriggerSetupContext arg0) Methods inherited from class com.orchestranetworks.schema.trigger.TableTrigger
handleAfterCreate, handleAfterDelete, handleAfterModify, handleBeforeCreate, handleBeforeDelete, handleBeforeModify, handleBeforeTransactionCancel, handleBeforeTransactionCommit, zza, zza
-
Field Details
-
SDLID_PATH
Record SdlID path -
NAME_PATH
Sample field to be set path
-
-
Constructor Details
-
GenericValueCreationTrigger
public GenericValueCreationTrigger()
-
-
Method Details
-
setup
- Specified by:
setupin classTableTrigger
-
handleNewContext
Sets the parameter value in the record- Overrides:
handleNewContextin classTableTrigger
-
getName
Gets the parameter field- Returns:
- the parameter as a String
-
setName
Sets the parameter field- Parameters:
name- input parameter as a String
-