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 .