db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject svn commit: r492883 - /db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/sql/SqlSelectStatement.java
Date Fri, 05 Jan 2007 03:10:38 GMT
Author: arminw
Date: Thu Jan  4 19:10:37 2007
New Revision: 492883

URL: http://svn.apache.org/viewvc?view=rev&rev=492883
Log:
add support for new Query methods

Modified:
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/sql/SqlSelectStatement.java

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/sql/SqlSelectStatement.java
URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/sql/SqlSelectStatement.java?view=diff&rev=492883&r1=492882&r2=492883
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/sql/SqlSelectStatement.java
(original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/sql/SqlSelectStatement.java
Thu Jan  4 19:10:37 2007
@@ -38,7 +38,6 @@
 /**
  * Model a SELECT Statement
  *
- * @author <a href="mailto:jbraeuchi@hotmail.com">Jakob Braeuchi</a>
  * @version $Id$
  */
 public class SqlSelectStatement extends SqlQueryStatement implements SelectStatement
@@ -376,6 +375,15 @@
         if (query instanceof ReportQueryByCriteria)
         {
              ((ReportQueryByCriteria) query).setAttributeFieldDescriptors(m_attrToFld);
+        }
+
+        if(query.isSelectForUpdate())
+        {
+            stmt.append(getPlatform().getSelectForUpdateClause());
+        }
+        if(query.getQueryAffix() != null)
+        {
+            stmt.append(" ").append(query.getQueryAffix());
         }
 
         return stmt.toString();



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


Mime
View raw message