com.softwareag.mdm.schema.trigger
Interface BeforeCreateOccurrenceContext

All Superinterfaces:
TableTriggerExecutionContext, TriggerExecutionContext

public interface BeforeCreateOccurrenceContext
extends TableTriggerExecutionContext

Provides an execution context for handling before create occurrence operation.

See Also:
TableTrigger.handleBeforeCreate(BeforeCreateOccurrenceContext)

Method Summary
 Adaptation getAdaptationOccurrence()
          Returns the adaptation occurrence that will be created.
 DefinitionMode getDefinitionMode()
          Returns the definition mode of the occurrence that must be created.
 ValueContextForUpdate getOccurrenceContextForUpdate()
          Returns the occurrence context for update.
 
Methods inherited from interface com.softwareag.mdm.schema.trigger.TableTriggerExecutionContext
getAdaptationHome, getOccurrenceContext, getTable
 
Methods inherited from interface com.softwareag.mdm.schema.trigger.TriggerExecutionContext
getSession
 

Method Detail

getAdaptationOccurrence

public Adaptation getAdaptationOccurrence()
Returns the adaptation occurrence that will be created.


getOccurrenceContextForUpdate

public ValueContextForUpdate getOccurrenceContextForUpdate()
Returns the occurrence context for update.

When an occurrence is copied as-is from a table to another table (see ProcedureContext.getContext(AdaptationName)), the default context is a context for read. In this case, this method has the effect of transforming the context for read to a context for update.

See Also:
TableTriggerExecutionContext.getOccurrenceContext()

getDefinitionMode

public DefinitionMode getDefinitionMode()
Returns the definition mode of the occurrence that must be created.



(report a bug)
webMethods MDM 4.2.8 [0558]
Copyright Software AG 2000-2007. All rights reserved.