|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.jhu.tmaj.database.sql.GeneralSQLMaker
public class GeneralSQLMaker
A SQLMaker that provides the typical functionality for most databases. SybaseSQLMaker and OracleSQLMaker subclass this to handle the specifics of converting a SQL object into a SQL String.
Field Summary | |
---|---|
(package private) static java.lang.String |
NULL_STRING
|
Constructor Summary | |
---|---|
GeneralSQLMaker()
|
Method Summary | |
---|---|
java.lang.String |
getDeleteSQL(DeleteSQL deleteSQL)
Returns a DELETE SQL string that is ready to be run on the database. |
TwoSQLStatements |
getInsertSQL(InsertSQL insertSQL)
Returns a INSERT SQL string that is ready to be run on the database. |
static GeneralSQLMaker |
getInstance()
Returns a SQLMaker suitable for most databases (except Oracle.) |
java.lang.String |
getSelectSQL(SelectSQL selectSQL)
Returns a SELECT SQL string that is ready to be run on the database. |
protected java.lang.String |
getSQLValue(DatabaseField databaseField,
java.lang.Object obj)
Get a sql-ready string given a java object. |
java.lang.String |
getTableName(java.lang.String tableName)
Gets the sql-ready tablename given the table-name that tmaj uses. |
java.lang.String |
getUpdateSQL(UpdateSQL updateSQL)
Returns a UPDATE SQL string that is ready to be run on the database. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final java.lang.String NULL_STRING
Constructor Detail |
---|
public GeneralSQLMaker()
Method Detail |
---|
public static GeneralSQLMaker getInstance()
public java.lang.String getSelectSQL(SelectSQL selectSQL)
SQLMaker
getSelectSQL
in interface SQLMaker
public java.lang.String getTableName(java.lang.String tableName)
public TwoSQLStatements getInsertSQL(InsertSQL insertSQL)
SQLMaker
getInsertSQL
in interface SQLMaker
public java.lang.String getDeleteSQL(DeleteSQL deleteSQL)
SQLMaker
getDeleteSQL
in interface SQLMaker
public java.lang.String getUpdateSQL(UpdateSQL updateSQL)
SQLMaker
getUpdateSQL
in interface SQLMaker
protected java.lang.String getSQLValue(DatabaseField databaseField, java.lang.Object obj)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |