Extension SDK

oracle.jdeveloper.cm.ds.db
Class Trigger

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

public class Trigger
extends SchemaObject
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_TYPE
           
static java.lang.String[] TRIGGER_TYPES
           
static java.lang.String TRUNCATE_EVENT
           
static java.lang.String UPDATE_EVENT
           
static int VIEW_BASE_TYPE
           
 
Fields inherited from class oracle.jdeveloper.cm.ds.db.DBObject
ANONYMOUS_BLOCK, COLUMN, CONSTRAINT, FUNCTION, INDEX, PACKAGE_BODY, PACKAGE_SPEC, PROCEDURE, SEQUENCE, SYNONYM, TABLE, WORKAREA
 
Constructor Summary
Trigger()
           
Trigger(java.lang.String schema, java.lang.String name)
           
 
Method Summary
 java.lang.Object copyTo(java.lang.Object target)
          Copies the internal state of this object to the specified copy.
protected  void copyToImpl(Trigger copy)
           
 boolean equals(java.lang.Object target)
           
protected  boolean equalsImpl(Trigger target)
           
 java.lang.String generateSQL(boolean replace)
           
 int getBaseType()
           
 java.util.Iterator getChildren()
          If this object has subobjects (i.e.
 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()
           
 java.lang.String getTableOwner()
           
 int getTiming()
           
 java.lang.String getType()
          Returns the type of object this is.
 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(java.lang.String schema)
          Sets the Schema of this table
 void setStatementLevel(boolean stmtLevel)
           
 void setTableName(java.lang.String table)
           
 void setTableOwner(java.lang.String owner)
           
 void setTiming(int timing)
           
 void setWhenClause(java.lang.String clause)
           
 
Methods inherited from class oracle.jdeveloper.cm.ds.db.SchemaObject
copyToImpl, equalsImpl, getCatalog, getSchema, setCatalog
 
Methods inherited from class oracle.jdeveloper.cm.ds.db.DBObject
copyToImpl, equalsImpl, getName, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TRIGGER_TYPE

public static final java.lang.String TRIGGER_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(java.lang.String 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: Copyable
Copies the internal state of this object to the specified copy. If copy is null, then this method should create a new instance of this class and proceed to copy the internal state to the newly created object. Generally, only the persistent state of the object should be copied, but whether or not it is appropriate to copy transient properties is at the discretion of the individual implementor.

Regardless of whether the copy occurs to an existing object or to a newly created object, the return value is object to which this object's state was copied.

There is a standard implementation pattern for the copyTo method that helps avoid problems that arise when a Copyable object is subclassed. The pattern is:

public Object copyTo( Object target )
{
final <this_class> copy =
target != null ? (<this_class>) target : new <this_class>();
copyToImpl( copy );
return copy;
} protected final void copyToImpl( <this_class> copy ) { super.copyToImpl( copy ); // if necessary // put code here for copying the properties of <this_class> }
The parameter passed into the copyToImpl method is the same type of this class. The responsibility of copyToImpl is to copy the state of this class through direct access of the fields. The copyToImpl method should not use getters and setters since these may be overridden, causing the state of this class to be incompletely copied.

Specified by:
copyTo in interface Copyable
Specified by:
copyTo in class DBObject

copyToImpl

protected void copyToImpl(Trigger copy)

equals

public boolean equals(java.lang.Object target)
Specified by:
equals in class DBObject

equalsImpl

protected boolean equalsImpl(Trigger target)

getType

public java.lang.String getType()
Description copied from class: DBObject
Returns the type of object this is. The object type is defined as constants in DBObject

Specified by:
getType in class DBObject
See Also:
DBObject.TABLE, DBObject.WORKAREA, DBObject.COLUMN

setSchema

public void setSchema(java.lang.String schema)
Description copied from class: SchemaObject
Sets the Schema of this table

Overrides:
setSchema in class SchemaObject

setName

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

Overrides:
setName in class DBObject

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 java.lang.String getTableOwner()

setTableOwner

public void setTableOwner(java.lang.String 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.

generateSQL

public java.lang.String generateSQL(boolean replace)

getChildren

public java.util.Iterator getChildren()
Description copied from class: DBObject
If this object has subobjects (i.e. a table contains columns), then this will return an Iterator on that list of children, otherwise it will return null.

Specified by:
getChildren in class DBObject

Extension SDK

 

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