svn commit: r492883 - /db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/sql/SqlSelectStatement.java

[email protected]
Newsgroups gmane.comp.jakarta.ojb.devel
Message-ID <[email protected]>
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:[email protected]">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();
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.