All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.backendless.transaction.OperationUpsertBulkFactory Maven / Gradle / Ivy

The newest version!
package com.backendless.transaction;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;

public class OperationUpsertBulkFactory extends OperationFactory
{
  @Override
  protected Class getClazz()
  {
    return OperationUpsertBulkReturned.class;
  }

  @Override
  protected OperationUpsertBulkReturned createOperation( OperationType operationType, String table, String opResultId, Object payload )
  {
    if( payload instanceof Map[] )
      payload = new ArrayList<>( Arrays.asList( ( Map[] ) payload ) );
    return new OperationUpsertBulkReturned( operationType, table, opResultId, (List) payload );
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy