KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > daffodilwoods > daffodildb > server > sql99 > common > ParameterInfo


1 package com.daffodilwoods.daffodildb.server.sql99.common;
2
3
4 /**
5  * Title:
6  * Description:
7  * Copyright: Copyright ( c) 2002
8  * Company:
9  * @author
10  * @version 1.0
11  */

12
13 import com.daffodilwoods.database.resource.DException;
14
15 public class ParameterInfo implements java.io.Serializable JavaDoc {
16
17    private String JavaDoc name;
18    private String JavaDoc mode;
19    private int dataType = -1;
20    private boolean questionMark;
21    private boolean predicate;
22    private int[] subType;
23    private boolean subQuery;
24    private ParameterInfo[] parameterInfo;
25    private int ordinalPosition=-1;
26    public int isFunction;
27    public void setSubQuery(boolean subQuery) throws DException {
28       this.subQuery = subQuery;
29    }
30
31    public void setParameterInfoArray(ParameterInfo[] parameterInfo) throws DException {
32       this.parameterInfo = parameterInfo;
33    }
34
35    public ParameterInfo[] getParameterInfoArray() throws DException {
36       return parameterInfo;
37    }
38
39    public boolean getSubQuery() throws DException {
40       return subQuery;
41    }
42
43    public String JavaDoc getName() throws DException {
44       return name;
45    }
46
47    public void setName(String JavaDoc name) throws DException {
48       this.name = name;
49    }
50
51    public void setParameterMode(String JavaDoc mode) throws DException {
52       this.mode = mode;
53    }
54
55    public String JavaDoc getParameterMode() throws DException {
56         return mode;
57      }
58
59    public void setSubType(int[] subType) throws DException {
60       this.subType = subType;
61    }
62
63    public int[] getSubType() throws DException {
64       return subType;
65    }
66
67    public int getDataType() throws DException {
68       return dataType;
69    }
70
71    public void setDataType(int dataType) throws DException {
72       this.dataType = dataType;
73    }
74
75    public boolean getQuestionMark() throws DException {
76       return questionMark;
77    }
78
79    public void setQuestionMark(boolean questionMark) throws DException {
80       this.questionMark = questionMark;
81    }
82
83    public boolean getPredicate() throws DException {
84       return predicate;
85    }
86
87    public void setPredicate(boolean predicate) throws DException {
88       this.predicate = predicate;
89    }
90
91    public ParameterInfo() throws DException {
92    }
93
94    public String JavaDoc toString() {
95       String JavaDoc str = "";
96       str = "name : " + name + //+" DataType = "+ dataType +
97
" subQuery = " + subQuery +
98           " questionMark = " + questionMark;
99       return str;
100    }
101   public int getOridinalPosition() throws DException {
102      return ordinalPosition;
103   }
104
105   public void setOrdinalPosition(int ordinalPosition0) throws DException {
106      ordinalPosition = ordinalPosition0;
107   }
108
109
110 }
111
Popular Tags