Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2152

Recognize if there is no find result

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Async, Query Operations
    • None

    Description

      I'm using the asynchronous java driver. I hope you can help me to solve the problem of the following scenario.

      First, using the "find" operator I want to check if there is an entry in my collection. If yes, the callback will be called and I can use it. If there is no entry in my collection, my application should generate this value and persist it. But how could I recognize that "find" can't find any entry?

      Attachments

        Activity

          People

            Unassigned Unassigned
            ChampS Ben [X]
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: