1 7 package com.nilostep.xlsql.jdbc; 8 9 import java.sql.*; 10 11 12 public class xlResultSetMetaData implements java.sql.ResultSetMetaData { 13 14 private ResultSetMetaData dbRsMeta; 15 private xlResultSet xlRs; 16 18 22 public xlResultSetMetaData(xlResultSet rs, ResultSetMetaData rsmeta) { 23 xlRs = rs; 24 dbRsMeta = rsmeta; 25 } 26 27 29 33 public String getCatalogName(int column) throws java.sql.SQLException { 34 return dbRsMeta.getCatalogName(column); 35 } 36 37 41 public String getColumnClassName(int column) throws java.sql.SQLException { 42 return dbRsMeta.getColumnClassName(column); 43 } 44 45 49 public int getColumnCount() throws java.sql.SQLException { 50 return dbRsMeta.getColumnCount(); 51 } 52 53 57 public int getColumnDisplaySize(int column) throws java.sql.SQLException { 58 return dbRsMeta.getColumnDisplaySize(column); 59 } 60 61 65 public String getColumnLabel(int column) throws java.sql.SQLException { 66 return dbRsMeta.getColumnLabel(column); 67 } 68 69 73 public String getColumnName(int column) throws java.sql.SQLException { 74 return dbRsMeta.getColumnName(column); 75 } 76 77 81 public int getColumnType(int column) throws java.sql.SQLException { 82 return dbRsMeta.getColumnType(column); 83 } 84 85 89 public String getColumnTypeName(int column) throws java.sql.SQLException { 90 return dbRsMeta.getColumnTypeName(column); 91 } 92 93 97 public int getPrecision(int column) throws java.sql.SQLException { 98 return dbRsMeta.getPrecision(column); 99 } 100 101 105 public int getScale(int column) throws java.sql.SQLException { 106 return dbRsMeta.getScale(column); 107 } 108 109 113 public String getSchemaName(int column) throws java.sql.SQLException { 114 return dbRsMeta.getSchemaName(column); 115 } 116 117 121 public String getTableName(int column) throws java.sql.SQLException { 122 return dbRsMeta.getTableName(column); 123 } 124 125 129 public boolean isAutoIncrement(int column) throws java.sql.SQLException { 130 return dbRsMeta.isAutoIncrement(column); 131 } 132 133 137 public boolean isCaseSensitive(int column) throws java.sql.SQLException { 138 return dbRsMeta.isCaseSensitive(column); 139 } 140 141 145 public boolean isCurrency(int column) throws java.sql.SQLException { 146 return dbRsMeta.isCurrency(column); 147 } 148 149 153 public boolean isDefinitelyWritable(int column) throws java.sql.SQLException { 154 return dbRsMeta.isDefinitelyWritable(column); 155 } 156 157 161 public int isNullable(int column) throws java.sql.SQLException { 162 return dbRsMeta.isNullable(column); 163 } 164 165 169 public boolean isReadOnly(int column) throws java.sql.SQLException { 170 return dbRsMeta.isReadOnly(column); 171 } 172 173 177 public boolean isSearchable(int column) throws java.sql.SQLException { 178 return dbRsMeta.isSearchable(column); 179 } 180 181 185 public boolean isSigned(int column) throws java.sql.SQLException { 186 return dbRsMeta.isSigned(column); 187 } 188 189 193 public boolean isWritable(int column) throws java.sql.SQLException { 194 return dbRsMeta.isWritable(column); 195 } 196 } | Popular Tags |