Package com.apgar.common.lib.trigger
Class MetaDataTableTrigger
java.lang.Object
com.orchestranetworks.schema.trigger.TableTrigger
com.apgar.common.lib.trigger.MetaDataTableTrigger
Table trigger that allows the handling of a record's Tracking Information section.
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.MetaDataTableTrigger"/>
</xs:appinfo>
</xs:annotation>
</xs:complexType>
- Author:
- APGAR Consulting
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the pathToParentSdlIdvoidSet the record's meta data information at creation.voidSet the record's meta data information at modification.voidSet the record's active indicator if needed at creation.voidSet the record's active indicator if needed at modification.voidsetPathToParentSdlId(Path pathToParentSdlId) Sets the pathToParentSdlId pathvoidsetup(TriggerSetupContext context) Checks if active indicator needs to be set.Methods inherited from class com.orchestranetworks.schema.trigger.TableTrigger
handleAfterDelete, handleBeforeDelete, handleBeforeTransactionCancel, handleBeforeTransactionCommit, handleNewContext, zza, zza
-
Constructor Details
-
MetaDataTableTrigger
public MetaDataTableTrigger()
-
-
Method Details
-
setup
Checks if active indicator needs to be set. This is a rule declared in the CommonRules class.- Specified by:
setupin classTableTrigger- Parameters:
context- TriggerSetupContext
-
handleAfterCreate
Set the record's meta data information at creation. This is a rule declared in the CommonRules class.- Overrides:
handleAfterCreatein classTableTrigger- Parameters:
context- AfterCreateOccurrenceContext- Throws:
OperationException
-
handleAfterModify
Set the record's meta data information at modification. This is a rule declared in the CommonRules class.- Overrides:
handleAfterModifyin classTableTrigger- Parameters:
context- AfterModifyOccurrenceContext- Throws:
OperationException
-
handleBeforeCreate
Set the record's active indicator if needed at creation. This is a rule declared in the CommonRules class.- Overrides:
handleBeforeCreatein classTableTrigger- Parameters:
context- BeforeCreateOccurrenceContext- Throws:
OperationException
-
handleBeforeModify
Set the record's active indicator if needed at modification. This is a rule declared in the CommonRules class.- Overrides:
handleBeforeModifyin classTableTrigger- Parameters:
context- BeforeModifyOccurrenceContext- Throws:
OperationException
-
getPathToParentSdlId
Gets the pathToParentSdlId- Returns:
- pathToParentSdlId Path
-
setPathToParentSdlId
Sets the pathToParentSdlId path- Parameters:
pathToParentSdlId- Path
-