db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r475463 - /db/torque/runtime/trunk/src/java/org/apache/torque/adapter/DBInterbase.java
Date Wed, 15 Nov 2006 22:14:16 GMT
Author: tfischer
Date: Wed Nov 15 14:14:16 2006
New Revision: 475463

URL: http://svn.apache.org/viewvc?view=rev&rev=475463
Log: (empty)

Modified:
    db/torque/runtime/trunk/src/java/org/apache/torque/adapter/DBInterbase.java

Modified: db/torque/runtime/trunk/src/java/org/apache/torque/adapter/DBInterbase.java
URL: http://svn.apache.org/viewvc/db/torque/runtime/trunk/src/java/org/apache/torque/adapter/DBInterbase.java?view=diff&rev=475463&r1=475462&r2=475463
==============================================================================
--- db/torque/runtime/trunk/src/java/org/apache/torque/adapter/DBInterbase.java (original)
+++ db/torque/runtime/trunk/src/java/org/apache/torque/adapter/DBInterbase.java Wed Nov 15
14:14:16 2006
@@ -77,16 +77,6 @@
     }
 
     /**
-     * Gets the string delimiter (usually '\'').
-     *
-     * @return The delimiter.
-     */
-    public char getStringDelimiter()
-    {
-        return '\'';
-    }
-
-    /**
      * @see org.apache.torque.adapter.DB#getIDMethodType()
      */
     public String getIDMethodType()
@@ -152,5 +142,32 @@
     {
         char delim = getStringDelimiter();
         return (delim + new SimpleDateFormat(DATE_FORMAT).format(date) + delim);
+    }
+
+    /**
+     * 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).
+     *
+     * @return false.
+     */
+    public boolean escapeText()
+    {
+        return false;
+    }
+
+    /**
+     * Whether an escape clause in like should be used.
+     * Example : select * from AUTHOR where AUTHOR.NAME like '\_%' ESCAPE '\';
+     *
+     * Interbase needs this, so this implementation always returns
+     * <code>true</code>.
+     *
+     * @return whether the escape clause should be appended or not.
+     */
+    public boolean useEscapeClauseForLike()
+    {
+        return true;
     }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message