1 package com.daffodilwoods.daffodildb.odbc; 2 3 import com.daffodilwoods.daffodildb.server.datadictionarysystem._ColumnCharacteristics; 4 import com.daffodilwoods.database.resource.DException; 5 6 public class OdbcResultSetMetaData { 7 8 public OdbcResultSetMetaData(){} 9 10 public OdbcResultSetMetaData(String path) { 11 } 12 13 public int getColumnCount(Object obj) throws DException{ 14 _ColumnCharacteristics cc = (_ColumnCharacteristics)obj; 15 return cc.getColumnCount(); 16 } 17 public int getColumnType(Object obj, int index)throws DException{ 18 _ColumnCharacteristics cc = (_ColumnCharacteristics)obj; 19 return cc.getColumnType(index); 20 } 21 public String getColumnName(Object obj,int index)throws DException{ 22 _ColumnCharacteristics cc = (_ColumnCharacteristics)obj; 23 return cc.getColumnName(index); 24 } 25 public int getSize(Object obj, int index)throws DException{ 26 _ColumnCharacteristics cc = (_ColumnCharacteristics)obj; 27 return cc.getSize(index); 28 } 29 public String getTableName(Object obj,int index)throws DException{ 30 _ColumnCharacteristics cc = (_ColumnCharacteristics)obj; 31 return cc.getTableName(index); 32 } 33 public int getPrecision(Object obj,int index) throws DException{ 34 _ColumnCharacteristics cc = (_ColumnCharacteristics)obj; 35 return cc.getPrecision(index); 36 } 37 public int getScale(Object obj,int index) throws DException{ 38 _ColumnCharacteristics cc = (_ColumnCharacteristics)obj; 39 return cc.getScale(index); 40 } 41 public String getSchemaName(Object obj,int index) throws DException{ 42 _ColumnCharacteristics cc = (_ColumnCharacteristics)obj; 43 return cc.getSchemaName(index); 44 } 45 public String getCatalogName(Object obj,int index) throws DException{ 46 _ColumnCharacteristics cc = (_ColumnCharacteristics)obj; 47 return cc.getCatalogName(index); 48 } 49 public int isNullable(Object obj,int index) throws DException{ 50 _ColumnCharacteristics cc = (_ColumnCharacteristics)obj; 51 return cc.isNullable(index); 52 } 53 public boolean isAutoIncrement(Object obj,int index) throws DException{ 54 _ColumnCharacteristics cc = (_ColumnCharacteristics)obj; 55 return cc.isAutoIncrement(index); 56 } 57 public String getColumnLabel(Object obj,int index) throws DException{ 58 _ColumnCharacteristics cc = (_ColumnCharacteristics)obj; 59 return cc.getColumnLabel(index); 60 } 61 } 62 | Popular Tags |