| java.lang.Object org.apache.torque.adapter.AbstractDBAdapter org.apache.torque.adapter.DBFirebird
DBFirebird | public class DBFirebird extends AbstractDBAdapter (Code) | | This code should be used for a Firebird database pool.
author: Joerg Friedrich version: $Id: DBInterbase.java 239630 2005-08-24 12:25:32Z henning $ |
escapeText | public boolean escapeText()(Code) | | This method is for the SqlExpression.quoteAndEscape rules. The rule is,
any string in a SqlExpression with a BACKSLASH will either be changed to
"\\" (if the method returns true) or left as "\" (if the method returns
false).
false. |
getDateString | public String getDateString(Date date)(Code) | | This method overrides the JDBC escapes used to format dates
using a DateFormat . As of version 2.0.11, the MM
JDBC driver does not implement JDBC 3.0 escapes.
Parameters: date - the date to format The properly formatted date String. |
ignoreCase | public String ignoreCase(String in)(Code) | | This method is used to ignore case.
Parameters: in - The string whose case to ignore. The string in a case that can be ignored. |
ignoreCaseInOrderBy | public String ignoreCaseInOrderBy(String in)(Code) | | This method is used to ignore case in an ORDER BY clause.
Usually it is the same as ignoreCase, but some databases
(Interbase for example) does not use the same SQL in ORDER BY
and other clauses.
Parameters: in - The string whose case to ignore. The string in a case that can be ignored. |
lockTable | public void lockTable(Connection con, String table) throws SQLException(Code) | | Locks the specified table.
Parameters: con - The JDBC connection to use. Parameters: table - The name of the table to lock. exception: SQLException - No Statement could be created or executed. |
toUpperCase | public String toUpperCase(String in)(Code) | | This method is used to ignore case.
Parameters: in - The string to transform to upper case. The upper case string. |
unlockTable | public void unlockTable(Connection con, String table) throws SQLException(Code) | | Unlocks the specified table.
Parameters: con - The JDBC connection to use. Parameters: table - The name of the table to unlock. exception: SQLException - No Statement could be created or executed. |
useEscapeClauseForLike | public boolean useEscapeClauseForLike()(Code) | | Whether an escape clause in like should be used.
Example : select * from AUTHOR where AUTHOR.NAME like '\_%' ESCAPE '\';
Firebird needs this, so this implementation always returns
true .
whether the escape clause should be appended or not. |
|
|