KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > daffodilwoods > daffodildb > odbc > OdbcResultSetMetaData


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 JavaDoc path) {
11   }
12
13   public int getColumnCount(Object JavaDoc obj) throws DException{
14     _ColumnCharacteristics cc = (_ColumnCharacteristics)obj;
15     return cc.getColumnCount();
16   }
17   public int getColumnType(Object JavaDoc obj, int index)throws DException{
18     _ColumnCharacteristics cc = (_ColumnCharacteristics)obj;
19     return cc.getColumnType(index);
20   }
21   public String JavaDoc getColumnName(Object JavaDoc obj,int index)throws DException{
22     _ColumnCharacteristics cc = (_ColumnCharacteristics)obj;
23     return cc.getColumnName(index);
24   }
25   public int getSize(Object JavaDoc obj, int index)throws DException{
26     _ColumnCharacteristics cc = (_ColumnCharacteristics)obj;
27     return cc.getSize(index);
28   }
29   public String JavaDoc getTableName(Object JavaDoc obj,int index)throws DException{
30     _ColumnCharacteristics cc = (_ColumnCharacteristics)obj;
31     return cc.getTableName(index);
32  }
33   public int getPrecision(Object JavaDoc obj,int index) throws DException{
34     _ColumnCharacteristics cc = (_ColumnCharacteristics)obj;
35     return cc.getPrecision(index);
36   }
37   public int getScale(Object JavaDoc obj,int index) throws DException{
38     _ColumnCharacteristics cc = (_ColumnCharacteristics)obj;
39     return cc.getScale(index);
40   }
41   public String JavaDoc getSchemaName(Object JavaDoc obj,int index) throws DException{
42     _ColumnCharacteristics cc = (_ColumnCharacteristics)obj;
43     return cc.getSchemaName(index);
44   }
45   public String JavaDoc getCatalogName(Object JavaDoc obj,int index) throws DException{
46     _ColumnCharacteristics cc = (_ColumnCharacteristics)obj;
47     return cc.getCatalogName(index);
48   }
49   public int isNullable(Object JavaDoc obj,int index) throws DException{
50     _ColumnCharacteristics cc = (_ColumnCharacteristics)obj;
51     return cc.isNullable(index);
52   }
53   public boolean isAutoIncrement(Object JavaDoc obj,int index) throws DException{
54     _ColumnCharacteristics cc = (_ColumnCharacteristics)obj;
55     return cc.isAutoIncrement(index);
56   }
57   public String JavaDoc getColumnLabel(Object JavaDoc obj,int index) throws DException{
58     _ColumnCharacteristics cc = (_ColumnCharacteristics)obj;
59     return cc.getColumnLabel(index);
60   }
61 }
62
Popular Tags