[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Ganymede Help] Date Comparision

Date Tue, 30 Apr 2002 14:58:15 -0400
From "Gaurav Bhargava" <gaurav.bhargava@villanova.edu>

Hey Jon,
Thanks for the help, i am more attracted towards the solution to do
queries on the database during builderPhase1()
of GanymedeBuilderTask to find objects that have changed more
recently than the GanymedeBuilderTask's oldLastRunTime. You said that 
every object has a ModificationDateField...i cant find any 
documentation about this ......Can yu tell me where can i find it?? I 
am using it like this

if (baseChanged((short) 270)){
  	   DBObject object_name;
  	    Enumeration object_group=enumerateObjects((short) 270);
  	    while (object_group.hasMoreElements())
  	    {
  		object_name=(DBObject) object_group.nextElement();
  		if   
(object_name.ModificationDateField.afteroldLastRunTime))
  		System.out.println(object_name.toString());
  	    }
	    System.out.println("The base has changed");

Here it gives me error regarding ModificationDateField...
Please let me know if my approach makes some sense -;).
Thanks
Gaurav


----------------------------------------------------------------------------
To make changes to your subscription to the Ganymede Help list, send
mail to majordomo@arlut.utexas.edu.

To unsubcribe, include the line

unsubscribe ganymede-help

in the body of your mail message

Visit the Ganymede web page at http://www.arlut.utexas.edu/gash2

----------------------------------------------------------------------------