jdbc-protolib/src/main/java/com/streamsets/pipeline/lib/jdbc/JdbcBaseRecordWriter.java
protected int getOperationCode(Record record, List<OnRecordErrorException> errorRecords) {
    return recordReader.getOperationFromRecord(
        record,
        defaultOpCode,
        unsupportedAction,
        errorRecords);
  }
protected int getOperationCode(Record record, List<OnRecordErrorException> errorRecords) {
    return recordReader.getOperationFromRecord(
        record,
        defaultOpCode,
        unsupportedAction,
        errorRecords);
  }
Get the numeric operation code from record header. The default code is
used if the operation code is not found in the header.

@param record the record to find the operation code
@param errorRecords the list to take error records
@return the numeric operation code or -1 for unsupported operation