org.eclipse.datatools.modelbase.sql.tables
Interface Trigger

All Superinterfaces:
org.eclipse.emf.ecore.EModelElement, org.eclipse.emf.ecore.ENamedElement, org.eclipse.emf.ecore.EObject, org.eclipse.emf.common.notify.Notifier, SQLObject
All Known Subinterfaces:
IngresTrigger, SybaseASABaseTrigger, SybaseASETrigger
All Known Implementing Classes:
IngresTriggerImpl, SybaseASABaseTriggerImpl, SybaseASACatalogBaseTrigger, SybaseASECatalogTrigger, SybaseASETriggerImpl, org.eclipse.datatools.modelbase.sql.tables.impl.TriggerImpl

public interface Trigger
extends SQLObject

A representation of the model object 'Trigger'. Reference: 5WD-02-Foundation-2002-12 4.38 Triggers

The following features are supported:

See Also:
SQLTablesPackage.getTrigger()

Method Summary
 ActionGranularityType getActionGranularity()
          Returns the value of the 'Action Granularity' attribute.
 org.eclipse.emf.common.util.EList getActionStatement()
          Returns the value of the 'Action Statement' containment reference list.
 ActionTimeType getActionTime()
          Returns the value of the 'Action Time' attribute.
 java.lang.String getNewRow()
          Returns the value of the 'New Row' attribute.
 java.lang.String getNewTable()
          Returns the value of the 'New Table' attribute.
 java.lang.String getOldRow()
          Returns the value of the 'Old Row' attribute.
 java.lang.String getOldTable()
          Returns the value of the 'Old Table' attribute.
 Schema getSchema()
          Returns the value of the 'Schema' reference.
 Table getSubjectTable()
          Returns the value of the 'Subject Table' reference.
 java.util.Date getTimeStamp()
          Returns the value of the 'Time Stamp' attribute.
 org.eclipse.emf.common.util.EList getTriggerColumn()
          Returns the value of the 'Trigger Column' reference list.
 SearchCondition getWhen()
          Returns the value of the 'When' containment reference.
 boolean isDeleteType()
          Returns the value of the 'Delete Type' attribute.
 boolean isInsertType()
          Returns the value of the 'Insert Type' attribute.
 boolean isUpdateType()
          Returns the value of the 'Update Type' attribute.
 void setActionGranularity(ActionGranularityType value)
          Sets the value of the 'Action Granularity' attribute.
 void setActionTime(ActionTimeType value)
          Sets the value of the 'Action Time' attribute.
 void setDeleteType(boolean value)
          Sets the value of the 'Delete Type' attribute.
 void setInsertType(boolean value)
          Sets the value of the 'Insert Type' attribute.
 void setNewRow(java.lang.String value)
          Sets the value of the 'New Row' attribute.
 void setNewTable(java.lang.String value)
          Sets the value of the 'New Table' attribute.
 void setOldRow(java.lang.String value)
          Sets the value of the 'Old Row' attribute.
 void setOldTable(java.lang.String value)
          Sets the value of the 'Old Table' attribute.
 void setSchema(Schema value)
          Sets the value of the 'Schema' reference.
 void setSubjectTable(Table value)
          Sets the value of the 'Subject Table' reference.
 void setUpdateType(boolean value)
          Sets the value of the 'Update Type' attribute.
 void setWhen(SearchCondition value)
          Sets the value of the 'When' containment reference.
 
Methods inherited from interface org.eclipse.datatools.modelbase.sql.schema.SQLObject
addEAnnotation, addEAnnotationDetail, getComments, getDependencies, getDescription, getEAnnotation, getEAnnotationDetail, getExtensions, getLabel, getPrivileges, removeEAnnotationDetail, setAnnotationDetail, setDescription, setLabel
 
Methods inherited from interface org.eclipse.emf.ecore.ENamedElement
getName, setName
 
Methods inherited from interface org.eclipse.emf.ecore.EModelElement
getEAnnotations
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 

