Examples of addResultEntry()


Examples of org.apache.slide.projector.Result.addResultEntry()

                                }
                            }
                            resultSetResources.add(new MapValue(rowMap));
                        }
                        Value[] resultEntries = new Value[resultSetResources.size()];
                        result.addResultEntry(RESULT, new ArrayValue((Value[] )resultSetResources.toArray(resultEntries)));
                    } else {
                        result.addResultEntry(ROW_COUNT, new NumberValue(new BigDecimal(preparedStatement.getUpdateCount())));
                    }
                    conn.close();
                }
View Full Code Here

Examples of org.apache.slide.projector.Result.addResultEntry()

                            resultSetResources.add(new MapValue(rowMap));
                        }
                        Value[] resultEntries = new Value[resultSetResources.size()];
                        result.addResultEntry(RESULT, new ArrayValue((Value[] )resultSetResources.toArray(resultEntries)));
                    } else {
                        result.addResultEntry(ROW_COUNT, new NumberValue(new BigDecimal(preparedStatement.getUpdateCount())));
                    }
                    conn.close();
                }
            } catch (SQLException e) {
                throw new ProcessException(new ErrorMessage("sqlException"), e);
View Full Code Here

Examples of org.apache.slide.projector.Result.addResultEntry()

            appendNestedDetails(details, throwable, locale);
        }
        if ( title == null ) title = "";
        if ( text == null ) text = "";
        if ( summary == null ) summary = "";
        result.addResultEntry(TITLE, new StringValue(title));
        result.addResultEntry(TEXT, new StringValue(text));
        result.addResultEntry(SUMMARY, new StringValue(summary));
        result.addResultEntry(DETAILS, new StringValue(details.toString()));
        result.addResultEntry(CLASS, new StringValue(throwable.getClass().getName()));
        StackTraceElement []trace = throwable.getStackTrace();
View Full Code Here

Examples of org.apache.slide.projector.Result.addResultEntry()

        }
        if ( title == null ) title = "";
        if ( text == null ) text = "";
        if ( summary == null ) summary = "";
        result.addResultEntry(TITLE, new StringValue(title));
        result.addResultEntry(TEXT, new StringValue(text));
        result.addResultEntry(SUMMARY, new StringValue(summary));
        result.addResultEntry(DETAILS, new StringValue(details.toString()));
        result.addResultEntry(CLASS, new StringValue(throwable.getClass().getName()));
        StackTraceElement []trace = throwable.getStackTrace();
        StringBuffer buffer = new StringBuffer(256);
View Full Code Here

Examples of org.apache.slide.projector.Result.addResultEntry()

        if ( title == null ) title = "";
        if ( text == null ) text = "";
        if ( summary == null ) summary = "";
        result.addResultEntry(TITLE, new StringValue(title));
        result.addResultEntry(TEXT, new StringValue(text));
        result.addResultEntry(SUMMARY, new StringValue(summary));
        result.addResultEntry(DETAILS, new StringValue(details.toString()));
        result.addResultEntry(CLASS, new StringValue(throwable.getClass().getName()));
        StackTraceElement []trace = throwable.getStackTrace();
        StringBuffer buffer = new StringBuffer(256);
        for ( int i = 0; i < trace.length; i++ ) {
View Full Code Here

Examples of org.apache.slide.projector.Result.addResultEntry()

        if ( text == null ) text = "";
        if ( summary == null ) summary = "";
        result.addResultEntry(TITLE, new StringValue(title));
        result.addResultEntry(TEXT, new StringValue(text));
        result.addResultEntry(SUMMARY, new StringValue(summary));
        result.addResultEntry(DETAILS, new StringValue(details.toString()));
        result.addResultEntry(CLASS, new StringValue(throwable.getClass().getName()));
        StackTraceElement []trace = throwable.getStackTrace();
        StringBuffer buffer = new StringBuffer(256);
        for ( int i = 0; i < trace.length; i++ ) {
            buffer.append(trace[i].toString());
View Full Code Here

Examples of org.apache.slide.projector.Result.addResultEntry()

        if ( summary == null ) summary = "";
        result.addResultEntry(TITLE, new StringValue(title));
        result.addResultEntry(TEXT, new StringValue(text));
        result.addResultEntry(SUMMARY, new StringValue(summary));
        result.addResultEntry(DETAILS, new StringValue(details.toString()));
        result.addResultEntry(CLASS, new StringValue(throwable.getClass().getName()));
        StackTraceElement []trace = throwable.getStackTrace();
        StringBuffer buffer = new StringBuffer(256);
        for ( int i = 0; i < trace.length; i++ ) {
            buffer.append(trace[i].toString());
            buffer.append(" ");
View Full Code Here

Examples of org.apache.slide.projector.Result.addResultEntry()

        StringBuffer buffer = new StringBuffer(256);
        for ( int i = 0; i < trace.length; i++ ) {
            buffer.append(trace[i].toString());
            buffer.append(" ");
        }
        result.addResultEntry(STACK_TRACE, new StringValue(buffer.toString()));
        return result;
    }

    private void appendNestedDetails(StringBuffer details, Throwable throwable, Locale locale) {
        if ( details.length() > 0 ) details.append(' ');
View Full Code Here

Examples of org.apache.slide.projector.Result.addResultEntry()

    ResultEntryDescriptor[] resultEntryDescriptors = getResultDescriptor().getResultEntryDescriptors();
    for (int i = 0; i < resultEntryDescriptors.length; i++) {
      ResultEntryDescriptor descriptor = resultEntryDescriptors[i];
      Value resultValue = (Value)result.getResultEntries().get(descriptor.getName());
      if (resultValue != null) {
        processResult.addResultEntry(descriptor.getName(), resultValue);
      }
    }
    return processResult;
  }
 
View Full Code Here

Examples of org.apache.slide.projector.Result.addResultEntry()

        Result result= new Result(StateDescriptor.OK, ARRAY, properties);
        Map properyMap = new HashMap();
        for ( int i = 0; i < properties.getArray().length; i++ ) {
            properyMap.put(((MapValue)properties.getArray()[i]).getMap().get("name").toString(), ((MapValue)properties.getArray()[i]).getMap().get("value"));
        }
        result.addResultEntry(MAP, new MapValue(properyMap));
        return result;
    }

    public ParameterDescriptor[] getParameterDescriptors() {
        return parameterDescriptors;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.