Map database type to concrete Java class

前端 未结 2 349
不知归路
不知归路 2020-12-16 07:22

Background

Map a column data type to its corresponding Java class.

Problem

A query returns meta information from a database:

SELE         


        
2条回答
  •  执笔经年
    2020-12-16 08:02

    JDBC provides the means to introspect database meta information.

    From a JDBC Connection, call getMetaData and getColumns drill down from there to get information for schemas, tables and, columns.

提交回复
热议问题