Method Detail

getSchema

Schema getSchema()
Returns the value of the 'Schema' reference. It is bidirectional and its opposite is 'Triggers'.

If the meaning of the 'Schema' reference isn't clear, there really should be more of a description here...

Returns:
the value of the 'Schema' reference.
See Also:
setSchema(Schema), SQLTablesPackage.getTrigger_Schema(), Schema.getTriggers()

setSchema

void setSchema(Schema value)
Sets the value of the 'Schema' reference.

Parameters:
value - the new value of the 'Schema' reference.
See Also:
getSchema()

getSubjectTable

Table getSubjectTable()
Returns the value of the 'Subject Table' reference. It is bidirectional and its opposite is 'Triggers'.

If the meaning of the 'Subject Table' reference isn't clear, there really should be more of a description here...

Returns:
the value of the 'Subject Table' reference.
See Also:
setSubjectTable(Table), SQLTablesPackage.getTrigger_SubjectTable(), Table.getTriggers()

setSubjectTable

void setSubjectTable(Table value)
Sets the value of the 'Subject Table' reference.

Parameters:
value - the new value of the 'Subject Table' reference.
See Also:
getSubjectTable()

getActionStatement

org.eclipse.emf.common.util.EList getActionStatement()
Returns the value of the 'Action Statement' containment reference list. The list contents are of type SQLStatement.

If the meaning of the 'Action Statement' reference list isn't clear, there really should be more of a description here...

Returns:
the value of the 'Action Statement' containment reference list.
See Also:
SQLTablesPackage.getTrigger_ActionStatement()

getTriggerColumn

org.eclipse.emf.common.util.EList getTriggerColumn()
Returns the value of the 'Trigger Column' reference list. The list contents are of type Column.

If the meaning of the 'Trigger Column' reference list isn't clear, there really should be more of a description here...

Returns:
the value of the 'Trigger Column' reference list.
See Also:
SQLTablesPackage.getTrigger_TriggerColumn()

getActionGranularity

ActionGranularityType getActionGranularity()
Returns the value of the 'Action Granularity' attribute. The default value is "STATEMENT". The literals are from the enumeration ActionGranularityType.

If the meaning of the 'Action Granularity' attribute isn't clear, there really should be more of a description here...

Returns:
the value of the 'Action Granularity' attribute.
See Also:
ActionGranularityType, setActionGranularity(ActionGranularityType), SQLTablesPackage.getTrigger_ActionGranularity()

setActionGranularity

void setActionGranularity(ActionGranularityType value)
Sets the value of the 'Action Granularity' attribute.

Parameters:
value - the new value of the 'Action Granularity' attribute.
See Also:
ActionGranularityType, getActionGranularity()

getWhen

SearchCondition getWhen()
Returns the value of the 'When' containment reference.

If the meaning of the 'When' containment reference isn't clear, there really should be more of a description here...

Returns:
the value of the 'When' containment reference.
See Also:
setWhen(SearchCondition), SQLTablesPackage.getTrigger_When()

setWhen

void setWhen(SearchCondition value)
Sets the value of the 'When' containment reference.

Parameters:
value - the new value of the 'When' containment reference.
See Also:
getWhen()

getTimeStamp

java.util.Date getTimeStamp()
Returns the value of the 'Time Stamp' attribute. Triggers on the same table with the same action time are executed in order of creation, i.e. the time stamp, such that older triggers have priority.

Returns:
the value of the 'Time Stamp' attribute.
See Also:
SQLTablesPackage.getTrigger_TimeStamp()

getActionTime

ActionTimeType getActionTime()
Returns the value of the 'Action Time' attribute. The literals are from the enumeration ActionTimeType.

If the meaning of the 'Action Time' attribute isn't clear, there really should be more of a description here...

Returns:
the value of the 'Action Time' attribute.
See Also:
ActionTimeType, setActionTime(ActionTimeType), SQLTablesPackage.getTrigger_ActionTime()

