/**
  * Persist this PhysicalObject using the nuggets utility.
  *
  * @param c
  */
 public void _persist(nuggets.ICruncher c) {
   // declare references
   int idHasLocation = c.declare(haslocation);
   // persist the nugget
   c.startConcept(this);
   if (idHasLocation > 0) c.put("haslocation", idHasLocation);
   if (instancename != null) c.put("instancename", instancename);
 }
Exemple #2
0
 /**
  * @param o
  * @param mill
  * @see nuggets.delegate.ADelegate#persist(java.lang.Object, nuggets.ICruncher)
  */
 public void persist(Object o, ICruncher mill, ClassLoader classloader) {
   mill.startConcept(o);
   mill.put("type", "[J");
   long[] a = (long[]) o;
   int len = a.length;
   mill.put("length", Integer.toString(len));
   for (int i = 0; i < len; i++) {
     mill.addToken(Long.toString(a[i]));
   }
 }
 /**
  * Persist this Bathroom using the nuggets utility.
  *
  * @param c
  */
 public void _persist(nuggets.ICruncher c) {
   // declare references
   // persist the nugget
   c.startConcept(this);
   if (instancename != null) c.put("instancename", instancename);
 }