edu.jhu.tmaj.database.sql
Class OracleSQLMaker

java.lang.Object
  extended by edu.jhu.tmaj.database.sql.GeneralSQLMaker
      extended by edu.jhu.tmaj.database.sql.OracleSQLMaker
All Implemented Interfaces:
SQLMaker

final class OracleSQLMaker
extends GeneralSQLMaker
implements SQLMaker

A SQLMaker for an Oracle Database.


Field Summary
 
Fields inherited from class edu.jhu.tmaj.database.sql.GeneralSQLMaker
NULL_STRING
 
Method Summary
 TwoSQLStatements getInsertSQL(InsertSQL insertSQL)
          Returns a INSERT SQL string that is ready to be run on the database.
static OracleSQLMaker getInstance()
           
protected  java.lang.String getSQLValue(DatabaseField databaseField, java.lang.Object object)
          Get a sql-ready string given a java object.
 
Methods inherited from class edu.jhu.tmaj.database.sql.GeneralSQLMaker
getDeleteSQL, getSelectSQL, getTableName, getUpdateSQL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.jhu.tmaj.database.sql.SQLMaker
getDeleteSQL, getSelectSQL, getUpdateSQL
 

Method Detail

getInstance

public static OracleSQLMaker getInstance()

getInsertSQL

public TwoSQLStatements getInsertSQL(InsertSQL insertSQL)
Description copied from interface: SQLMaker
Returns a INSERT SQL string that is ready to be run on the database. In addition, a SELECT statement is also included in TwoSQLStatements. See TwoSQLStatements for more details.

Specified by:
getInsertSQL in interface SQLMaker
Overrides:
getInsertSQL in class GeneralSQLMaker

getSQLValue

protected java.lang.String getSQLValue(DatabaseField databaseField,
                                       java.lang.Object object)
Description copied from class: GeneralSQLMaker
Get a sql-ready string given a java object. If the java object is a String such as "my house", the returned string would be "'my house'". If the java object is an Integer such as new Integer(5), 5 would be returned.

Overrides:
getSQLValue in class GeneralSQLMaker