oracle.jdeveloper.cm.ds.db
Class Trigger
java.lang.Object
oracle.jdeveloper.cm.ds.db.AbstractDBObject
oracle.jdeveloper.cm.ds.db.AbstractSchemaObject
oracle.jdeveloper.cm.ds.db.Trigger
- All Implemented Interfaces:
- Copyable, DBObject, Dirtyable, SchemaObject, SubDirtyable, Subject
- public class Trigger
- extends AbstractSchemaObject
- implements SubDirtyable
Fields inherited from interface oracle.jdeveloper.cm.ds.db.DBObject |
COMMENT |
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 |
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
Trigger
public Trigger()
Trigger
public Trigger(Schema schema,
java.lang.String name)
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.
Copyright © 1997, 2004, Oracle. All rights reserved.