Top Description Fields Constructors Methods
org.h2.command.ddl

public Class CreateTrigger

extends SchemaCommand
Class Inheritance
Imports
org.h2.api.ErrorCode, .Trigger, org.h2.command.CommandInterface, org.h2.engine.Database, .SessionLocal, org.h2.message.DbException, org.h2.schema.Schema, .TriggerObject, org.h2.table.Table

This class represents the statement CREATE TRIGGER

Field Summary

Modifier and TypeField and Description
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private int
private boolean
private String
private String
private String
private String
private int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public int
getType()

Implements abstract org.h2.command.Prepared.getType.

Get the command type as defined in CommandInterface

public void
setBefore(boolean before)

public void
setForce(boolean force)

public void
setIfNotExists(boolean ifNotExists)

public void
setInsteadOf(boolean insteadOf)

public void
setNoWait(boolean noWait)

public void
setOnRollback(boolean onRollback)

public void
setQueueSize(int size)

public void
setRowBased(boolean rowBased)

public void
setTableName(String tableName)

public void
setTriggerClassName(String triggerClassName)

public void
public void
setTriggerSource(String triggerSource)

public void
setTypeMask(int typeMask)

public long
update()

Overrides org.h2.command.Prepared.update.

Execute the statement.

Inherited from org.h2.command.ddl.SchemaCommand:
getSchema

Field Detail

beforeback to summary
private boolean before
forceback to summary
private boolean force
ifNotExistsback to summary
private boolean ifNotExists
insteadOfback to summary
private boolean insteadOf
noWaitback to summary
private boolean noWait
onRollbackback to summary
private boolean onRollback
queueSizeback to summary
private int queueSize
rowBasedback to summary
private boolean rowBased
tableNameback to summary
private String tableName
triggerClassNameback to summary
private String triggerClassName
triggerNameback to summary
private String triggerName
triggerSourceback to summary
private String triggerSource
typeMaskback to summary
private int typeMask

Constructor Detail

CreateTriggerback to summary
public CreateTrigger(SessionLocal session, Schema schema)

Method Detail

getTypeback to summary
public int getType()

Implements abstract org.h2.command.Prepared.getType.

Doc from org.h2.command.Prepared.getType.

Get the command type as defined in CommandInterface

Returns:int

the statement type

Annotations
@Override
setBeforeback to summary
public void setBefore(boolean before)
setForceback to summary
public void setForce(boolean force)
setIfNotExistsback to summary
public void setIfNotExists(boolean ifNotExists)
setInsteadOfback to summary
public void setInsteadOf(boolean insteadOf)
setNoWaitback to summary
public void setNoWait(boolean noWait)
setOnRollbackback to summary
public void setOnRollback(boolean onRollback)
setQueueSizeback to summary
public void setQueueSize(int size)
setRowBasedback to summary
public void setRowBased(boolean rowBased)
setTableNameback to summary
public void setTableName(String tableName)
setTriggerClassNameback to summary
public void setTriggerClassName(String triggerClassName)
setTriggerNameback to summary
public void setTriggerName(String name)
setTriggerSourceback to summary
public void setTriggerSource(String triggerSource)
setTypeMaskback to summary
public void setTypeMask(int typeMask)
updateback to summary
public long update()

Overrides org.h2.command.Prepared.update.

Doc from org.h2.command.Prepared.update.

Execute the statement.

Returns:long

the update count

Annotations
@Override