public void actionPerformed(ActionEvent e) { final String S_ProcName = "actionPerformed"; ICFDbTestSchemaObj schemaObj = swingSchema.getSchema(); if (schemaObj == null) { throw CFLib.getDefaultExceptionFactory() .newNullArgumentException(getClass(), S_ProcName, 0, "schemaObj"); } ICFDbTestTableObj retObj = schemaObj.getTableTableObj().testClassObjFuncNoArgs(); String msg; if (retObj != null) { msg = "testClassObjFuncNoArgs() returned a " + retObj.getClass().getName() + " named " + retObj.getObjName(); } else { msg = "testClassObjFuncNoArgs() returned null"; } JOptionPane.showMessageDialog(null, msg); }
public void actionPerformed(ActionEvent e) { final String S_ProcName = "actionPerformed"; ICFDbTestSchemaObj schemaObj = swingSchema.getSchema(); if (schemaObj == null) { throw CFLib.getDefaultExceptionFactory() .newNullArgumentException(getClass(), S_ProcName, 0, "schemaObj"); } List<ICFDbTestValueObj> retList = schemaObj.getTableTableObj().testClassListFuncNoArgs(); StringBuffer buff = new StringBuffer(); if (retList != null) { buff.append("testClassListFuncNoArgs() returned list:\n"); Iterator<ICFDbTestValueObj> iter = retList.iterator(); ICFDbTestValueObj cur; while (iter.hasNext()) { cur = iter.next(); buff.append(cur.getClass().getName() + " named " + cur.getObjName() + "\n"); } } else { buff.append("testClassListFuncNoArgs() returned null\n"); } JOptionPane.showMessageDialog(null, buff.toString()); }