@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; }
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; }
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; }
@SuppressWarnings("unchecked") public BankServiceView getRemoteObject( java.util.HashMap<String, Object> resultTable, ExceptionAndEventHandler connectionKey) throws ModelException { java.util.Vector<String> errors_string = (java.util.Vector<String>) resultTable.get("errors"); java.util.Vector<ErrorDisplayView> errors = ViewProxi.getProxiVector(errors_string, connectionKey); ViewProxi bank = null; String bank$String = (String) resultTable.get("bank"); if (bank$String != null) { common.ProxiInformation bank$Info = common.RPCConstantsAndServices.createProxiInformation(bank$String); bank = view.objects.ViewProxi.createProxi(bank$Info, connectionKey); bank.setToString(bank$Info.getToString()); } BankServiceView result$$ = new BankService(errors, (BankView) bank, this.getId(), this.getClassId()); ((ViewRoot) result$$) .setToString((String) resultTable.get(common.RPCConstantsAndServices.RPCToStringFieldName)); return result$$; }