/**Returns only updatable object fields and ID field if <b>excludeNonUpdatableFields</b> is true, * otherwise all object field * @param objectName the name of Saleforce object * @param excludeNonUpdatableFields the flag that indicates if non-updatable fields should be excluded or not * @return the list of object fields depending on filter or not non-updatable fields. * @throws KettleException if any exception occurs */ public Field[] getObjectFields( String objectName, boolean excludeNonUpdatableFields ) throws KettleException { Field[] fieldList = getObjectFields( objectName ); if ( excludeNonUpdatableFields ) { ArrayList<Field> finalFieldList = new ArrayList<Field>(); for ( Field f : fieldList ) { // Leave out fields that can't be updated but if ( isIdField( f ) || !f.isCalculated() && f.isUpdateable() ) { finalFieldList.add( f ); } } fieldList = finalFieldList.toArray( new Field[finalFieldList.size()] ); } return fieldList; }
_hashCode += (isAutoNumber() ? Boolean.TRUE : Boolean.FALSE).hashCode(); _hashCode += getByteLength(); _hashCode += (isCalculated() ? Boolean.TRUE : Boolean.FALSE).hashCode(); if (getCalculatedFormula() != null) { _hashCode += getCalculatedFormula().hashCode();
this.autoNumber == other.isAutoNumber() && this.byteLength == other.getByteLength() && this.calculated == other.isCalculated() && ((this.calculatedFormula == null && other.getCalculatedFormula() == null) || (this.calculatedFormula != null &&
hasUpdateableColumn = true; column.setProperty(COLUMN_CALCULATED, String.valueOf(field.isCalculated())); column.setProperty(COLUMN_CUSTOM, String.valueOf(field.isCustom())); column.setProperty(COLUMN_DEFAULTED, String.valueOf(field.isDefaultedOnCreate()));