Hi,
I'm using an Iterator to retrieve lot of database objects.
Thoses objects will be display on web application. I'm using GWT and
all object that I use in client part, must be defined in this part.
The problem is when DAO method retrieve objects as Iterator, I must
transform each entity object into a client object.
It can be done by using a list as:
List<Entity> lObject = query.execute();
List<GWTObject> lGwtObjects = new ArrayList<GWTObject>();
for(Entity lEntity: lObject) {
lGwtObjects.add(transform(lEntity));
}
return lGwtObjects
For more scalability, I want to use an Iterator.
How can I transform my Entity object in GWT object when I iterate over
the given iterator in my GWT panel?
Michael
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.