@ BsonIgnore @ Nullable public String getDatabaseName ( ) { if ( namespaceDocument == null ) { return null ; } if ( ! namespaceDocument . containsKey ( "db" ) ) { return null ; } return namespaceDocument . getString ( "db" ) . getValue ( ) ; }
Returns the database name