Extension SDK 10.1.2

oracle.jdeveloper.cm.ds.db
Class Trigger

java.lang.Object
  extended byoracle.jdeveloper.cm.ds.db.AbstractDBObject
      extended byoracle.jdeveloper.cm.ds.db.AbstractSchemaObject
          extended byoracle.jdeveloper.cm.ds.db.Trigger
All Implemented Interfaces:
Copyable, DBObject, Dirtyable, SchemaObject, SubDirtyable, Subject

public class Trigger
extends AbstractSchemaObject
implements SubDirtyable


Field Summary
static int AFTER_TIMING
           
static java.lang.String ALTER_EVENT
           
static java.lang.String ANALYZE_EVENT
           
static java.lang.String ASSOCIATE_STATISTICS_EVENT
           
static java.lang.String AUDIT_EVENT
           
static int BEFORE_TIMING
           
static java.lang.String COMMENT_EVENT
           
static java.lang.String CREATE_EVENT
           
static int DATABASE_BASE_TYPE
           
static java.lang.String DDL_EVENT
           
static java.lang.String DELETE_EVENT
           
static java.lang.String DISASSOCIATE_STATISTICS_EVENT
           
static java.lang.String DROP_EVENT
           
static java.lang.String GRANT_EVENT
           
static java.lang.String INSERT_EVENT
           
static java.lang.String LOGOFF_EVENT
           
static java.lang.String LOGON_EVENT
           
static java.lang.String NOAUDIT_EVENT
           
static java.lang.String RENAME_EVENT
           
static java.lang.String REVOKE_EVENT
           
static int SCHEMA_BASE_TYPE
           
static java.lang.String SERVERERROR_EVENT
           
static java.lang.String SHUTDOWN_EVENT
           
static java.lang.String STARTUP_EVENT
           
static java.lang.String SUSPEND_EVENT
           
static int TABLE_BASE_TYPE
           
static java.lang.String[] TRIGGER_TYPES
           
static java.lang.String TRUNCATE_EVENT
           
static java.lang.String TYPE
           
static java.lang.String UPDATE_EVENT
           
static int VIEW_BASE_TYPE
           
 
Fields inherited from interface oracle.jdeveloper.cm.ds.db.DBObject
COMMENT
 
Fields inherited from interface oracle.ide.addin.Subject
OBJECT_MODIFIED
 
Constructor Summary
Trigger()
           
Trigger(Schema schema, java.lang.String name)
           
 
Method Summary
 java.lang.Object copyTo(java.lang.Object target)
          Copies the state of this DBObject to another instance.
protected  void copyToImpl(Trigger copy)
           
 boolean equals(java.lang.Object target)
           
protected  boolean equalsImpl(Trigger target)
           
 int getBaseType()
           
 java.lang.String getCode()
           
 java.util.List getColumns()
           
 java.util.List getEvents()
           
static java.util.List getEvents(int timing, int type)
           
 java.lang.String[] getReferenceNames()
           
 java.lang.String getTableName()
           
 Schema getTableOwner()
           
 int getTiming()
           
 java.lang.String getType()
          Returns the type of this object.
 java.lang.String getWhenClause()
           
 boolean isDirty()
          True if the data in the object has been modified.
 boolean isStatementLevel()
           
 void markDirty(boolean dirty)
          Marks the data with the specified dirty state.
 void setBaseType(int type)
           
 void setCode(java.lang.String code)
           
 void setColumns(java.util.List l)
           
 void setEvents(java.util.List l)
           
 void setName(java.lang.String name)
          Sets the name of this object.
 void setOwner(Dirtyable owner)
          This method should be called to set the document in which a SubDirtyable implementation will be persisted.
 void setReferenceNames(java.lang.String[] names)
           
 void setSchema(Schema schema)
          Sets the Schema of this object.
 void setStatementLevel(boolean stmtLevel)
           
 void setTableName(java.lang.String table)
           
 void setTableOwner(Schema owner)
           
 void setTiming(int timing)
           
 void setWhenClause(java.lang.String clause)
           
 
Methods inherited from class oracle.jdeveloper.cm.ds.db.AbstractSchemaObject
copyToImpl, equalsImpl, getSchema
 
