Web services 使用Web服务从数据库获取所有行

Web services 使用Web服务从数据库获取所有行,web-services,openerp,Web Services,Openerp,我想在Openerp中使用WebService从数据库表中获取所有详细信息。我看到了这一点,发现默认情况下,所有数据都可以使用read读取 我已经使用了一组ID并显示了它们的详细信息。有什么方法可以让我了解整张桌子的细节吗 这是我的密码 Object ids1[] = { 1,2,3,4 }; Object[] params2 = { "city", "name","email", "create_date", "write_date" }; Vector<Object> arg =

我想在Openerp中使用WebService从数据库表中获取所有详细信息。我看到了这一点,发现默认情况下,所有数据都可以使用
read
读取

我已经使用了一组ID并显示了它们的详细信息。有什么方法可以让我了解整张桌子的细节吗

这是我的密码

Object ids1[] = { 1,2,3,4 };
Object[] params2 = { "city", "name","email", "create_date",
"write_date" };
Vector<Object> arg = new Vector<Object>();

arg.add("stock");
arg.add(3);
arg.add("demo");
arg.add("res.partner.address");
arg.add("read");
arg.add(ids1);
arg.add(params2);

    Object[] ids= (Object[]) client.execute("execute", arg);

  for(int i = 0 ; i < ids.length ; i ++)
  {
     Iterator it = ((HashMap)ids[i]).entrySet().iterator();
    while (it.hasNext()) {
        Map.Entry entry = (Map.Entry) it.next();
        System.out.println(entry.getKey() + " = " + entry.getValue());
        it.remove(); // avoids a ConcurrentModificationException
    }System.out.println("--------------------------------------------");

  }
objectids1[]={1,2,3,4};
Object[]params2={“城市”、“姓名”、“电子邮件”、“创建日期”,
“写入日期”};
向量arg=新向量();
参数添加(“股票”);
参数添加(3);
参数添加(“演示”);
参数添加(“res.partner.address”);
参数添加(“读取”);
参数添加(ids1);
参数add(参数2);
Object[]id=(Object[])client.execute(“execute”,arg);
for(int i=0;i
Object[]params2={}我认为将其保留为空应该会返回整个表