@Override
	public List<RecordTag> getTagsForHistoryID (long historyId) throws DatabaseException {
    	SqlPreparedStatementWrapper psGetTagsForHistoryId = null;
        try {
        	psGetTagsForHistoryId = DbSQL.getSingleton().getPreparedStatement("tag.ps.gettagsforhid");
			List<RecordTag> result = new ArrayList<>();
			psGetTagsForHistoryId.getPs().setLong(1, historyId);
			try (ResultSet rs = psGetTagsForHistoryId.getPs().executeQuery()) {
				while (rs.next()) {
					result.add(new RecordTag(rs.getLong(TAGID), rs.getLong(TAGID), rs.getString(TAG)));
				}
			}
			
			return result;
		} catch (SQLException e) {
			throw new DatabaseException(e);
		} finally {
			DbSQL.getSingleton().releasePreparedStatement(psGetTagsForHistoryId);
		}
    }
@ Override public List < RecordTag > getTagsForHistoryID ( long historyId ) throws DatabaseException { SqlPreparedStatementWrapper psGetTagsForHistoryId = null ; try { psGetTagsForHistoryId = DbSQL . getSingleton ( ) . getPreparedStatement ( "tag.ps.gettagsforhid" ) ; List < RecordTag > result = new ArrayList < > ( ) ; psGetTagsForHistoryId . getPs ( ) . setLong ( 1 , historyId ) ; try ( ResultSet rs = psGetTagsForHistoryId . getPs ( ) . executeQuery ( ) ) { while ( rs . next ( ) ) { result . add ( new RecordTag ( rs . getLong ( TAGID ) , rs . getLong ( TAGID ) , rs . getString ( TAG ) ) ) ; } } return result ; } catch ( SQLException e ) { throw new DatabaseException ( e ) ; } finally { DbSQL . getSingleton ( ) . releasePreparedStatement ( psGetTagsForHistoryId ) ; } }
/* (non-Javadoc)
@see org.parosproxy.paros.db.paros.TableTag#getTagsForHistoryID(long)