db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r1701510 - /db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/criteria/PreparedStatementPart.java
Date Sun, 06 Sep 2015 18:45:05 GMT
Author: tfischer
Date: Sun Sep  6 18:45:05 2015
New Revision: 1701510

URL: http://svn.apache.org/r1701510
Log:
improve javadoc, add final modifier

Modified:
    db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/criteria/PreparedStatementPart.java

Modified: db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/criteria/PreparedStatementPart.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/criteria/PreparedStatementPart.java?rev=1701510&r1=1701509&r2=1701510&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/criteria/PreparedStatementPart.java
(original)
+++ db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/criteria/PreparedStatementPart.java
Sun Sep  6 18:45:05 2015
@@ -28,7 +28,7 @@ import org.apache.commons.lang.StringUti
 import org.apache.commons.lang.builder.EqualsBuilder;
 import org.apache.commons.lang.builder.HashCodeBuilder;
 /**
- * The rendered SQL for a part of a prepared statement.
+ * The rendered SQL for a part of a prepared statement, including replacements for ? placeholders.
  *
  * @version $Id$
  */
@@ -64,8 +64,8 @@ public class PreparedStatementPart imple
      *        to start with, or null.
      */
     public PreparedStatementPart(
-            String sql,
-            Object... preparedStatementReplacements)
+            final String sql,
+            final Object... preparedStatementReplacements)
     {
         if (!StringUtils.isEmpty(sql))
         {
@@ -115,7 +115,7 @@ public class PreparedStatementPart imple
      *
      * @return this PreparedStatementPart (with toAppend appended).
      */
-    public PreparedStatementPart append(PreparedStatementPart toAppend)
+    public PreparedStatementPart append(final PreparedStatementPart toAppend)
     {
         sql.append(toAppend.sql);
         preparedStatementReplacements.addAll(
@@ -130,7 +130,7 @@ public class PreparedStatementPart imple
      *
      * @return this PreparedStatementPart (with toAppend appended).
      */
-    public PreparedStatementPart append(SqlEnum toAppend)
+    public PreparedStatementPart append(final SqlEnum toAppend)
     {
         sql.append(toAppend);
         return this;
@@ -146,7 +146,7 @@ public class PreparedStatementPart imple
     }
 
     @Override
-    public boolean equals(Object obj)
+    public boolean equals(final Object obj)
     {
         if (this == obj)
         {



---------------------------------------------------------------------
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