@Override
	public synchronized RecordTag insert(long historyId, String tag) throws DatabaseException {
        try {
			psInsertTag.setLong(1, historyId);
			psInsertTag.setString(2, tag);
			psInsertTag.executeUpdate();
			
			try (ResultSet rs = psGetIdLastInsert.executeQuery()) {
				rs.next();
				long id = rs.getLong(1);
				return read(id);
			}
		} catch (SQLException e) {
			throw new DatabaseException(e);
		}
    }
@ Override public synchronized RecordTag insert ( long historyId , String tag ) throws DatabaseException { try { psInsertTag . setLong ( 1 , historyId ) ; psInsertTag . setString ( 2 , tag ) ; psInsertTag . executeUpdate ( ) ; try ( ResultSet rs = psGetIdLastInsert . executeQuery ( ) ) { rs . next ( ) ; long id = rs . getLong ( 1 ) ; return read ( id ) ; } } catch ( SQLException e ) { throw new DatabaseException ( e ) ; } }
/* (non-Javadoc)
@see org.parosproxy.paros.db.paros.TableTag#insert(long, java.lang.String)