public Multimap<String,String> loadRelations(DBTransaction transaction,String charname) throws SQLException {
  HashMultimap<String,String> map=HashMultimap.create();
  String query="SELECT relationtype, buddy FROM buddy WHERE charname='[charname]'";
  Map<String,Object> params=new HashMap<String,Object>();
  params.put("charname",charname);
  ResultSet resultSet=transaction.query(query,params);
  while (resultSet.next()) {
    map.put(resultSet.getString(1),resultSet.getString(2));
  }
  return map;
}

public Multimap < String , String > loadRelations ( DBTransaction transaction , String charname ) throws SQLException { HashMultimap < String , String > map = HashMultimap . create ( ) ; String query = "SELECT relationtype, buddy FROM buddy WHERE charname='[charname]'" ; Map < String , Object > params = new HashMap < String , Object > ( ) ; params . put ( "charname" , charname ) ; ResultSet resultSet = transaction . query ( query , params ) ; while ( resultSet . next ( ) ) { map . put ( resultSet . getString ( 1 ) , resultSet . getString ( 2 ) ) ; } return map ; }
loads the relationship lists for the specified charname
