ca.spaz.sql
Class SQLInsert

java.lang.Object
  extended by ca.spaz.sql.SQLStatement
      extended by ca.spaz.sql.SQLInsert
All Implemented Interfaces:
Columns

public class SQLInsert
extends SQLStatement
implements Columns

Simplifies constructing SQL Insert Queries.

Author:
davidson

Field Summary
 
Fields inherited from class ca.spaz.sql.SQLStatement
table
 
Constructor Summary
SQLInsert(java.lang.String tableName)
           
 
Method Summary
protected  void doExecute(java.sql.Connection con)
           
protected  java.sql.ResultSet doExecuteQuery(java.sql.Connection con)
           
 SQLColumnSet getColumns()
          Retrieve the cols from the SQLInsert
protected  java.lang.String getQueryString()
           
 
Methods inherited from class ca.spaz.sql.SQLStatement
execute, executeQuery, getTableName, isExecuteSupported, isQuerySupported, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SQLInsert

public SQLInsert(java.lang.String tableName)
Method Detail

doExecute

protected void doExecute(java.sql.Connection con)
                  throws java.sql.SQLException
Overrides:
doExecute in class SQLStatement
Throws:
java.sql.SQLException

doExecuteQuery

protected java.sql.ResultSet doExecuteQuery(java.sql.Connection con)
                                     throws java.sql.SQLException
Overrides:
doExecuteQuery in class SQLStatement
Throws:
java.sql.SQLException

getQueryString

protected java.lang.String getQueryString()
Specified by:
getQueryString in class SQLStatement

getColumns

public SQLColumnSet getColumns()
Retrieve the cols from the SQLInsert

Specified by:
getColumns in interface Columns
Returns:
Returns the cols.


Copyright © 2005 Spaz. All Rights Reserved.