@Override
	public Vector<Integer> getAlertList() throws DatabaseException {
        try {
			try (PreparedStatement psReadScan = getConnection().prepareStatement("SELECT " + ALERTID + " FROM " + TABLE_NAME)) {
			
			    Vector<Integer> v = new Vector<>();
			    try (ResultSet rs = psReadScan.executeQuery()) {
			        while (rs.next()) {
			            v.add(rs.getInt(ALERTID));
			        }
			    }
			    return v;
			}
		} catch (SQLException e) {
			throw new DatabaseException(e);
		}
    }
@ Override public Vector < Integer > getAlertList ( ) throws DatabaseException { try { try ( PreparedStatement psReadScan = getConnection ( ) . prepareStatement ( "SELECT " + ALERTID + " FROM " + TABLE_NAME ) ) { Vector < Integer > v = new Vector < > ( ) ; try ( ResultSet rs = psReadScan . executeQuery ( ) ) { while ( rs . next ( ) ) { v . add ( rs . getInt ( ALERTID ) ) ; } } return v ; } } catch ( SQLException e ) { throw new DatabaseException ( e ) ; } }
/* (non-Javadoc)
@see org.parosproxy.paros.db.paros.TableAlert#getAlertList()