org.omg.cwm.resource.relational
Interface Trigger

All Superinterfaces:
Element, ModelElement, javax.jmi.reflect.RefBaseObject, javax.jmi.reflect.RefFeatured, javax.jmi.reflect.RefObject

public interface Trigger
extends ModelElement

An action run by the DBMS when specified events occur on the table owning the Trigger


Method Summary
 BooleanExpression getActionCondition()
          A boolean expression which defines when the trigger has to be executed
 org.omg.cwm.resource.relational.enumerations.ActionOrientationType getActionOrientation()
          It indicates if the trigger is called once per statement execution or before or after each row of the table is modified.
 ProcedureExpression getActionStatement()
          The Trigger action itself
 java.lang.String getConditionReferenceNewTable()
          The alias for the owning table name, used in the actionStatement, to represent the state of the table after the insert/delete/update
 java.lang.String getConditionReferenceOldTable()
          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.
 org.omg.cwm.resource.relational.enumerations.ConditionTimingType getConditionTiming()
          It indicates if the trigger activity is run before or after the statement or row is modified.
 org.omg.cwm.resource.relational.enumerations.EventManipulationType getEventManipulation()
          Indicates what types of events are using the current Trigger.
 Table getTable()
           
 java.util.Collection getUsedColumnSet()
           
 void setActionCondition(BooleanExpression newValue)
          A boolean expression which defines when the trigger has to be executed
 void setActionOrientation(org.omg.cwm.resource.relational.enumerations.ActionOrientationType newValue)
          It indicates if the trigger is called once per statement execution or before or after each row of the table is modified.
 void setActionStatement(ProcedureExpression newValue)
          The Trigger action itself
 void setConditionReferenceNewTable(java.lang.String newValue)
          The alias for the owning table name, used in the actionStatement, to represent the state of the table after the insert/delete/update
 void setConditionReferenceOldTable(java.lang.String newValue)
          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.
 void setConditionTiming(org.omg.cwm.resource.relational.enumerations.ConditionTimingType newValue)
          It indicates if the trigger activity is run before or after the statement or row is modified.
 void setEventManipulation(org.omg.cwm.resource.relational.enumerations.EventManipulationType newValue)
          Indicates what types of events are using the current Trigger.
 void setTable(Table newValue)
           
 
Methods inherited from interface org.omg.cwm.objectmodel.core.ModelElement
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

public org.omg.cwm.resource.relational.enumerations.EventManipulationType getEventManipulation()
                                                                                        throws javax.jmi.reflect.JmiException
Indicates what types of events are using the current Trigger.

setEventManipulation

public void setEventManipulation(org.omg.cwm.resource.relational.enumerations.EventManipulationType newValue)
                          throws javax.jmi.reflect.JmiException
Indicates what types of events are using the current Trigger.

getActionCondition

public BooleanExpression getActionCondition()
                                     throws javax.jmi.reflect.JmiException
A boolean expression which defines when the trigger has to be executed

setActionCondition

public void setActionCondition(BooleanExpression newValue)
                        throws javax.jmi.reflect.JmiException
A boolean expression which defines when the trigger has to be executed

getActionStatement

public ProcedureExpression getActionStatement()
                                       throws javax.jmi.reflect.JmiException
The Trigger action itself

setActionStatement

public void setActionStatement(ProcedureExpression newValue)
                        throws javax.jmi.reflect.JmiException
The Trigger action itself

getActionOrientation

public org.omg.cwm.resource.relational.enumerations.ActionOrientationType getActionOrientation()
                                                                                        throws javax.jmi.reflect.JmiException
It indicates if the trigger is called once per statement execution or before or after each row of the table is modified.

setActionOrientation

public void setActionOrientation(org.omg.cwm.resource.relational.enumerations.ActionOrientationType newValue)
                          throws javax.jmi.reflect.JmiException
It indicates if the trigger is called once per statement execution or before or after each row of the table is modified.

getConditionTiming

public org.omg.cwm.resource.relational.enumerations.ConditionTimingType getConditionTiming()
                                                                                    throws javax.jmi.reflect.JmiException
It indicates if the trigger activity is run before or after the statement or row is modified.

setConditionTiming

public void setConditionTiming(org.omg.cwm.resource.relational.enumerations.ConditionTimingType newValue)
                        throws javax.jmi.reflect.JmiException
It indicates if the trigger activity is run before or after the statement or row is modified.

getConditionReferenceNewTable

public java.lang.String getConditionReferenceNewTable()
                                               throws javax.jmi.reflect.JmiException
The alias for the owning table name, used in the actionStatement, to represent the state of the table after the insert/delete/update

setConditionReferenceNewTable

public void setConditionReferenceNewTable(java.lang.String newValue)
                                   throws javax.jmi.reflect.JmiException
The alias for the owning table name, used in the actionStatement, to represent the state of the table after the insert/delete/update

getConditionReferenceOldTable

public java.lang.String getConditionReferenceOldTable()
                                               throws javax.jmi.reflect.JmiException
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.

setConditionReferenceOldTable

public void setConditionReferenceOldTable(java.lang.String newValue)
                                   throws javax.jmi.reflect.JmiException
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.

getTable

public Table getTable()
               throws javax.jmi.reflect.JmiException

setTable

public void setTable(Table newValue)
              throws javax.jmi.reflect.JmiException

getUsedColumnSet

public java.util.Collection getUsedColumnSet()
                                      throws javax.jmi.reflect.JmiException


Copyright 1997-2005 by Object Management Group, Inc. (http://www.omg.org/), 250 First Ave. Needham, MA 02494 U.S.A. All rights reserved. Unless otherwise indicated, users may make a single copy of the contents, in whole or in part, of this web site strictly for personal, non-commercial use. In the event that all or part of this site is downloaded for personal use, users shall maintain all proprietary notices including copyright notices that appear on or in connection with that content. Other than creating a single copy of contents for personal use as described herein, users may not copy, reproduce, distribute, republish, download, display, post or transmit in any form or by any means, including but not limited to electronic, mechanical, photocopying, recording, or other means, any content found or linked to the OMG web site without the prior express written permission of OMG. Any unauthorized use of any content contained on the OMG web site may violate the copyright laws, trademark laws, laws relating to publicity and privacy, and other regulations and statutes in the U.S. and other countries.