Package org.mongojack

Interface WriteResult<T,K>

All Known Implementing Classes:
LegacyDeleteResult, LegacyInsertManyResult, LegacyInsertOneResult, LegacyUpdateOneResult, LegacyUpdateResult

@Deprecated public interface WriteResult<T,K>
Deprecated.
use MongoCollections as an entrypoint for interacting with MongoDB.
Compatibility layer to support existing code interacting with the Mongojack 2.x API.
  • Method Details

    • getSavedObject

      default T getSavedObject()
      Deprecated.
    • getN

      int getN()
      Deprecated.
    • wasAcknowledged

      boolean wasAcknowledged()
      Deprecated.
    • getSavedId

      default K getSavedId()
      Deprecated.
    • getUpsertedId

      default Object getUpsertedId()
      Deprecated.
    • isUpdateOfExisting

      boolean isUpdateOfExisting()
      Deprecated.
    • toIdType

      static <L> L toIdType(org.bson.BsonValue id, Class<L> idType)
      Deprecated.
    • extractValue

      static Object extractValue(org.bson.BsonValue bsonValue)
      Deprecated.