org.edg.info.sqlutil
Class FastInsertStatement

java.lang.Object
  extended byorg.edg.info.sqlutil.FastInsertStatement

public class FastInsertStatement
extends java.lang.Object

Represents an SQL INSERT statement. Syntax is restricted to: INSERT INTO [ (, , ... ) ] VALUES ( , , ... );


Constructor Summary
FastInsertStatement(java.lang.String p_table)
          Creates an INSERT statement on a given table
 
Method Summary
 java.util.Vector getColumnNames()
          Returns vector of column names if specified in the SQL.
 java.util.Vector getColumnValues()
          Returns the vector of column values for this insert statement
 java.lang.String getTable()
          Returns the name of the table
 void setColumnNames(java.util.Vector p_columnNames)
          Sets the vector of column names
 void setColumnValues(java.util.Vector p_columnValues)
          Sets the vector of VALUES for the INSERT statement
 java.lang.String toString()
          Converts this statement into a String.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FastInsertStatement

public FastInsertStatement(java.lang.String p_table)
Creates an INSERT statement on a given table

Method Detail

getTable

public java.lang.String getTable()
Returns the name of the table


setColumnNames

public void setColumnNames(java.util.Vector p_columnNames)
Sets the vector of column names


getColumnNames

public java.util.Vector getColumnNames()
Returns vector of column names if specified in the SQL. If no vector was specified the return value is null.

Returns:
vector of String objects.

setColumnValues

public void setColumnValues(java.util.Vector p_columnValues)
Sets the vector of VALUES for the INSERT statement


getColumnValues

public java.util.Vector getColumnValues()
Returns the vector of column values for this insert statement


toString

public java.lang.String toString()
Converts this statement into a String. As: INSERT INTO m_table (m_columnNames, ...) VALUES (m_columnValues, ...);