View Javadoc

1   /*
2    * Script.java
3    *
4    * Created on 7 de Junho de 2005, 06:10
5    *
6    * To change this template, choose Tools | Options and locate the template under
7    * the Source Creation and Management node. Right-click the template and choose
8    * Open. You can then make changes to the template in the Source Editor.
9    */
10  
11  package org.thema.scriptware.digester;
12  
13  import java.util.ArrayList;
14  
15  /***
16   *
17   * @author Eduardo M . Sasso
18   */
19  public class Script {
20      private String sql;
21      private String sqlParams;
22      private String type;
23      private String name;
24      private ArrayList params;
25      
26      /*** Creates a new instance of Script */
27      public Script() {
28          params = new ArrayList();
29      }
30      
31      public String getSql() {
32          return sql;
33      }
34      
35      public void setSql(String sql) {
36          this.sql = sql;
37      }
38      
39      public String getType() {
40          return type;
41      }
42      
43      public void setType(String type) {
44          this.type = type;
45      }
46      
47      public String getName() {
48          return name;
49      }
50      
51      public void setName(String name) {
52          this.name = name;
53      }
54      public void addParam(Param p) {
55          params.add(p);
56      }
57      public ArrayList getParams() {
58          return params;
59      }
60      public String toString(){        
61          return Integer.toString(params.size());
62      }
63  
64      public String getSqlParams() {
65          return sqlParams;
66      }
67  
68      public void setSqlParams(String sqlParams) {
69          this.sqlParams = sqlParams;
70      }
71  }