Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DTP » JDBCDatabase.getSchemas returns an empty list!
JDBCDatabase.getSchemas returns an empty list! [message #597894] Mon, 23 August 2010 09:44
Eclipse UserFriend
Originally posted by:

Hi all,

my problem is that I need to create an instance of any Database object
(f.i. a JDBCDatabase) for further usage.
F.i. I need to fetch all schemas from the database (and exactly this is
the problem).

Currently I'm creating the database as follows:

DB2SimpleDataSource source = new DB2SimpleDataSource();

try {
Connection connection = source.getConnection();
database = new JDBCDatabase(connection);
} catch (SQLException e) {

I can work with the connection without problems but when I try to use
the database (f.i. to get the schemas) it seems that the object wasn't
properly initialized. Since this is an EMF object, I thought there must
be a factory class anywhere to create a database object but I didn't
find one.

Previous Topic:Obtaining Foreign Keys via ODA connections and IResultSet?
Next Topic:JDBCDatabase.getSchemas returns an empty list!
Goto Forum:

Current Time: Sun Feb 28 10:21:04 GMT 2021

Powered by FUDForum. Page generated in 0.01443 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top