setActionTime

void setActionTime(ActionTimeType value)
Sets the value of the 'Action Time' attribute.

Parameters:
value - the new value of the 'Action Time' attribute.
See Also:
ActionTimeType, getActionTime()

isUpdateType

boolean isUpdateType()
Returns the value of the 'Update Type' attribute.

If the meaning of the 'Update Type' attribute isn't clear, there really should be more of a description here...

Returns:
the value of the 'Update Type' attribute.
See Also:
setUpdateType(boolean), SQLTablesPackage.getTrigger_UpdateType()

setUpdateType

void setUpdateType(boolean value)
Sets the value of the 'Update Type' attribute.

Parameters:
value - the new value of the 'Update Type' attribute.
See Also:
isUpdateType()

isInsertType

boolean isInsertType()
Returns the value of the 'Insert Type' attribute.

If the meaning of the 'Insert Type' attribute isn't clear, there really should be more of a description here...

Returns:
the value of the 'Insert Type' attribute.
See Also:
setInsertType(boolean), SQLTablesPackage.getTrigger_InsertType()

setInsertType

void setInsertType(boolean value)
Sets the value of the 'Insert Type' attribute.

Parameters:
value - the new value of the 'Insert Type' attribute.
See Also:
isInsertType()

isDeleteType

boolean isDeleteType()
Returns the value of the 'Delete Type' attribute.

If the meaning of the 'Delete Type' attribute isn't clear, there really should be more of a description here...

Returns:
the value of the 'Delete Type' attribute.
See Also:
setDeleteType(boolean), SQLTablesPackage.getTrigger_DeleteType()

setDeleteType

void setDeleteType(boolean value)
Sets the value of the 'Delete Type' attribute.

Parameters:
value - the new value of the 'Delete Type' attribute.
See Also:
isDeleteType()

getOldRow

java.lang.String getOldRow()
Returns the value of the 'Old Row' attribute.

If the meaning of the 'Old Row' attribute isn't clear, there really should be more of a description here...

Returns:
the value of the 'Old Row' attribute.
See Also:
setOldRow(String), SQLTablesPackage.getTrigger_OldRow()

setOldRow

void setOldRow(java.lang.String value)
Sets the value of the 'Old Row' attribute.

Parameters:
value - the new value of the 'Old Row' attribute.
See Also:
getOldRow()

getNewRow

java.lang.String getNewRow()
Returns the value of the 'New Row' attribute.

If the meaning of the 'New Row' attribute isn't clear, there really should be more of a description here...

Returns:
the value of the 'New Row' attribute.
See Also:
setNewRow(String), SQLTablesPackage.getTrigger_NewRow()

setNewRow

void setNewRow(java.lang.String value)
Sets the value of the 'New Row' attribute.

Parameters:
value - the new value of the 'New Row' attribute.
See Also:
getNewRow()

getOldTable

java.lang.String getOldTable()
Returns the value of the 'Old Table' attribute.

If the meaning of the 'Old Table' attribute isn't clear, there really should be more of a description here...

Returns:
the value of the 'Old Table' attribute.
See Also:
setOldTable(String), SQLTablesPackage.getTrigger_OldTable()

setOldTable

void setOldTable(java.lang.String value)
Sets the value of the 'Old Table' attribute.

Parameters:
value - the new value of the 'Old Table' attribute.
See Also:
getOldTable()

getNewTable

java.lang.String getNewTable()
Returns the value of the 'New Table' attribute.

If the meaning of the 'New Table' attribute isn't clear, there really should be more of a description here...

Returns:
the value of the 'New Table' attribute.
See Also:
setNewTable(String), SQLTablesPackage.getTrigger_NewTable()

setNewTable

void setNewTable(java.lang.String value)
Sets the value of the 'New Table' attribute.

Parameters:
value - the new value of the 'New Table' attribute.
See Also:
getNewTable()