/** * Get contents by data type * * @param dataType * data type * @return list of contents * @throws SQLException * upon query error * @since 3.0.1 */ public List<Contents> getContents(String dataType) throws SQLException { List<Contents> contents = queryForEq(Contents.COLUMN_DATA_TYPE, dataType); return contents; }
List<Contents> queryContentsList = dao.queryForEq( Contents.COLUMN_IDENTIFIER, contents.getIdentifier()); TestCase.assertNotNull(queryContentsList);