KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > daffodilwoods > daffodildb > server > sql99 > dcl > sqlcontrolstatement > ProcedureStringReference


1 package com.daffodilwoods.daffodildb.server.sql99.dcl.sqlcontrolstatement;
2
3 import com.daffodilwoods.daffodildb.server.sql99.utils.*;
4 import com.daffodilwoods.database.resource.*;
5 import com.daffodilwoods.daffodildb.server.sql99.common.TypeConstants;
6
7 public class ProcedureStringReference implements _Reference {
8
9    String JavaDoc parameterName;
10    int dataType;
11    int size;
12    String JavaDoc reason;
13    public ProcedureStringReference(String JavaDoc paramName) {
14       parameterName = paramName;
15    }
16
17    public String JavaDoc getColumn() throws DException {
18       return parameterName;
19    }
20
21    public int getDatatype() throws DException {
22       return dataType;
23    }
24
25    public void setDatatype(int type) throws DException {
26       dataType = type;
27    }
28
29    public int getIndex() throws DException {
30       throw new UnsupportedOperationException JavaDoc(
31           "Method getIndex() not yet implemented.");
32    }
33
34    public void setIndex(int parm1) throws DException {
35       throw new UnsupportedOperationException JavaDoc(
36           "Method setIndex() not yet implemented.");
37    }
38
39    public int getReferenceType() throws DException {
40       return TypeConstants.REFERENCE;
41    }
42
43    public String JavaDoc getQualifiedColumnName() throws DException {
44       return parameterName;
45    }
46
47    public String JavaDoc getTriggerTableAlias() throws DException {
48       return null;
49    }
50
51    public void setSize(int size0) throws DException {
52       size = size0;
53    }
54
55    public int getSize() throws DException {
56       return size;
57    }
58
59    public void setReason(String JavaDoc reason0) throws DException {
60       reason = reason0;
61    }
62
63    public String JavaDoc getReason() throws DException {
64       return reason;
65    }
66
67    /* Done by Kaushik on 10/09/2004 to solve Bug No.11173 */
68    boolean isCloned;
69    public boolean isCloned() {
70       return isCloned;
71    }
72
73    public void setCloned(boolean isCloned0) {
74       isCloned = isCloned0;
75    }
76 }
77
Popular Tags