是否可以使用requestfactory直接传输com.vividsolutions.jts.geom.Geometry? [英] Is com.vividsolutions.jts.geom.Geometry directly transportable using requestfactory?

查看:119
本文介绍了是否可以使用requestfactory直接传输com.vividsolutions.jts.geom.Geometry?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用requestfactory直接传输com.vividsolutions.jts.geom.Geometry,还是必须对我的entityproxy使用值代理?

Is com.vividsolutions.jts.geom.Geometry directly transportable using requestfactory or do i have to use a value proxy with my entityproxy?

推荐答案

根据 http://www.gwtproject.org/doc/latest /DevGuideRequestFactory.html#transportable ,您必须使用 ValueProxy

但它似乎不可能绕过几何图形,因为设置者比getter少(即几何不能通过调用setter从一个空对象重新构造)。所以你可能不得不运输几何图形的文本表示或使用包装器/构建器。

But it doesn't seem possible to roundtrip the geometry as there are less setters than getters (i.e. the geometry cannot be re-constructed from an empty object just by calling setters); so you'd probably have to transport the textual representation of the geometry instead or use wrappers/builders.

这篇关于是否可以使用requestfactory直接传输com.vividsolutions.jts.geom.Geometry?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