org.edg.info.sqlutil.parsql
Class LockTableStatement

java.lang.Object
  extended byorg.edg.info.sqlutil.parsql.LockTableStatement
All Implemented Interfaces:
java.io.Serializable, Statement

public class LockTableStatement
extends java.lang.Object
implements Statement

LockTableStatement: an SQL LOCK TABLE statement

See Also:
Serialized Form

Constructor Summary
LockTableStatement()
          Creates a new LockTableStatement object.
 
Method Summary
 void addTables(java.util.Vector tables)
          Adds a list of table names.
 java.lang.String getLockMode()
          Gets the lock mode.
 java.util.Vector getTables()
          Gets a list of table names.
 boolean isNoWait()
          Gets the noWait flag.
 void setLockMode(java.lang.String lockMode)
          Sets the lock mode.
 void setNoWait(boolean noWait)
          Sets the noWait flag.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LockTableStatement

public LockTableStatement()
Creates a new LockTableStatement object.

Method Detail

setLockMode

public void setLockMode(java.lang.String lockMode)
Sets the lock mode.

Parameters:
lockMode - Lock mode.

getLockMode

public java.lang.String getLockMode()
Gets the lock mode.

Returns:
The lock mode.

isNoWait

public boolean isNoWait()
Gets the noWait flag.

Returns:
NoWait flag.

setNoWait

public void setNoWait(boolean noWait)
Sets the noWait flag.

Parameters:
noWait - NoWait flag.

getTables

public java.util.Vector getTables()
Gets a list of table names.

Returns:
A list of table names.

addTables

public void addTables(java.util.Vector tables)
Adds a list of table names.

Parameters:
tables - List of table names.