@ConfigurationProperties(prefix="spring.data.mongodb") public class MongoProperties extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MongoProperties.Gridfs |
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_PORT
Default port used when the configured port is
null . |
static String |
DEFAULT_URI
Default URI used when the configured URI is
null . |
Constructor and Description |
---|
MongoProperties() |
Modifier and Type | Method and Description |
---|---|
String |
determineUri() |
String |
getAuthenticationDatabase() |
String |
getDatabase() |
Class<?> |
getFieldNamingStrategy() |
MongoProperties.Gridfs |
getGridfs() |
String |
getHost() |
String |
getMongoClientDatabase() |
char[] |
getPassword() |
Integer |
getPort() |
String |
getReplicaSetName() |
String |
getUri() |
String |
getUsername() |
org.bson.UuidRepresentation |
getUuidRepresentation() |
Boolean |
isAutoIndexCreation() |
void |
setAuthenticationDatabase(String authenticationDatabase) |
void |
setAutoIndexCreation(Boolean autoIndexCreation) |
void |
setDatabase(String database) |
void |
setFieldNamingStrategy(Class<?> fieldNamingStrategy) |
void |
setHost(String host) |
void |
setPassword(char[] password) |
void |
setPort(Integer port) |
void |
setReplicaSetName(String replicaSetName) |
void |
setUri(String uri) |
void |
setUsername(String username) |
void |
setUuidRepresentation(org.bson.UuidRepresentation uuidRepresentation) |
public static final int DEFAULT_PORT
null
.public static final String DEFAULT_URI
null
.public String getHost()
public void setHost(String host)
public String getDatabase()
public void setDatabase(String database)
public String getAuthenticationDatabase()
public void setAuthenticationDatabase(String authenticationDatabase)
public String getUsername()
public void setUsername(String username)
public char[] getPassword()
public void setPassword(char[] password)
public String getReplicaSetName()
public void setReplicaSetName(String replicaSetName)
public Class<?> getFieldNamingStrategy()
public void setFieldNamingStrategy(Class<?> fieldNamingStrategy)
public org.bson.UuidRepresentation getUuidRepresentation()
public void setUuidRepresentation(org.bson.UuidRepresentation uuidRepresentation)
public String getUri()
public String determineUri()
public void setUri(String uri)
public Integer getPort()
public void setPort(Integer port)
public MongoProperties.Gridfs getGridfs()
public String getMongoClientDatabase()
public Boolean isAutoIndexCreation()
public void setAutoIndexCreation(Boolean autoIndexCreation)