Package net.swofty.data.mongodb
Class RegionDatabase
java.lang.Object
net.swofty.data.mongodb.RegionDatabase
- All Implemented Interfaces:
MongoDB
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic com.mongodb.client.MongoClient
static com.mongodb.client.MongoCollection<org.bson.Document>
static com.mongodb.client.MongoDatabase
final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
exists()
List<org.bson.Document>
getAll()
static List<SkyBlockRegion>
boolean
getBoolean
(String key, boolean def) org.bson.Document
int
<T> List<T>
long
void
insertOrUpdate
(String key, Object value) boolean
void
-
Field Details
-
id
-
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
-
RegionDatabase
-
-
Method Details
-
connect
-
set
-
get
-
getAll
-
getString
-
getInt
-
getLong
-
getBoolean
- Specified by:
getBoolean
in interfaceMongoDB
-
getList
-
getDocument
public org.bson.Document getDocument() -
remove
-
insertOrUpdate
- Specified by:
insertOrUpdate
in interfaceMongoDB
-
exists
public boolean exists() -
getAllRegions
-