Friday, December 24, 2010

not get persisted to the data store

Can anyone see why when i set driverstatus.activeStatus = false; this does not get persisted to the data store?

Query stopalertquery = pm.newQuery(Driver.class); 
stopalertquery.setFilter("mobileCarrierEmail == mobileCarrierEmailParam");
stopalertquery.declareParameters("String mobileCarrierEmailParam"); // check open status

List<Driver> driverInactiveresults = (List<Driver>) stopalertquery.execute(sendToEmail);              if (driverInactiveresults.iterator().hasNext()) {
log.severe("number of drivers foud : "+ driverInactiveresults.size());
for (Driver driverstatus : driverInactiveresults) {
driverstatus.activeStatus = false;
pm.makePersistent(driverstatus);
}
}
stopalertquery.closeAll();
pm.close();

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate