cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From coli...@apache.org
Subject cvs commit: cocoon-2.1/src/java/org/apache/cocoon/components/flow/javascript ScriptableConnection.java
Date Mon, 17 Mar 2003 19:19:26 GMT
coliver     2003/03/17 11:19:25

  Modified:    src/java/org/apache/cocoon/components/flow/javascript
                        ScriptableConnection.java
  Log:
  remove tabs
  
  Revision  Changes    Path
  1.5       +32 -32    cocoon-2.1/src/java/org/apache/cocoon/components/flow/javascript/ScriptableConnection.java
  
  Index: ScriptableConnection.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/java/org/apache/cocoon/components/flow/javascript/ScriptableConnection.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ScriptableConnection.java	17 Mar 2003 18:53:16 -0000	1.4
  +++ ScriptableConnection.java	17 Mar 2003 19:19:25 -0000	1.5
  @@ -1,4 +1,4 @@
  -/*
  +/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
   
    ============================================================================
                      The Apache Software License, Version 1.1
  @@ -210,21 +210,21 @@
           throws JavaScriptException {
           try {
               PreparedStatement stmt = connection.prepareStatement(sql);
  -	    Scriptable array = (Scriptable)params;
  -	    if (array != Undefined.instance) {
  -		int len = (int)
  -		    Context.toNumber(ScriptableObject.getProperty(array, "length"));
  -		for (int i = 0; i < len; i++) {
  -		    Object val = ScriptableObject.getProperty(array, i);
  -		    if (val instanceof Wrapper) {
  -			val = ((Wrapper)val).unwrap();
  -		    }
  -		    if (val == Scriptable.NOT_FOUND) {
  -			val = null;
  -		    }
  -		    stmt.setObject(i + 1, val);
  -		}
  -	    }
  +            Scriptable array = (Scriptable)params;
  +            if (array != Undefined.instance) {
  +                int len = (int)
  +                    Context.toNumber(ScriptableObject.getProperty(array, "length"));
  +                for (int i = 0; i < len; i++) {
  +                    Object val = ScriptableObject.getProperty(array, i);
  +                    if (val instanceof Wrapper) {
  +                        val = ((Wrapper)val).unwrap();
  +                    }
  +                    if (val == Scriptable.NOT_FOUND) {
  +                        val = null;
  +                    }
  +                    stmt.setObject(i + 1, val);
  +                }
  +            }
               ResultSet rs = stmt.executeQuery();
               if (maxRows == 0) {
                   maxRows = -1;
  @@ -243,21 +243,21 @@
           throws JavaScriptException {
           try {
               PreparedStatement stmt = connection.prepareStatement(sql);
  -	    Scriptable array = (Scriptable)params;
  -	    if (array != Undefined.instance) {
  -		int len = (int)
  -		    Context.toNumber(ScriptableObject.getProperty(array, "length"));
  -		for (int i = 0; i < len; i++) {
  -		    Object val = ScriptableObject.getProperty(array, i);
  -		    if (val instanceof Wrapper) {
  -			val = ((Wrapper)val).unwrap();
  -		    }
  -		    if (val == Scriptable.NOT_FOUND) {
  -			val = null;
  -		    }
  -		    stmt.setObject(i + 1, val);
  -		}
  -	    }
  +            Scriptable array = (Scriptable)params;
  +            if (array != Undefined.instance) {
  +                int len = (int)
  +                    Context.toNumber(ScriptableObject.getProperty(array, "length"));
  +                for (int i = 0; i < len; i++) {
  +                    Object val = ScriptableObject.getProperty(array, i);
  +                    if (val instanceof Wrapper) {
  +                        val = ((Wrapper)val).unwrap();
  +                    }
  +                    if (val == Scriptable.NOT_FOUND) {
  +                        val = null;
  +                    }
  +                    stmt.setObject(i + 1, val);
  +                }
  +            }
               stmt.execute();
               return stmt.getUpdateCount();
           } catch (Exception e) {
  
  
  

Mime
View raw message