cds.sql
Class SQLStatementFactory

java.lang.Object
  extended bycds.sql.SQLStatementFactory

public class SQLStatementFactory
extends java.lang.Object

Factory class for SQL command objects. An SQL command object simplifies the creation of SQL commands.

Version:
1.0 May 2003
Author:
Marc Wenger/CDS

Constructor Summary
SQLStatementFactory()
           
 
Method Summary
static SQLInsert createInsert()
          Create an INSERT statement object
static SQLInsert createInsertValues()
          Create an INSERT statement with only values
static SQLSelectFromWhere createSelectFromWhere()
          Create a simple SELECT-FROM-WHERE statiement.
static SQLSelectFromWhere createSelectFromWhere(java.lang.String cols, java.lang.String tables, java.lang.String conds)
          Create a simple SELECT-FROM-WHERE statiement.
static void main(java.lang.String[] args)
          test programme
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLStatementFactory

public SQLStatementFactory()
Method Detail

createInsert

public static SQLInsert createInsert()
Create an INSERT statement object

Returns:
a SQLInsert object

createInsertValues

public static SQLInsert createInsertValues()
Create an INSERT statement with only values

Returns:
a SQLInsert object

createSelectFromWhere

public static SQLSelectFromWhere createSelectFromWhere()
Create a simple SELECT-FROM-WHERE statiement.

Returns:
a SQLSelect object

createSelectFromWhere

public static SQLSelectFromWhere createSelectFromWhere(java.lang.String cols,
                                                       java.lang.String tables,
                                                       java.lang.String conds)
Create a simple SELECT-FROM-WHERE statiement.

Returns:
a SQLSelect object

main

public static void main(java.lang.String[] args)
test programme