|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.2.0) E17493-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.javatools.db.AbstractDBObject
oracle.javatools.db.AbstractBuildableObject
oracle.javatools.db.plsql.DBObjectPlSqlFragment
oracle.javatools.db.plsql.PlSqlBlock
oracle.javatools.db.plsql.PlSqlSchemaObject
oracle.javatools.db.plsql.Trigger
public class Trigger
Representation of a Database Trigger
Nested Class Summary | |
---|---|
static class |
Trigger.BaseType Base type for the Trigger (i.e. |
static class |
Trigger.Timing Timing of a trigger - at what point relative to the trigger event the trigger's code will be executed. |
Nested classes/interfaces inherited from class oracle.javatools.db.AbstractDBObject |
---|
AbstractDBObject.ChildSupport, AbstractDBObject.ListenerSupport |
Field Summary | |
---|---|
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 java.lang.String |
COMMENT_EVENT |
static java.lang.String |
CREATE_EVENT |
static java.lang.String |
DB_ROLE_CHANGE_EVENT |
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 java.lang.String |
SERVERERROR_EVENT |
static java.lang.String |
SHUTDOWN_EVENT |
static java.lang.String |
STARTUP_EVENT |
static java.lang.String |
SUSPEND_EVENT |
static java.lang.String |
TRUNCATE_EVENT |
static java.lang.String |
TYPE |
static java.lang.String |
UPDATE_EVENT |
Fields inherited from interface oracle.javatools.db.DBObject |
---|
COMMENT |
Constructor Summary | |
---|---|
Trigger() |
Method Summary | |
---|---|
DBObjectID |
getBaseObjectID() Get method for the ID of the SchemaObject this is a Trigger for |
java.lang.String |
getBaseSchemaName() Deprecated. - use getBaseObjectID |
Trigger.BaseType |
getBaseType() Get method for the BaseType property |
java.lang.String |
getCode() Get method for the Code property |
DBObjectID[] |
getColumnIDs() |
java.lang.String[] |
getEvents() Get method for the Events property |
static java.util.List |
getEvents(Trigger.BaseType type, Trigger.Timing timing) Returns the valid events for the given BaseType and Timing. |
java.lang.String |
getReferencingNewAs() Get method for the ReferencingNewAs property |
java.lang.String |
getReferencingOldAs() Get method for the ReferencingOldAs property |
DBObjectID |
getTableID() Deprecated. - use getBaseObjectID |
Trigger.Timing |
getTiming() Get method for the Timing property |
java.lang.String |
getType() Returns the type of this object. |
java.lang.String |
getWhenClause() Get method for the WhenClause property |
static boolean |
isDatabaseOnlyEvent(java.lang.String event) Returns true if the given event String is only applicable to databases (i.e. |
boolean |
isEnabled() Get method for the Enabled property |
boolean |
isStatementLevel() Get method for the StatementLevel property |
void |
setBaseObjectID(DBObjectID baseObjectID) Get method for the ID of the SchemaObject this is a Trigger for |
void |
setBaseSchemaName(java.lang.String baseSchemaName) Deprecated. - use setBaseObjectID |
void |
setBaseType(Trigger.BaseType baseType) Set method for the BaseType property |
void |
setCode(java.lang.String code) Set method for the Code property |
void |
setColumnIDs(DBObjectID[] columnIDs) Set method for the ColumnIDs property |
void |
setEnabled(boolean enabled) Set method for the Enabled property |
void |
setEvents(java.lang.String[] events) Set method for the Events property |
void |
setReferencingNewAs(java.lang.String refNewAs) Set method for the ReferencingNewAs property |
void |
setReferencingOldAs(java.lang.String refOldAs) Set method for the ReferencingOldAs property |
void |
setStatementLevel(boolean statementLevel) Set method for the StatementLevel property |
void |
setTableID(DBObjectID tableID) Deprecated. - use setBaseObjectID |
void |
setTiming(Trigger.Timing timing) Set method for the Timing property |
void |
setWhenClause(java.lang.String whenClause) Set method for the WhenClause property |
Methods inherited from class oracle.javatools.db.plsql.PlSqlSchemaObject |
---|
addObjectListener, addObjectListener, addObjectListener, fireObjectUpdated, getSchema, getSource, removeObjectListener, removeObjectListener, removeObjectListener, setSchema, setSource |
Methods inherited from class oracle.javatools.db.plsql.PlSqlBlock |
---|
addBlock, addDatatype, addReference, addSubProgram, addVariable, getBlocks, getDatatypes, getReferences, getSubProgram, getSubPrograms, getVariable, getVariables, setBlocks, setDatatypes, setReferences, setSubPrograms, setVariables |
Methods inherited from class oracle.javatools.db.plsql.DBObjectPlSqlFragment |
---|
clearSourceID, copyToImpl, getChildAtOffset, getEndOffset, getParent, getSourceID, getStartOffset, setEndOffset, setParent, setStartOffset |
Methods inherited from class oracle.javatools.db.AbstractBuildableObject |
---|
checkInit, checkInit, equalsImpl, getOwnedObjectsImpl, getProperties, getProperty, getReferenceIDsImpl, needsInitialization, setProperty |
Methods inherited from class oracle.javatools.db.AbstractDBObject |
---|
changeParent, compareToImpl, copyObject, copyTo, copyTo, copyTo, copyTo, equals, findOwnedObject, findOwnedObject, findOwnedObject, getChildSupport, getID, getName, getOwnedObjects, getOwnedObjects, getProperty, getReferenceIDs, hashCode, includeOwnedObject, includesType, includesType, removeThisAsParent, replaceReferenceIDs, setID, setName, setProperties, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface oracle.javatools.db.DBObject |
---|
copyTo, copyTo, copyTo, findOwnedObject, findOwnedObject, getID, getName, getOwnedObjects, getOwnedObjects, getParent, getReferenceIDs, replaceReferenceIDs, setID, setName |
Methods inherited from interface oracle.javatools.util.DynamicPropertySet |
---|
getProperties, getProperty, getProperty, setProperties, setProperty |
Field Detail |
---|
public static final java.lang.String TYPE
public static final java.lang.String INSERT_EVENT
public static final java.lang.String DELETE_EVENT
public static final java.lang.String UPDATE_EVENT
public static final java.lang.String ALTER_EVENT
public static final java.lang.String ANALYZE_EVENT
public static final java.lang.String ASSOCIATE_STATISTICS_EVENT
public static final java.lang.String AUDIT_EVENT
public static final java.lang.String COMMENT_EVENT
public static final java.lang.String CREATE_EVENT
public static final java.lang.String DISASSOCIATE_STATISTICS_EVENT
public static final java.lang.String DB_ROLE_CHANGE_EVENT
public static final java.lang.String DROP_EVENT
public static final java.lang.String GRANT_EVENT
public static final java.lang.String NOAUDIT_EVENT
public static final java.lang.String RENAME_EVENT
public static final java.lang.String REVOKE_EVENT
public static final java.lang.String TRUNCATE_EVENT
public static final java.lang.String DDL_EVENT
public static final java.lang.String SERVERERROR_EVENT
public static final java.lang.String LOGON_EVENT
public static final java.lang.String LOGOFF_EVENT
public static final java.lang.String STARTUP_EVENT
public static final java.lang.String SHUTDOWN_EVENT
public static final java.lang.String SUSPEND_EVENT
Constructor Detail |
---|
public Trigger()
Method Detail |
---|
public static boolean isDatabaseOnlyEvent(java.lang.String event)
event
- the event string to querypublic static java.util.List getEvents(Trigger.BaseType type, Trigger.Timing timing)
public java.lang.String getType()
DBObject
getType
in interface DBObject
getType
in class PlSqlBlock
public boolean isEnabled()
public void setEnabled(boolean enabled)
enabled
-public Trigger.Timing getTiming()
public void setTiming(Trigger.Timing timing)
timing
-public boolean isStatementLevel()
public void setStatementLevel(boolean statementLevel)
statementLevel
-public java.lang.String[] getEvents()
public void setEvents(java.lang.String[] events)
events
-public DBObjectID getBaseObjectID()
public void setBaseObjectID(DBObjectID baseObjectID)
baseObjectID
-
@Deprecated
public java.lang.String getBaseSchemaName()
@Deprecated
public void setBaseSchemaName(java.lang.String baseSchemaName)
@Deprecated
public DBObjectID getTableID()
@Deprecated
public void setTableID(DBObjectID tableID)
public Trigger.BaseType getBaseType()
public void setBaseType(Trigger.BaseType baseType)
baseType
-public java.lang.String getWhenClause()
public void setWhenClause(java.lang.String whenClause)
whenClause
-public DBObjectID[] getColumnIDs()
public void setColumnIDs(DBObjectID[] columnIDs)
columnIDs
-public java.lang.String getCode()
public void setCode(java.lang.String code)
code
-public void setReferencingNewAs(java.lang.String refNewAs)
refNewAs
-public java.lang.String getReferencingNewAs()
public void setReferencingOldAs(java.lang.String refOldAs)
refOldAs
-public java.lang.String getReferencingOldAs()
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.2.0) E17493-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |