| java.lang.Object org.apache.torque.adapter.AbstractDBAdapter org.apache.torque.adapter.DBDerby
DBDerby | public class DBDerby extends AbstractDBAdapter (Code) | | This is used to connect to an embedded Apache Derby Database using
the supplied JDBC driver.
author: Henning P. Schmiedehausen version: $Id: DBDerby.java 473821 2006-11-11 22:37:25Z tv $ |
Constructor Summary | |
protected | DBDerby() Empty constructor. |
DBDerby | protected DBDerby()(Code) | | Empty constructor.
|
escapeText | public boolean escapeText()(Code) | | Whether backslashes (\) should be escaped in explicit SQL strings.
If true is returned, a BACKSLASH will be changed to "\\". If false
is returned, a BACKSLASH will be left as "\".
As derby does not need escaping of Backslashes, this method always
returns false.
true if the database needs to escape backslashesin SqlExpressions. |
ignoreCase | public String ignoreCase(String str)(Code) | | This method is used to ignore case.
Parameters: str - 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 str)(Code) | | This method is used to ignore case.
Parameters: str - 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 '\';
Derby needs this, so this implementation always returns
true .
whether the escape clause should be appended or not. |
|
|