webwork/src/main/webwork/util QuerySegment.java,1.8,1.9

[email protected] Sun, 16 Nov 2003 15:35:36 -0800
Newsgroups gmane.comp.java.open-symphony.cvs
Message-ID <[email protected]>
Update of /cvsroot/opensymphony/webwork/src/main/webwork/util
In directory sc8-pr-cvs1:/tmp/cvs-serv1836

Modified Files:
	QuerySegment.java 
Log Message:
Updated when adding SimpleTest class to fix issue WW-387

Index: QuerySegment.java
===================================================================
RCS file: /cvsroot/opensymphony/webwork/src/main/webwork/util/QuerySegment.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- QuerySegment.java	17 Jun 2003 09:55:39 -0000	1.8
+++ QuerySegment.java	16 Nov 2003 23:35:34 -0000	1.9
@@ -33,6 +33,7 @@
    public final static int NUMBER = 12;
    public final static int NULL = 13;
 
+   private Query query;
    private String id;
    private int type;
    private List values;
@@ -48,6 +49,13 @@
       this.id = id;
       this.type = type;
    }
+   
+   public QuerySegment(String id, Query query, int type)
+   {
+      this.id = id;
+      this.query = query;
+      this.type = type;
+   }
 
    /**
     * Add a value that is associated with this QuerySegment.
@@ -68,6 +76,11 @@
       return id;
    }
 
+   public Query getQuery()
+   {
+      return query;
+   }
+	
    /**
     * Return this QuerySegments type.  The type is used to identify
     * if this QuerySegment will be used to access an object property,




-------------------------------------------------------
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl