public void insertOrReplace(final TableEntity entity) {
        this.lockToPartitionKey(entity.getPartitionKey());
        this.add(TableOperation.insertOrReplace(entity));
    }
public void insertOrReplace(final TableEntity entity) {
        this.lockToPartitionKey(entity.getPartitionKey());
        this.add(TableOperation.insertOrReplace(entity));
    }
public void insertOrReplace ( final TableEntity entity ) { this . lockToPartitionKey ( entity . getPartitionKey ( ) ) ; this . add ( TableOperation . insertOrReplace ( entity ) ) ; }
Adds a table operation to insert or replace the specified entity to the batch operation.

@param entity
The {@link TableEntity} to insert if not found or to replace if it exists.
Adds a table operation to insert or replace the specified entity to the batch operation .