MongoNamespace (driver-core 5.5.0 API) (original) (raw)


A MongoDB namespace, which includes a database name and collection name.

Since:

3.0

Fields
The collection name in which to execute a command.

Constructors
Construct an instance for the given full name.
Construct an instance from the given database name and collection name.

static void
Check the validity of the given collection name.
static void
Check the validity of the given database name.
boolean
Gets the collection name.
Gets the full name, which is the database name and the collection name, separated by a period.
int
[hashCode](#hashCode%28%29)()
[toString](#toString%28%29)()
Returns the standard MongoDB representation of a namespace, which is <database>.<collection>.