@Override
	public List<Object> getAll(String type){
		XStream xStream = new XStream(new DomDriver());
		List<Object> model=new ArrayList<Object>();
		Object temp=null;
		Statement stmt=null;
		try {
			stmt = db.getConnection().createStatement();
			ResultSet rs = stmt.executeQuery("SELECT command FROM NonMoveCommand where type = '" + type+"'");
		    db.getConnection().commit();
			while (rs.next()) {
				/*byte[] st = (byte[]) rs.getObject(1);
				ByteArrayInputStream baip = new ByteArrayInputStream(st);
				ObjectInputStream ois = new ObjectInputStream(baip);
				temp = (Object) ois.readObject();
				model.add(temp);*/
				String xml = (String)rs.getString(1);
				model.add((Object) xStream.fromXML(xml));
			}
			rs.close();
			stmt.close();
		} catch (SQLException e) {
			e.printStackTrace();
		}
	    return model;
	}