org.leberrigaud.maven.plugins.database.AdminDatabaseConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of database-maven-plugin Show documentation
Show all versions of database-maven-plugin Show documentation
A maven plugin to create and drop databases and their associated users.
package org.leberrigaud.maven.plugins.database;
class AdminDatabaseConfiguration implements DatabaseConfiguration
{
private final Database database;
private final DatabaseConfiguration configuration;
AdminDatabaseConfiguration(Database database, DatabaseConfiguration configuration)
{
this.configuration = configuration;
this.database = database;
}
public String getHost()
{
return configuration.getHost();
}
public String getPort(String defaultPort)
{
return configuration.getPort(defaultPort);
}
public String getUsername()
{
return configuration.getUsername();
}
public String getPassword()
{
return configuration.getPassword();
}
public String getDatabaseSchema()
{
return configuration.getDatabaseSchema();
}
public String getDatabaseName()
{
return database.adminDbName();
}
public String getSid()
{
return configuration.getSid();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy