Examples of string()


Examples of sos.hostware.Record.string()

          continue;
        }
        recordParameters = new LinkedHashMap();
        recordExtraParameters = new LinkedHashMap();
        for (int j = 0; j < lineRecord.field_count(); j++) {
          String val = lineRecord.string(lineRecord.field_name(j)) == null ? "" : lineRecord.string(lineRecord.field_name(j));
          if (_mappings.containsValue(lineRecord.field_name(j))) {
            recordParameters.put(lineRecord.field_name(j), val);
          }
          else {
            recordExtraParameters.put(lineRecord.field_name(j).toUpperCase(), val);
View Full Code Here

Examples of sos.hostware.Record.string()

          continue;
        }
        recordParameters = new LinkedHashMap();
        recordExtraParameters = new LinkedHashMap();
        for (int j = 0; j < lineRecord.field_count(); j++) {
          String val = lineRecord.string(lineRecord.field_name(j)) == null ? "" : lineRecord.string(lineRecord.field_name(j));
          if (_mappings.containsValue(lineRecord.field_name(j))) {
            recordParameters.put(lineRecord.field_name(j), val);
          }
          else {
            recordExtraParameters.put(lineRecord.field_name(j).toUpperCase(), val);
View Full Code Here

Examples of sos.hostware.Record.string()

                    Iterator it = outputFields.iterateKeys();
                    while(it.hasNext()) {
                        fieldName = (String) it.next();
                        fieldCount++;

                        if (record.string(fieldName) != null && record.string(fieldName).length() > 0) {
                            String fieldType = (String) outputFields.get(fieldName.toLowerCase());
                            if (fieldType != null && fieldType.toLowerCase().equals("string")) {
                                if (this.getOutputFieldDelimiterQuote().length() > 0) {
                                    if (outputFieldCount>0) line += this.getOutputFieldSeparator();
                                    line += this.getOutputFieldDelimiter() + record.string(fieldName).replaceAll("\\" + this.getOutputFieldDelimiter(), this.getOutputFieldDelimiterQuote() + this.getOutputFieldDelimiter()) + this.getOutputFieldDelimiter();
View Full Code Here

Examples of sos.hostware.Record.string()

                    Iterator it = outputFields.iterateKeys();
                    while(it.hasNext()) {
                        fieldName = (String) it.next();
                        fieldCount++;

                        if (record.string(fieldName) != null && record.string(fieldName).length() > 0) {
                            String fieldType = (String) outputFields.get(fieldName.toLowerCase());
                            if (fieldType != null && fieldType.toLowerCase().equals("string")) {
                                if (this.getOutputFieldDelimiterQuote().length() > 0) {
                                    if (outputFieldCount>0) line += this.getOutputFieldSeparator();
                                    line += this.getOutputFieldDelimiter() + record.string(fieldName).replaceAll("\\" + this.getOutputFieldDelimiter(), this.getOutputFieldDelimiterQuote() + this.getOutputFieldDelimiter()) + this.getOutputFieldDelimiter();
View Full Code Here

Examples of sos.hostware.Record.string()

                        if (record.string(fieldName) != null && record.string(fieldName).length() > 0) {
                            String fieldType = (String) outputFields.get(fieldName.toLowerCase());
                            if (fieldType != null && fieldType.toLowerCase().equals("string")) {
                                if (this.getOutputFieldDelimiterQuote().length() > 0) {
                                    if (outputFieldCount>0) line += this.getOutputFieldSeparator();
                                    line += this.getOutputFieldDelimiter() + record.string(fieldName).replaceAll("\\" + this.getOutputFieldDelimiter(), this.getOutputFieldDelimiterQuote() + this.getOutputFieldDelimiter()) + this.getOutputFieldDelimiter();
                                    outputFieldCount++;
                                } else {
                                    if (outputFieldCount>0) line += this.getOutputFieldSeparator();
                                    line += this.getOutputFieldDelimiter() + record.string(fieldName) + this.getOutputFieldDelimiter();
                                    outputFieldCount++;
View Full Code Here

Examples of sos.hostware.Record.string()

                                    if (outputFieldCount>0) line += this.getOutputFieldSeparator();
                                    line += this.getOutputFieldDelimiter() + record.string(fieldName).replaceAll("\\" + this.getOutputFieldDelimiter(), this.getOutputFieldDelimiterQuote() + this.getOutputFieldDelimiter()) + this.getOutputFieldDelimiter();
                                    outputFieldCount++;
                                } else {
                                    if (outputFieldCount>0) line += this.getOutputFieldSeparator();
                                    line += this.getOutputFieldDelimiter() + record.string(fieldName) + this.getOutputFieldDelimiter();
                                    outputFieldCount++;
                                }
                            } else if (fieldType != null && fieldType.toLowerCase().indexOf("date") > -1) {
                                try {
                                    if (outputFieldCount>0) line += this.getOutputFieldSeparator();
View Full Code Here

Examples of sos.hostware.Record.string()

                                }
                            } else if (fieldType != null && fieldType.toLowerCase().indexOf("date") > -1) {
                                try {
                                    if (outputFieldCount>0) line += this.getOutputFieldSeparator();
                                    // line += this.getOutputFieldDelimiter() + SOSDate.getDateAsString(SOSDate.getDate(record.string(fieldName), SOSDate.dateTimeFormat), this.getOutputDateFormat()) + this.getOutputFieldDelimiter();
                                    line += this.getOutputFieldDelimiter() + SOSDate.getDateAsString(SOSDate.getDate(record.string(fieldName), this.getInputDateFormat()), this.getOutputDateFormat()) + this.getOutputFieldDelimiter();
                                    outputFieldCount++;
                                } catch (Exception e) {
                                    throw new Exception("could not convert date using output date format [" + this.getOutputDateFormat() + "]: " + record.string(fieldName));
                                }
                            } else if (fieldType == null || fieldType.length() == 0) {
View Full Code Here

Examples of sos.hostware.Record.string()

                                    if (outputFieldCount>0) line += this.getOutputFieldSeparator();
                                    // line += this.getOutputFieldDelimiter() + SOSDate.getDateAsString(SOSDate.getDate(record.string(fieldName), SOSDate.dateTimeFormat), this.getOutputDateFormat()) + this.getOutputFieldDelimiter();
                                    line += this.getOutputFieldDelimiter() + SOSDate.getDateAsString(SOSDate.getDate(record.string(fieldName), this.getInputDateFormat()), this.getOutputDateFormat()) + this.getOutputFieldDelimiter();
                                    outputFieldCount++;
                                } catch (Exception e) {
                                    throw new Exception("could not convert date using output date format [" + this.getOutputDateFormat() + "]: " + record.string(fieldName));
                                }
                            } else if (fieldType == null || fieldType.length() == 0) {
                                // skip record
                            } else {
                                throw new Exception("unsupported field type specified for field [" + fieldName + "]: " + fieldType);
View Full Code Here

Examples of sos.hostware.Record.string()

                    Record record = hwFile.get();
                    spooler_log.info("--->" + record);
                    if (record.field_count() < 10) throw new Exception("number of fields in event file [" + eventFile.getCanonicalPath() + "] is too small: " + record.field_count());
                    eventCount++;
                    spooler_log.info("... will be processed");
                    spooler_log.info(record.string(0) + " event");
                   
                    String command = "<add_order title=\"dequeued event\" job_chain=\"" + this.getEventSupervisorSchedulerJobChainName() + "\">";
                    command += "<params>";

                    command += "<param name=\"action\"          value=\"" + getValue(record.string(0)) + "\"/>";
View Full Code Here

Examples of sos.hostware.Record.string()

                    spooler_log.info(record.string(0) + " event");
                   
                    String command = "<add_order title=\"dequeued event\" job_chain=\"" + this.getEventSupervisorSchedulerJobChainName() + "\">";
                    command += "<params>";

                    command += "<param name=\"action\"          value=\"" + getValue(record.string(0)) + "\"/>";
                    command += "<param name=\"scheduler_host\"  value=\"" + getValue(record.string(1)) + "\"/>";
                    command += "<param name=\"scheduler_port\"  value=\"" + getValue(record.string(2)) + "\"/>";
                    command += "<param name=\"job_chain\"       value=\"" + getValue(record.string(3)) + "\"/>";
                    command += "<param name=\"order_id\"        value=\"" + getValue(record.string(4)) + "\"/>";
                    command += "<param name=\"job_name\"        value=\"" + getValue(record.string(5)) + "\"/>";
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.