net.sf.farrago.cwm.relational
Interface CwmTrigger

All Superinterfaces:
CwmElement, CwmModelElement, RefBaseObject, RefFeatured, RefObject
All Known Implementing Classes:
CwmTrigger$Hib

public interface CwmTrigger
extends CwmModelElement

Trigger object instance interface. An action run by the DBMS when specified events occur on the table owning the Trigger

Note: This type should not be subclassed, implemented or directly instantiated by clients. It is generated from a MOF metamodel and implemented by Enki or MDR.


Method Summary
 CwmBooleanExpression getActionCondition()
          Returns the value of attribute actionCondition.
 ActionOrientationType getActionOrientation()
          Returns the value of attribute actionOrientation.
 CwmProcedureExpression getActionStatement()
          Returns the value of attribute actionStatement.
 String getConditionReferenceNewTable()
          Returns the value of attribute conditionReferenceNewTable.
 String getConditionReferenceOldTable()
          Returns the value of attribute conditionReferenceOldTable.
 ConditionTimingType getConditionTiming()
          Returns the value of attribute conditionTiming.
 EventManipulationType getEventManipulation()
          Returns the value of attribute eventManipulation.
 CwmTable getTable()
          Returns the value of reference table.
 Collection<CwmNamedColumnSet> getUsedColumnSet()
          Returns the value of reference usedColumnSet.
 void setActionCondition(CwmBooleanExpression newValue)
          Sets the value of actionCondition attribute.
 void setActionOrientation(ActionOrientationType newValue)
          Sets the value of actionOrientation attribute.
 void setActionStatement(CwmProcedureExpression newValue)
          Sets the value of actionStatement attribute.
 void setConditionReferenceNewTable(String newValue)
          Sets the value of conditionReferenceNewTable attribute.
 void setConditionReferenceOldTable(String newValue)
          Sets the value of conditionReferenceOldTable attribute.
 void setConditionTiming(ConditionTimingType newValue)
          Sets the value of conditionTiming attribute.
 void setEventManipulation(EventManipulationType newValue)
          Sets the value of eventManipulation attribute.
 void setTable(CwmTable newValue)
          Sets the value of table reference.
 
Methods inherited from interface net.sf.farrago.cwm.core.CwmModelElement
getClientDependency, getConstraint, getImporter, getName, getNamespace, getVisibility, setName, setNamespace, setVisibility
 
Methods inherited from interface javax.jmi.reflect.RefObject
refClass, refDelete, refImmediateComposite, refIsInstanceOf, refOutermostComposite
 
Methods inherited from interface javax.jmi.reflect.RefFeatured
refGetValue, refGetValue, refInvokeOperation, refInvokeOperation, refSetValue, refSetValue
 
Methods inherited from interface javax.jmi.reflect.RefBaseObject
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints
 

Method Detail

getEventManipulation

EventManipulationType getEventManipulation()
Returns the value of attribute eventManipulation. Indicates what types of events are using the current Trigger.

Returns:
Value of attribute eventManipulation.

setEventManipulation

void setEventManipulation(EventManipulationType newValue)
Sets the value of eventManipulation attribute. See getEventManipulation() for description on the attribute.

Parameters:
newValue - New value to be set.

getActionCondition

CwmBooleanExpression getActionCondition()
Returns the value of attribute actionCondition. A boolean expression which defines when the trigger has to be executed

Returns:
Value of attribute actionCondition.

setActionCondition

void setActionCondition(CwmBooleanExpression newValue)
Sets the value of actionCondition attribute. See getActionCondition() for description on the attribute.

Parameters:
newValue - New value to be set.

getActionStatement

CwmProcedureExpression getActionStatement()
Returns the value of attribute actionStatement. The Trigger action itself

Returns:
Value of attribute actionStatement.

setActionStatement

void setActionStatement(CwmProcedureExpression newValue)
Sets the value of actionStatement attribute. See getActionStatement() for description on the attribute.

Parameters:
newValue - New value to be set.

getActionOrientation

ActionOrientationType getActionOrientation()
Returns the value of attribute actionOrientation. It indicates if the trigger is called once per statement execution or before or after each row of the table is modified.

Returns:
Value of attribute actionOrientation.

setActionOrientation

void setActionOrientation(ActionOrientationType newValue)
Sets the value of actionOrientation attribute. See getActionOrientation() for description on the attribute.

Parameters:
newValue - New value to be set.

getConditionTiming

ConditionTimingType getConditionTiming()
Returns the value of attribute conditionTiming. It indicates if the trigger activity is run before or after the statement or row is modified.

Returns:
Value of attribute conditionTiming.

setConditionTiming

void setConditionTiming(ConditionTimingType newValue)
Sets the value of conditionTiming attribute. See getConditionTiming() for description on the attribute.

Parameters:
newValue - New value to be set.

getConditionReferenceNewTable

String getConditionReferenceNewTable()
Returns the value of attribute conditionReferenceNewTable. The alias for the owning table name, used in the actionStatement, to represent the state of the table after the insert/delete/update

Returns:
Value of attribute conditionReferenceNewTable.

setConditionReferenceNewTable

void setConditionReferenceNewTable(String newValue)
Sets the value of conditionReferenceNewTable attribute. See getConditionReferenceNewTable() for description on the attribute.

Parameters:
newValue - New value to be set.

getConditionReferenceOldTable

String getConditionReferenceOldTable()
Returns the value of attribute conditionReferenceOldTable. The alias for the name of the owning table, used in the actionStatement, to represent the state of the table before the update/delete/insert.

Returns:
Value of attribute conditionReferenceOldTable.

setConditionReferenceOldTable

void setConditionReferenceOldTable(String newValue)
Sets the value of conditionReferenceOldTable attribute. See getConditionReferenceOldTable() for description on the attribute.

Parameters:
newValue - New value to be set.

getTable

CwmTable getTable()
Returns the value of reference table.

Returns:
Value of reference table.

setTable

void setTable(CwmTable newValue)
Sets the value of table reference. See getTable() for description on the attribute.

Parameters:
newValue - New value to be set.

getUsedColumnSet

Collection<CwmNamedColumnSet> getUsedColumnSet()
Returns the value of reference usedColumnSet.

Returns:
Value of reference usedColumnSet. Element type: CwmNamedColumnSet