db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Knut Anders Hatlen <Knut.Hat...@Sun.COM>
Subject Re: DatabaseMetaData
Date Thu, 15 Apr 2010 10:22:16 GMT
On 04/15/10 11:11, Ян Программист wrote:
> By the way - is it normal to call getColumns(), getRowCount(), and so
> forth without re-initializing DatabaseMetaData object? I mean in focus
> of retrieving result sets. Any exceptions to expect in JDBC? John

Hi John,

It should be fine to reuse the DatabaseMetaData object. Actually, in
Derby, you'll get the exact same object if you call getMetaData() more
than once on the same connection, and there's no initialization or
re-initialization happening in getMetaData().

Knut Anders

View raw message