microsoft-azure-storage/src/com/microsoft/azure/storage/table/TableBatchOperation.java
public void insertOrMerge(final TableEntity entity) {
        this.lockToPartitionKey(entity.getPartitionKey());
        this.add(TableOperation.insertOrMerge(entity));
    }
public void insertOrMerge(final TableEntity entity) {
        this.lockToPartitionKey(entity.getPartitionKey());
        this.add(TableOperation.insertOrMerge(entity));
    }
public void insertOrMerge ( final TableEntity entity ) { this . lockToPartitionKey ( entity . getPartitionKey ( ) ) ; this . add ( TableOperation . insertOrMerge ( entity ) ) ; }
Adds a table operation to insert or merge the specified entity to the batch operation.

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