@Override
 public java.util.Hashtable<String, Object> toHashtable(
     final java.util.Hashtable<String, Object> allResults,
     final int depth,
     final int essentialLevel,
     final boolean forGUI,
     final boolean leaf,
     final TDObserver tdObserver)
     throws PersistenceException {
   java.util.Hashtable<String, Object> result = null;
   if (depth > 0 && essentialLevel <= common.RPCConstantsAndServices.EssentialDepth) {
     result = super.toHashtable(allResults, depth, essentialLevel, forGUI, false, tdObserver);
     result.put(
         "quantities",
         this.getQuantities()
             .getVector(
                 allResults,
                 depth,
                 essentialLevel,
                 forGUI,
                 tdObserver,
                 false,
                 essentialLevel == 0));
     final String uniqueKey =
         common.RPCConstantsAndServices.createHashtableKey(this.getClassId(), this.getId());
     if (leaf && !allResults.contains(uniqueKey)) allResults.put(uniqueKey, result);
   }
   return result;
 }
Example #2
0
 public java.util.HashMap<String, Object> toHashtable(
     java.util.HashMap<String, Object> allResults,
     int depth,
     int essentialLevel,
     boolean forGUI,
     boolean leaf,
     TDObserver tdObserver)
     throws PersistenceException {
   java.util.HashMap<String, Object> result = null;
   if (depth > 0 && essentialLevel <= common.RPCConstantsAndServices.EssentialDepth) {
     result = super.toHashtable(allResults, depth, essentialLevel, forGUI, false, tdObserver);
     String uniqueKey =
         common.RPCConstantsAndServices.createHashtableKey(this.getClassId(), this.getId());
     if (leaf && !allResults.containsKey(uniqueKey)) allResults.put(uniqueKey, result);
   }
   return result;
 }
Example #3
0
 public java.util.HashMap<String, Object> toHashtable(
     java.util.HashMap<String, Object> allResults,
     int depth,
     int essentialLevel,
     boolean forGUI,
     boolean leaf,
     TDObserver tdObserver)
     throws PersistenceException {
   java.util.HashMap<String, Object> result = null;
   if (depth > 0 && essentialLevel <= common.RPCConstantsAndServices.EssentialDepth) {
     result = super.toHashtable(allResults, depth, essentialLevel, forGUI, false, tdObserver);
     AbstractPersistentRoot permittedAccount = (AbstractPersistentRoot) this.getPermittedAccount();
     if (permittedAccount != null) {
       result.put(
           "permittedAccount",
           permittedAccount.createProxiInformation(false, essentialLevel == 0));
       if (depth > 1) {
         permittedAccount.toHashtable(
             allResults, depth - 1, essentialLevel, forGUI, true, tdObserver);
       } else {
         if (forGUI && permittedAccount.hasEssentialFields())
           permittedAccount.toHashtable(
               allResults, depth, essentialLevel + 1, false, true, tdObserver);
       }
     }
     AbstractPersistentRoot limits = (AbstractPersistentRoot) this.getLimits();
     if (limits != null) {
       result.put("limits", limits.createProxiInformation(false, essentialLevel == 0));
       if (depth > 1) {
         limits.toHashtable(allResults, depth - 1, essentialLevel, forGUI, true, tdObserver);
       } else {
         if (forGUI && limits.hasEssentialFields())
           limits.toHashtable(allResults, depth, essentialLevel + 1, false, true, tdObserver);
       }
     }
     String uniqueKey =
         common.RPCConstantsAndServices.createHashtableKey(this.getClassId(), this.getId());
     if (leaf && !allResults.containsKey(uniqueKey)) allResults.put(uniqueKey, result);
   }
   return result;
 }