Hello,
There are numerous methods in the DatabaseMetaData inteface for querying for existing tables, schemas, stored procedures, etc.
If the
jdbc driver of your database doesn't support it, you can use a direct SQL query on the database metadata (e.g. "select table_name from user_tables" in Oracle) but then you lose portability.
Hope this helps.