Code example for DatabaseMetaData

Methods: getTables

0
			DatabaseMetaData dbmd = conn.getMetaData();
//			rsTables = dbmd.getTables(catalog, null, null, null); 
			/** 
			 * ORACLE trades it differently...  
			 */ 
			rsTables = dbmd.getTables(catalog, "AUTONYM", null, new String[]{"TABLE"});
		} catch (SQLException e) {
			logger.error(e.getMessage());
			e.printStackTrace();
		} 
	} 
	 
	private Boolean nextTable() throws IOException {
		try { 
			return rsTables.next();
		} catch (SQLException e) {
			logger.error(e.getMessage());
			e.printStackTrace();
		} 
		return false; 
	}