public class PackageEvent extends TriggerEvent
A package trigger is defined within the scripts directory of a package. The code will look for a script named "install.js" during package install and "uninstall.js" on package uninstall.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TYPE |
Constructor and Description |
---|
PackageEvent(User triggerUser,
User adminUser,
java.lang.StringBuilder statusLog,
java.lang.StringBuilder infoLog,
java.lang.StringBuilder errorLog) |
Modifier and Type | Method and Description |
---|---|
User |
getAdminUser()
Gets information about the admin user for the database the trigger fired in.
|
java.lang.StringBuilder |
getErrorLog()
Package installation and uninstallation normally doesn't write to the
normal event.log.
|
java.lang.StringBuilder |
getInfoLog()
Package installation and uninstallation normally doesn't write to the
normal event.log.
|
java.lang.StringBuilder |
getStatusLog()
Package installation and uninstallation normally doesn't write to the
normal event.log.
|
java.lang.String |
getTriggerType()
Gets the type of this trigger, that is the type of action the spawned this
trigger.
|
User |
getTriggerUser()
Gets information about this user that performed the action that fired this trigger.
|
boolean |
isPostTrigger()
Gets if this trigger is a post-trigger or not, true if a post-trigger false otherwise.
|
boolean |
isPreTrigger()
Gets if this trigger is a pre-trigger or not, true if a pre-trigger false otherwise.
|
fail, getFailure, toString
public static final java.lang.String TYPE
public User getAdminUser()
TriggerEvent
getAdminUser
in class TriggerEvent
public java.lang.String getTriggerType()
TriggerEvent
getTriggerType
in class TriggerEvent
public User getTriggerUser()
TriggerEvent
getTriggerUser
in class TriggerEvent
public boolean isPostTrigger()
TriggerEvent
isPostTrigger
in class TriggerEvent
public boolean isPreTrigger()
TriggerEvent
isPreTrigger
in class TriggerEvent
public java.lang.StringBuilder getStatusLog()
public java.lang.StringBuilder getInfoLog()
public java.lang.StringBuilder getErrorLog()
© Copyright IBM Corporation 2000, 2009
US Government Users Restricted Rights--Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
Notices