Class AttributeDatabase

java.lang.Object
net.swofty.data.mongodb.AttributeDatabase

public class AttributeDatabase extends Object
  • Field Details

    • client

      public static com.mongodb.client.MongoClient client
    • database

      public static com.mongodb.client.MongoDatabase database
    • collection

      public static com.mongodb.client.MongoCollection<org.bson.Document> collection
  • Constructor Details

    • AttributeDatabase

      public AttributeDatabase()
  • Method Details

    • connect

      public static void connect(String connectionString)
    • saveDocument

      public static void saveDocument(org.bson.Document document)
    • getDocument

      public static org.bson.Document getDocument(String key)