/** * @return the details associated with the field. You can find the fields to expect for * the given {@link #getExtendedErrorCode()} in the wsdl, or online documentation. */ @Override public Object getField(String name) { return super.getField(name); }
/** * @return the details associated with the field. You can find the fields to expect for * the given {@link #getExtendedErrorCode()} in the wsdl, or online documentation. */ @Override public Object getField(String name) { return super.getField(name); }
/** * Convenience method to read the value of a column out of an SObject. * @param rs XmlObject * @param columnName Name of the column * @return Value for the column for this row. */ private Object getResultObject(final XmlObject rs, String columnName) { if (rs == null || columnName == null) return null; int index = columnName.indexOf('.'); if (index > 0) { return getResultObject(rs.getChild(columnName.substring(0, index)), columnName.substring(index + 1)); } return rs.getField(columnName); } }
/** * Convenience method to read the value of a column out of an SObject. * @param rs XmlObject * @param columnName Name of the column * @return Value for the column for this row. */ private Object getResultObject(final XmlObject rs, String columnName) { if (rs == null || columnName == null) return null; int index = columnName.indexOf('.'); if (index > 0) { return getResultObject(rs.getChild(columnName.substring(0, index)), columnName.substring(index + 1)); } return rs.getField(columnName); } }
/** * Fetch the field value from the sObject and return it as a string. Most of the fetch fields will * delegate to this one and then parse it into the proper type (like an int or double) * {@inheritDoc} */ @Override public String fetchStringField(int fieldNumber) { ColumnImpl column = table.getColumnAt(acmd, fieldNumber); Object ret = sobject.getField(column.getFieldName()); return ret != null ? (String) ret : null; }
/** * Fetch the field value from the sObject and return it as a string. Most of the fetch fields will * delegate to this one and then parse it into the proper type (like an int or double) * {@inheritDoc} */ @Override public String fetchStringField(int fieldNumber) { ColumnImpl column = table.getColumnAt(acmd, fieldNumber); Object ret = sobject.getField(column.getFieldName()); return ret != null ? (String) ret : null; }
private void extactJoinResults(XmlObject node, List<Object[]> result) throws TranslatorException { Object val = node.getField(TYPE); if(val instanceof String) { extractValuesFromElement(node, result, (String)val); } else if (node.hasChildren()) { Iterator<XmlObject> children = node.getChildren(); while (children.hasNext()) { XmlObject item = children.next(); extactJoinResults(item, result); } } }
@Override public Object getSObjectField(String name) { Object o = super.getField(name); if (!(o instanceof XmlObject)) { return o; } else if (o instanceof XmlObjectWrapper) { return ((XmlObjectWrapper)o).asTyped(); } else if (!(o instanceof SObject)) { SObject sObject = new SObject(); sObject.cloneFrom((XmlObject)o); return sObject; } else { return o; } }
Object o = valueOverride != null ? valueOverride : sobject.getField(column.getSelectFieldName()); if (o == null) return null; Calendar cal;
Object o = valueOverride != null ? valueOverride : sobject.getField(column.getSelectFieldName()); if (o == null) return null; Calendar cal;