1 package com.daffodilwoods.rmi.server; 2 3 import java.io.*; 4 import java.text.*; 5 6 import com.daffodilwoods.daffodildb.server.datadictionarysystem.*; 7 import com.daffodilwoods.daffodildb.server.sql99.dql.resultsetmetadata.*; 8 import com.daffodilwoods.database.general.*; 9 import com.daffodilwoods.database.resource.*; 10 11 public class RmiSelectColumnCharacteristics implements _ColumnCharacteristics, _SelectColumnCharacteristics, Externalizable { 12 ColumnInfo[] columnInfo; 13 14 public RmiSelectColumnCharacteristics() {} 15 16 public RmiSelectColumnCharacteristics(ColumnInfo[] columnInfo0) { 17 this.columnInfo = columnInfo0; 18 } 19 20 public int getColumnType(int index) throws DException { 21 return columnInfo[index - 1].type; 22 } 23 24 public int getColumnIndex(String columnName) throws DException { 25 for (int i = 0; i < columnInfo.length; i++) { 26 if (columnInfo[i].name.equalsIgnoreCase(columnName)) 27 return i + 1; 28 } 29 throw new DException("DSE508", new Object [] {columnName}); 30 } 31 32 public String getColumnName(int parm1) throws DException { 33 return columnInfo[parm1 - 1].name; 34 } 35 36 public String getRelatedTable(int parm1) throws DatabaseException, DException { 37 throw new java.lang.UnsupportedOperationException ("Method getRelatedTable() not yet implemented."); 38 } 39 40 public int getColumnCount() throws DException { 41 return columnInfo.length; 42 } 43 44 public String [] getColumnNames() throws DException { 45 String [] names = new String [columnInfo.length]; 46 for (int i = 0; i < columnInfo.length; i++) { 47 names[i] = columnInfo[i].name; 48 } 49 return names; 50 } 51 52 public int getSize(int parm1) throws DException { 53 return columnInfo[parm1 - 1].size; 54 } 55 56 public String [] getPrimaryKeys() throws DatabaseException, DException { 57 throw new java.lang.UnsupportedOperationException ("Method getPrimaryKeys() not yet implemented."); 58 } 59 60 public String getRelation(int parm1) throws DatabaseException, DException { 61 throw new java.lang.UnsupportedOperationException ("Method getRelation() not yet implemented."); 62 } 63 64 public int[] getColumnIndexes(String [] parm1) throws DException { 65 throw new java.lang.UnsupportedOperationException ("Method getColumnIndexes() not yet implemented."); 66 } 67 68 public int[] getPrimaryConditionColumns() throws DException { 69 throw new java.lang.UnsupportedOperationException ("Method getPrimaryConditionColumns() not yet implemented."); 70 } 71 72 public String getTableName(int index) throws DatabaseException, DException { 73 return columnInfo[index - 1].tableName; 74 } 75 76 public short getTableType() throws DException { 77 throw new java.lang.UnsupportedOperationException ("Method getTableType() not yet implemented."); 78 } 79 80 public int getPrecision(int index) throws DException { 81 return columnInfo[index - 1].precision; 82 } 83 84 public int getScale(int index) throws DException { 85 return columnInfo[index - 1].scale; 86 } 87 88 public String getSchemaName(int index) throws DException { 89 return columnInfo[index - 1].schemaName; 90 } 91 92 public String getCatalogName(int index) throws DException { 93 return columnInfo[index - 1].catalogName; 94 } 95 96 public int isNullable(int index) throws DException { 97 return columnInfo[index - 1].nullable; 98 } 99 100 public boolean isAutoIncrement(int index) throws DException { 101 return columnInfo[index - 1].isAutoIncrement; 102 } 103 104 public String getColumnLabel(int index) throws DException { 105 return columnInfo[index - 1].columnLabel; 106 } 107 108 public String getQualifiedTableName(int index) throws DException { 109 return columnInfo[index - 1].qualifiedTableName; 110 } 111 112 public String [] getRelatedColumns(int parm1) throws DatabaseException, DException { 113 throw new java.lang.UnsupportedOperationException ("Method getRelatedColumns() not yet implemented."); 114 } 115 116 public boolean isColumnUpdatable(int columnIndex) throws DException { 117 return columnInfo[columnIndex - 1].isColumnUpdatable; 118 } 119 120 public boolean isUpdatable() throws DException { 121 boolean isUpdatable = false; 122 for (int i = 0; !isUpdatable && i < columnInfo.length; i++) { 123 isUpdatable = columnInfo[i].isColumnUpdatable; 124 } 125 return isUpdatable; 126 } 127 128 public boolean isColumnSelectable(int columnIndex) throws DException { 129 throw new java.lang.UnsupportedOperationException ("Method isColumnSelectable() not yet implemented."); 130 } 131 132 public _SelectColumnCharacteristics getColumnCharacteristics(int index) throws DException { 133 throw new java.lang.UnsupportedOperationException ("Method getColumnCharacteristics() not yet implemented."); 134 } 135 136 public boolean isForeignTableRecordFetched(int index) throws DException { 137 throw new java.lang.UnsupportedOperationException ("Method isForeignTableRecordFetched() not yet implemented."); 138 } 139 140 public String getExpression(int index) throws DException { 141 throw new java.lang.UnsupportedOperationException ("Method getExpression() not yet implemented."); 142 } 143 144 public Collator getCollator() throws DException { 145 146 throw new UnsupportedOperationException ("Method not yet implemented"); 147 } 148 149 public void writeExternal(ObjectOutput oo) throws IOException { 150 oo.writeObject(columnInfo); 151 } 152 153 public void readExternal(ObjectInput oi) throws IOException, ClassNotFoundException { 154 columnInfo = (ColumnInfo[]) oi.readObject(); 155 } 156 157 public Object [] getCorresspondingColumnsForFromSubQueryColumn(Object column) throws DException { 158 throw new UnsupportedOperationException ("Method not yet implemented"); 159 } 160 161 public _ColumnCharacteristics getCCFromIndexes(_ColumnCharacteristics cc, int offset, int[] columnIndexes) throws DException { 162 throw new UnsupportedOperationException ("getCCFromIndexes(cc, offset, columnIndexes) method not implemented yet"); 163 } 164 } 165 | Popular Tags |