title: How to remove all database objects for a schema in java?
body: <p>Whats the best way for cleaning (removing all objects, tables, views etc.) for an oracle database schema in java? </p>
  
  <p>I can run something like <a href="https://stackoverflow.com/a/1690419/812093">https://stackoverflow.com/a/1690419/812093</a> with an Oracle database client but is there a java library or tool which could be used? I know that I could read the connection meta data, iterate over all objects and drop them but I was wondering if somebody did that before and if there is anything out of the box which could be used.</p>
  
  <p>I need this functionality in order for setting up integration tests that
  - clean a database schema
  - execute a bunch of scripts against that schema to initialize the database</p>