avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hamm...@apache.org
Subject cvs commit: jakarta-avalon-cornerstone/apps/db/src/java/org/apache/avalon/db/basic/data BasicView.java
Date Fri, 09 Nov 2001 12:43:48 GMT
hammant     01/11/09 04:43:48

  Modified:    apps/db/src/java/org/apache/avalon/db/basic/actions
                        BasicCreateView.java
               apps/db/src/java/org/apache/avalon/db/basic/data
                        BasicView.java
  Log:
  Basicview holds onto Select now
  
  Revision  Changes    Path
  1.3       +3 -2      jakarta-avalon-cornerstone/apps/db/src/java/org/apache/avalon/db/basic/actions/BasicCreateView.java
  
  Index: BasicCreateView.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-cornerstone/apps/db/src/java/org/apache/avalon/db/basic/actions/BasicCreateView.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- BasicCreateView.java	2001/11/09 11:41:53	1.2
  +++ BasicCreateView.java	2001/11/09 12:43:48	1.3
  @@ -29,7 +29,7 @@
    *
    *
    * @author Paul Hammant <a href="mailto:Paul_Hammant@yahoo.com">Paul_Hammant@yahoo.com</a>
  - * @version $Revision: 1.2 $
  + * @version $Revision: 1.3 $
    */
   public class BasicCreateView extends BasicCreateRowHolder implements CreateTable {
   
  @@ -63,6 +63,7 @@
   
           NodeList subRootNodes = mLxsql.getChildNodes();
           Column[] columns = null;
  +        BasicSelect basicSelect = null;
           for (int i = 0; i < subRootNodes.getLength(); i++) {
               if (subRootNodes.item(i).getNodeName().equals("create-table")) {
                   columns = getColumns((Element) subRootNodes.item(i));
  @@ -74,7 +75,7 @@
   
   
   
  -        View view = new BasicView(mViewName, columns);
  +        View view = new BasicView(mViewName, columns, basicSelect);
           mDatabasePersistor.addView(mViewName, view);
   
           if (basicSelect != null) {
  
  
  
  1.2       +5 -2      jakarta-avalon-cornerstone/apps/db/src/java/org/apache/avalon/db/basic/data/BasicView.java
  
  Index: BasicView.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-cornerstone/apps/db/src/java/org/apache/avalon/db/basic/data/BasicView.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- BasicView.java	2001/11/09 11:16:59	1.1
  +++ BasicView.java	2001/11/09 12:43:48	1.2
  @@ -9,19 +9,22 @@
   
   import org.apache.avalon.db.data.impl.AbstractView;
   import org.apache.avalon.db.data.Column;
  +import org.apache.avalon.db.basic.actions.BasicSelect;
   
   /**
    * Class BasicView
    *
    *
    * @author Paul Hammant <a href="mailto:Paul_Hammant@yahoo.com">Paul_Hammant@yahoo.com</a>
  - * @version $Revision: 1.1 $
  + * @version $Revision: 1.2 $
    */
   public class BasicView extends AbstractView {
   
  +    private BasicSelect mBasicSelect;
   
  -    public BasicView(String name, Column[] columns) {
  +    public BasicView(String name, Column[] columns, BasicSelect basicSelect) {
           super(name, columns);
  +        mBasicSelect = basicSelect;
       }
   
       public int getColumnIndex(String columnName) {
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-dev-help@jakarta.apache.org>


Mime
View raw message