@Immutable public final class MongoNamespace extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
COMMAND_COLLECTION_NAME |
| Constructor and Description |
|---|
MongoNamespace(String fullName)
Construct an instance.
|
MongoNamespace(String databaseName,
String collectionName)
Construct an instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getCollectionName()
Gets the collection name.
|
String |
getDatabaseName()
Gets the database name.
|
String |
getFullName()
Gets the full name, which is the database name and the collection name, separated by a period.
|
int |
hashCode() |
String |
toString()
Returns the standard MongoDB representation of a namespace, which is
<database>.<collection>. |
public static final String COMMAND_COLLECTION_NAME
public MongoNamespace(String fullName)
fullName - the full namespacepublic String getDatabaseName()
public String getCollectionName()
public String getFullName()
public String toString()
<database>.<collection>.