Examples/src/main/java/org/openestate/io/examples/FilemakerWritingExample.java
@SuppressWarnings("ConstantConditions")
    protected static ResultSetType.ROW createResultSetRow(long id, Number numberOfRooms, Number price, String description) {
        ResultSetType.ROW.COL col;

        ResultSetType.ROW row = FACTORY.createResultSetTypeROW();
        row.setRECORDID(BigInteger.valueOf(id));
        row.setMODID(BigInteger.valueOf(id));

        col = FACTORY.createResultSetTypeROWCOL();
        if (numberOfRooms != null)
            col.getDATA().add(StringUtils.EMPTY);
        else
            col.getDATA().add(String.valueOf(numberOfRooms));
        row.getCOL().add(col);

        col = FACTORY.createResultSetTypeROWCOL();
        if (price != null)
            col.getDATA().add("0");
        else
            col.getDATA().add(String.valueOf(price));
        row.getCOL().add(col);

        col = FACTORY.createResultSetTypeROWCOL();
        col.getDATA().add(StringUtils.trimToEmpty(description));
        row.getCOL().add(col);

        return row;
    }
@SuppressWarnings("ConstantConditions")
    protected static ResultSetType.ROW createResultSetRow(long id, Number numberOfRooms, Number price, String description) {
        ResultSetType.ROW.COL col;

        ResultSetType.ROW row = FACTORY.createResultSetTypeROW();
        row.setRECORDID(BigInteger.valueOf(id));
        row.setMODID(BigInteger.valueOf(id));

        col = FACTORY.createResultSetTypeROWCOL();
        if (numberOfRooms != null)
            col.getDATA().add(StringUtils.EMPTY);
        else
            col.getDATA().add(String.valueOf(numberOfRooms));
        row.getCOL().add(col);

        col = FACTORY.createResultSetTypeROWCOL();
        if (price != null)
            col.getDATA().add("0");
        else
            col.getDATA().add(String.valueOf(price));
        row.getCOL().add(col);

        col = FACTORY.createResultSetTypeROWCOL();
        col.getDATA().add(StringUtils.trimToEmpty(description));
        row.getCOL().add(col);

        return row;
    }
@ SuppressWarnings ( "ConstantConditions" ) protected static ResultSetType . ROW createResultSetRow ( long id , Number numberOfRooms , Number price , String description ) { ResultSetType . ROW . COL col ; ResultSetType . ROW row = FACTORY . createResultSetTypeROW ( ) ; row . setRECORDID ( BigInteger . valueOf ( id ) ) ; row . setMODID ( BigInteger . valueOf ( id ) ) ; col = FACTORY . createResultSetTypeROWCOL ( ) ; if ( numberOfRooms != null ) col . getDATA ( ) . add ( StringUtils . EMPTY ) ; else col . getDATA ( ) . add ( String . valueOf ( numberOfRooms ) ) ; row . getCOL ( ) . add ( col ) ; col = FACTORY . createResultSetTypeROWCOL ( ) ; if ( price != null ) col . getDATA ( ) . add ( "0" ) ; else col . getDATA ( ) . add ( String . valueOf ( price ) ) ; row . getCOL ( ) . add ( col ) ; col = FACTORY . createResultSetTypeROWCOL ( ) ; col . getDATA ( ) . add ( StringUtils . trimToEmpty ( description ) ) ; row . getCOL ( ) . add ( col ) ; return row ; }
Create a {@link org.openestate.io.filemaker.xml.result.ResultSetType.ROW}
with some example data.

@param id            id of the record
@param numberOfRooms value for number of rooms
@param price         value for price
@param description   value for description
@return created example object
Create a { @link org . openestate . io . filemaker . xml . result . ResultSetType . ROW } with some example data .