1 package com.daffodilwoods.daffodildb.server.sql99.ddl.schemadefinition; 2 3 import com.daffodilwoods.database.resource.*; 4 5 public class routinecharacteristics { 6 public routinecharacteristic[] _routinecharacteristics0; 7 8 public Object [] getAllRoutineCharacteristics() throws DException { 9 Object [] routineCharacter = new Object [] { 10 "SQL", "SQL", null, "NO", "CONTAINS", null, null, null}; 11 boolean[] values = new boolean[8]; 12 int size = _routinecharacteristics0 == null ? 0 : _routinecharacteristics0.length; 13 for (int i = 0; i < size; i++) { 14 Object obj = _routinecharacteristics0[i]; 15 if(obj instanceof languageclause) { 16 if(! values[0]) { 17 values[0] = true; 18 routineCharacter[0] = obj; 19 } 20 else 21 throw new DException("DSE205",null); 22 } 23 if(obj instanceof parameterstyleclause) { 24 if(! values[1]) { 25 values[1] = true; 26 routineCharacter[1] = obj; 27 } 28 else 29 throw new DException("DSE206",null); 30 } 31 if (obj instanceof SRESERVEDWORD1206543922specificname) { 32 if (!values[2]) { 33 values[2] = true; 34 routineCharacter[2] = obj; 35 } else { 36 throw new DException("DSE203", null); 37 } 38 } 39 if(obj instanceof deterministiccharacteristic) { 40 if(! values[3]) { 41 values[3] = true; 42 routineCharacter[3] = obj; 43 } 44 else { 45 throw new DException("DSE200",null); 46 } 47 if(obj instanceof SQL_dataaccessindication) { 48 if(! values[4]) { 49 values[4] = true; 50 routineCharacter[4] = obj; 51 } 52 else 53 throw new DException("DSE201",null); 54 } 55 if(obj instanceof null_callclause) { 56 if(!values[5]) { 57 values[5]=true; 58 routineCharacter[5] = obj; 59 } 60 else 61 throw new DException("DSE5012",null); 62 } 63 if(obj instanceof dynamicresultsetscharacteristic) { 64 if(! values[7]) { 65 values[7] = true; 66 routineCharacter[7] = obj; 67 } 68 else 69 throw new DException("DSE202",null); 70 } 71 } 72 } 73 return routineCharacter; 74 } 75 76 public String toString() { 77 StringBuffer sb = new StringBuffer (); 78 sb.append(" "); 79 if (_routinecharacteristics0 != null) { 80 for (int i = 0; i < _routinecharacteristics0.length; i++) { 81 sb.append(_routinecharacteristics0[i]); 82 } 83 } 84 return sb.toString(); 85 } 86 87 public Object clone() throws CloneNotSupportedException { 88 return this; 89 } 90 91 } 92 | Popular Tags |