Methods inherited from class oracle.jdeveloper.cm.ds.db.AbstractDBObject
attach, compareToImpl, copyToImpl, detach, equalsImpl, getID, getName, getProperties, getProperty, hashCode, notifyObservers, setID, setProperties, setProperty, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface oracle.jdeveloper.cm.ds.db.DBObject
getID, getName, getProperties, getProperty, setID, setProperties, setProperty
 
Methods inherited from interface oracle.ide.addin.Subject
attach, detach, notifyObservers
 

Field Detail

TYPE

public static final java.lang.String TYPE
See Also:
Constant Field Values

BEFORE_TIMING

public static final int BEFORE_TIMING
See Also:
Constant Field Values

AFTER_TIMING

public static final int AFTER_TIMING
See Also:
Constant Field Values

TABLE_BASE_TYPE

public static final int TABLE_BASE_TYPE
See Also:
Constant Field Values

VIEW_BASE_TYPE

public static final int VIEW_BASE_TYPE
See Also:
Constant Field Values

SCHEMA_BASE_TYPE

public static final int SCHEMA_BASE_TYPE
See Also:
Constant Field Values

DATABASE_BASE_TYPE

public static final int DATABASE_BASE_TYPE
See Also:
Constant Field Values

TRIGGER_TYPES

public static final java.lang.String[] TRIGGER_TYPES

INSERT_EVENT

public static final java.lang.String INSERT_EVENT
See Also:
Constant Field Values

DELETE_EVENT

public static final java.lang.String DELETE_EVENT
See Also:
Constant Field Values

UPDATE_EVENT

public static final java.lang.String UPDATE_EVENT
See Also:
Constant Field Values

ALTER_EVENT

public static final java.lang.String ALTER_EVENT
See Also:
Constant Field Values

ANALYZE_EVENT

public static final java.lang.String ANALYZE_EVENT
See Also:
Constant Field Values

ASSOCIATE_STATISTICS_EVENT

public static final java.lang.String ASSOCIATE_STATISTICS_EVENT
See Also:
Constant Field Values

AUDIT_EVENT

public static final java.lang.String AUDIT_EVENT
See Also:
Constant Field Values

COMMENT_EVENT

public static final java.lang.String COMMENT_EVENT
See Also:
Constant Field Values

CREATE_EVENT

public static final java.lang.String CREATE_EVENT
See Also:
Constant Field Values

DISASSOCIATE_STATISTICS_EVENT

public static final java.lang.String DISASSOCIATE_STATISTICS_EVENT
See Also:
Constant Field Values

DROP_EVENT

public static final java.lang.String DROP_EVENT
See Also:
Constant Field Values

GRANT_EVENT

public static final java.lang.String GRANT_EVENT
See Also:
Constant Field Values

NOAUDIT_EVENT

public static final java.lang.String NOAUDIT_EVENT
See Also:
Constant Field Values

RENAME_EVENT

public static final java.lang.String RENAME_EVENT
See Also:
Constant Field Values

REVOKE_EVENT

public static final java.lang.String REVOKE_EVENT
See Also:
Constant Field Values

TRUNCATE_EVENT

public static final java.lang.String TRUNCATE_EVENT
See Also:
Constant Field Values

DDL_EVENT

public static final java.lang.String DDL_EVENT
See Also:
Constant Field Values

SERVERERROR_EVENT

public static final java.lang.String SERVERERROR_EVENT
See Also:
Constant Field Values

LOGON_EVENT

public static final java.lang.String LOGON_EVENT
See Also:
Constant Field Values

LOGOFF_EVENT

public static final java.lang.String LOGOFF_EVENT
See Also:
Constant Field Values

STARTUP_EVENT

public static final java.lang.String STARTUP_EVENT
See Also:
Constant Field Values

SHUTDOWN_EVENT

public static final java.lang.String SHUTDOWN_EVENT
See Also:
Constant Field Values

SUSPEND_EVENT

public static final java.lang.String SUSPEND_EVENT
See Also:
Constant Field Values
Constructor Detail

Trigger

public Trigger()

Trigger

public Trigger(Schema schema,
               java.lang.String name)
