Package net.swofty.data.mongodb
Class AttributeDatabase
java.lang.Object
net.swofty.data.mongodb.AttributeDatabase
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic com.mongodb.client.MongoClient
static com.mongodb.client.MongoCollection<org.bson.Document>
static com.mongodb.client.MongoDatabase
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
static org.bson.Document
getDocument
(String key) static void
saveDocument
(org.bson.Document document)
-
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
-
saveDocument
public static void saveDocument(org.bson.Document document) -
getDocument
-