/** * Get contents by data type * * @param dataType * data type * @return list of contents * @throws SQLException * upon query error * @since 1.2.1 */ public List<Contents> getContents(ContentsDataType dataType) throws SQLException { return getContents(dataType.getName()); }
/** * Get table names by data type * * @param dataType * data type * @return table names * @throws SQLException * upon query error * @since 3.0.1 */ public List<String> getTables(String dataType) throws SQLException { List<Contents> contents = getContents(dataType); List<String> tableNames = new ArrayList<String>(); for (Contents content : contents) { tableNames.add(content.getTableName()); } return tableNames; }