Method Detail

getEvents

public static java.util.List getEvents(int timing,
                                       int type)

copyTo

public java.lang.Object copyTo(java.lang.Object target)
Description copied from interface: DBObject
Copies the state of this DBObject to another instance. If null is specified for the target, a new instance will be created.

The entire state of the object will be copied, with a few exceptions. In particular, any observers registered will NOT be copied. In cases where this instance contains child DBObjects, new instances of those children will be created, and the state copied to them. The copy will thus contain its own unique state; after making the copy, changing one instance will not cause any changes to occur to the copy. The properties will be copied; however, copies will not be made of the values referenced by the properties - thus, the copy will refer to the same instance as the original. Child objects that are copied will still point to the original parent; it is the responsibility of a copied parent to update the parent of copies of its children point to the copy of itself.

The ID associated with this object will not be copied. If the copy is intended to be a temporary copy of this object (to be used in a dialog editing the object for example), then the caller should explicitly set the ID of the copy to be the same as on this object. However, if the new object is intended to exist separately from this object, the caller should ensure that the new object have a different ID from this object.

Specified by:
copyTo in interface DBObject
Parameters:
target - The object to copy to. If target is null, a new instance will be created, and the state will be copied to that object.
Returns:
the copy.

copyToImpl

protected void copyToImpl(Trigger copy)

equals

public boolean equals(java.lang.Object target)
Overrides:
equals in class AbstractDBObject

equalsImpl

protected boolean equalsImpl(Trigger target)

getType

public java.lang.String getType()
Description copied from interface: DBObject
Returns the type of this object. Valid types include things like tables, views, synonyms, and columns.

Specified by:
getType in interface DBObject
Returns:
a string describing the type of object.

setSchema

public void setSchema(Schema schema)
Description copied from interface: SchemaObject
Sets the Schema of this object.

Specified by:
setSchema in interface SchemaObject
Overrides:
setSchema in class AbstractSchemaObject

setName

public void setName(java.lang.String name)
Description copied from interface: DBObject
Sets the name of this object.

Specified by:
setName in interface DBObject
Overrides:
setName in class AbstractDBObject

getTiming

public int getTiming()

setTiming

public void setTiming(int timing)

isStatementLevel

public boolean isStatementLevel()

setStatementLevel

public void setStatementLevel(boolean stmtLevel)

getEvents

public java.util.List getEvents()

setEvents

public void setEvents(java.util.List l)

getTableOwner

public Schema getTableOwner()

setTableOwner

public void setTableOwner(Schema owner)

getTableName

public java.lang.String getTableName()

setTableName

public void setTableName(java.lang.String table)

getBaseType

public int getBaseType()

setBaseType

public void setBaseType(int type)

getReferenceNames

public java.lang.String[] getReferenceNames()

setReferenceNames

public void setReferenceNames(java.lang.String[] names)

getWhenClause

public java.lang.String getWhenClause()

setWhenClause

public void setWhenClause(java.lang.String clause)

getColumns

public java.util.List getColumns()

setColumns

public void setColumns(java.util.List l)

getCode

public java.lang.String getCode()

setCode

public void setCode(java.lang.String code)

setOwner

public void setOwner(Dirtyable owner)
Description copied from interface: SubDirtyable
This method should be called to set the document in which a SubDirtyable implementation will be persisted.

Specified by:
setOwner in interface SubDirtyable
Parameters:
owner - The Dirtyable object in which this SubDirtyable will be saved.

isDirty

public boolean isDirty()
Description copied from interface: Dirtyable
True if the data in the object has been modified.

Specified by:
isDirty in interface Dirtyable
Returns:
true if the data in the object has been modified.

markDirty

public void markDirty(boolean dirty)
Description copied from interface: Dirtyable
Marks the data with the specified dirty state. This method is called markDirty(...) instead of setDirty(...) so that the JavaBeans Introspector will not mistakenly identify "dirty" as a JavaBean property.

Specified by:
markDirty in interface Dirtyable
Parameters:
dirty - If true, sets the object as being dirty; if false, sets the object as being up-to-date.

Extension SDK

 

Copyright © 1997, 2004, Oracle. All rights reserved.