Method Summary |
|
abstract protected String | addEscapeChars(String sOldString) Returns an escaped string which can be entered in to the database without
'special' characters causing a problem. |
public void | closeConnection(Connection conn) Closes the connection to the database. |
abstract public void | createTable(TableDefinition tblDef) Creates a new database table from the given table definition. |
public void | disconnect() Disconnects from database. |
public void | execute(String sSql) Executes SQL query specified by sSql on the database. |
public ResultSet | execute(SelectStatement query) Executes the given select statement on the database. |
public int | execute(UpdateStatement update) Executes the given update statement on the database. |
public void | execute(InsertStatement insert) Executes the given insert statement on the database. |
public void | execute(DeleteStatement delete) Executes the given delete statement on the database. |
public void | executeInsert(InsertStatement insert) Executes the given insert statement on the database. |
public ResultSet | executeQuery(String sSql) Executes a specified SQL query on the database. |
public ResultSet | executeQuery(SelectStatement query) Executes the given select statement on the database. |
public int | executeUpdate(String sSql) Executes a specified SQL update statement on the database. |
public int | executeUpdate(UpdateStatement update) Executes the given update statement on the database. |
protected String | generateFromClause(SelectStatement select) Returns the SQL 'from' clause for the given AbstractDMLStatement
and the list of tables. |
protected String | generateOrderByClause(SelectStatement select) Returns the SQL 'order by' clause for the given SelectStatement . |
protected String | generateWhereClause(SelectStatement select) Returns the SQL where clause for the SQL statement corresponding to
the given SelectStatement , including the necessary
join conditions. |
protected String | generateWhereClause(AbstractDMLStatement DML) Returns the SQL where clause for the given AbstractDMLStatement . |
protected String | generateWhereClause(WhereConditionGroup where) Returns the SQL where clause for the given collection of where conditions. |
abstract public String | getBooleanDataType() Returns the boolean datatype for this data store interface. |
abstract public String | getCLOBDataType() Returns the SQL CLOB datatype for this data store interface. |
abstract public String | getClob(String sTable, String sColumn, String sCondition) Returns the text held in a CLOB field in the database. |
public Connection | getConnection() Returns the database connection. |
public String | getDatabaseURL() Returns the URL of the database. |
abstract protected String | getDateAsSQL(String date) Returns the given date formatted for use in a SQL statement. |
abstract public String | getDateDataType() Returns the SQL date datatype for this data store interface. |
public String | getDeleteStatement(DeleteStatement delete) Returns the SQL delete statement corresponding to the given
DeleteStatement . |
abstract protected String | getFunction(Function func) Returns the SQL function for the given Function . |
public String | getInsertStatement(InsertStatement insert) Returns the SQL statement corresponding to the given
InsertStatement . |
abstract public String | getJoinCondition(ColumnRef ref1, ColumnRef ref2, boolean bIsOuter) Returns the SQL join condition statement joining the two given
column references, taking in to account whether the join should be
an outer join. |
protected String | getOrderByRef(ColumnRef ordercol) Returns the SQL string to include in to the SQL select statement
to ensure correct ordering of the result set. |
public String | getSelectStatement(SelectStatement select) Returns the SQL select statement corresponding to the given
SelectStatement . |
abstract public List | getSequenceList() Returns the list of sequences available in the database. |
abstract public int | getSequenceNextValue(String sSeqName) Returns the next value in the specified sequence. |
abstract public List | getTableList() Returns the list of tables contained in the database. |
public String | getUpdateStatement(UpdateStatement update) Returns the SQL update statement corresponding to the given
UpdateStatement . |
public void | initialise(int nConnectionType) Initialise this data store interface with the specified connection type. |
abstract public void | insertClob(String sTable, String sColumn, String sClob, String sCondition) Inserts CLOB data into database. |
protected boolean | isNationalCharacterSupported() |
public boolean | isPooledConnection() Returns true if whether this data store interface uses a pooled connection. |
public boolean | isTableExist(String sTableName) Returns true of the specified table exists. |
public static java.util.Date | parseDate(String sDate) Returns the given String as a Date ,
using the default date format for parsing. |
public void | setDataStoreDetails(String sJDBCDriver, String sDBurl, String sDBUsr, String sDBPwd) Sets the connection details for this data store interface. |
protected void | setNationalCharacterSupport(boolean bIsSupported) |
abstract public void | updateClob(String sTable, String sColumn, String sClob, String sCondition) Updates CLOB text in the database. |