com.sri.emo.commandline.defaults
Class DefaultSQLGenerator

java.lang.Object
  extended by com.sri.emo.commandline.defaults.DefaultSQLGenerator
All Implemented Interfaces:
SqlRowGenerator

public class DefaultSQLGenerator
extends Object
implements SqlRowGenerator

Generates an insertion.

Version:
1.0
Author:
Michael Rimov

Field Summary
static boolean SKIP_IGNORE_SYNTAX
           
static boolean USE_IGNORE_SYNTAX
           
 
Constructor Summary
DefaultSQLGenerator()
           
DefaultSQLGenerator(boolean useIgnoreSyntax)
           
 
Method Summary
 String generateAdd(DataObject valueObject)
           
 String generateInsert(DBObject individualRow)
          Generates an insert statement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USE_IGNORE_SYNTAX

public static final boolean USE_IGNORE_SYNTAX
See Also:
Constant Field Values

SKIP_IGNORE_SYNTAX

public static final boolean SKIP_IGNORE_SYNTAX
See Also:
Constant Field Values
Constructor Detail

DefaultSQLGenerator

public DefaultSQLGenerator()

DefaultSQLGenerator

public DefaultSQLGenerator(boolean useIgnoreSyntax)
Method Detail

generateInsert

public String generateInsert(DBObject individualRow)
Description copied from interface: SqlRowGenerator
Generates an insert statement

Specified by:
generateInsert in interface SqlRowGenerator
Parameters:
individualRow - DBObject
Returns:
String

generateAdd

public String generateAdd(DataObject valueObject)
                   throws DataException,
                          DuplicateKeyException
Throws:
DataException
DuplicateKeyException


Copyright © 2004-2006 Codeguild, Inc.. All Rights Reserved.