public class SqlCmdSet
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
SqlCmdSet()
Empty constructor, will initialize a zero length set of commands.
|
SqlCmdSet(int len)
This constructor will initialize the command set to be a specific size.
|
SqlCmdSet(java.lang.String cmd)
This constructor will create a command set with a single SQL statement.
|
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.String cmd)
This method allows you to add a single command to the command set.
|
java.lang.String[] |
getCommandSet()
This method will return the complete command set as an array of strings.
|
int |
numberOfCommands()
Method will give the actual number of commands in the command set.
|
void |
set(java.lang.String[] cmds)
This method allows you to set the entire command set at once as an array
of individual SQL commands.
|
int |
size()
Method will give the size of the command set (not necessarily the number
of commands included in it).
|
public SqlCmdSet()
public SqlCmdSet(java.lang.String cmd)
cmd
- A single SQL statement.public SqlCmdSet(int len)
len
- The length the command set should be initialized to.public void add(java.lang.String cmd)
cmd
- A single SQL command that should be added to the set.public void set(java.lang.String[] cmds)
cmds
- A String array of commands.public java.lang.String[] getCommandSet()
public int size()
public int numberOfCommands()