microsoft-azure-storage/src/com/microsoft/azure/storage/table/TableOperation.java
protected String generateRequestIdentity(boolean isSingleIndexEntry, final String entryName)
            throws StorageException {
        if (isSingleIndexEntry) {
            return String.format("'%s'", entryName.replace("'", "''"));
        }

        if (this.opType == TableOperationType.INSERT) {
            return Constants.EMPTY_STRING;
        }
        else {
            String pk = null;
            String rk = null;

            if (this.opType == TableOperationType.RETRIEVE) {
                final QueryTableOperation qOp = (QueryTableOperation) this;
                pk = qOp.getPartitionKey();
                rk = qOp.getRowKey();
            }
            else {
                pk = this.getEntity().getPartitionKey();
                rk = this.getEntity().getRowKey();
            }

            return String.format("%s='%s',%s='%s'", 
                    TableConstants.PARTITION_KEY, pk.replace("'", "''"), 
                    TableConstants.ROW_KEY, rk.replace("'", "''"));
        }
    }
protected String generateRequestIdentity(boolean isSingleIndexEntry, final String entryName)
            throws StorageException {
        if (isSingleIndexEntry) {
            return String.format("'%s'", entryName.replace("'", "''"));
        }

        if (this.opType == TableOperationType.INSERT) {
            return Constants.EMPTY_STRING;
        }
        else {
            String pk = null;
            String rk = null;

            if (this.opType == TableOperationType.RETRIEVE) {
                final QueryTableOperation qOp = (QueryTableOperation) this;
                pk = qOp.getPartitionKey();
                rk = qOp.getRowKey();
            }
            else {
                pk = this.getEntity().getPartitionKey();
                rk = this.getEntity().getRowKey();
            }

            return String.format("%s='%s',%s='%s'", 
                    TableConstants.PARTITION_KEY, pk.replace("'", "''"), 
                    TableConstants.ROW_KEY, rk.replace("'", "''"));
        }
    }
Reserved for internal use. Generates the request identity, consisting of the specified entry name, or the
PartitionKey and RowKey pair from the operation, to identify the operation target.

@param isSingleIndexEntry
Pass <code>true</code> to use the specified <code>entryName</code> parameter, or <code>false</code> to
use PartitionKey and RowKey values from the operation as the request identity.
@param entryName
The entry name to use as the request identity if the <code>isSingleIndexEntry</code> parameter is
<code>true</code>.
@return
A <code>String</code> which represents the formatted request identity string.
@throws StorageException
If a storage service error occurred.