com.backendless.transaction.OperationCreateBulkFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk-common Show documentation
Show all versions of java-sdk-common Show documentation
Provides access to Backendless API
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 OperationCreateBulkFactory extends OperationFactory
{
@Override
protected Class getClazz()
{
return OperationCreateBulkReturned.class;
}
@Override
protected OperationCreateBulkReturned createOperation( OperationType operationType, String table, String opResultId, Object payload )
{
if( payload instanceof Map[] )
payload = new ArrayList<>( Arrays.asList( ( Map[] ) payload ) );
return new OperationCreateBulkReturned( operationType, table, opResultId, (List) payload );
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy