org.openbandy.io.db
Class SqlStatement

java.lang.Object
  extended by org.openbandy.io.db.SqlStatement

public class SqlStatement
extends java.lang.Object

Creates the actual SQL commands that will be executed on the database. Provides methods which create SQL statements to insert, update, or delete database entries.

(c) Copyright Philipp Bolliger 2007, ALL RIGHTS RESERVED.

Version:
1.0
Author:
Philipp Bolliger (philipp@bolliger.name)

Constructor Summary
SqlStatement()
           
 
Method Summary
static java.lang.String createDELETE(Serializable serializable)
           
static java.lang.String createINSERT(ObjectEntry tableEntry)
           
static java.lang.String createLAST_INSERTED(Serializable serializable)
           
static java.lang.String createSELECT(Serializable serializable)
           
static java.lang.String createSELECTALL(Serializable serializable)
           
static java.lang.String createUPDATE(ObjectEntry tableEntry)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlStatement

public SqlStatement()
Method Detail

createINSERT

public static java.lang.String createINSERT(ObjectEntry tableEntry)

createUPDATE

public static java.lang.String createUPDATE(ObjectEntry tableEntry)

createSELECT

public static java.lang.String createSELECT(Serializable serializable)

createSELECTALL

public static java.lang.String createSELECTALL(Serializable serializable)

createDELETE

public static java.lang.String createDELETE(Serializable serializable)

createLAST_INSERTED

public static java.lang.String createLAST_INSERTED(Serializable serializable)