org.dbmaintain.maven.plugin.Database Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dbmaintain-maven-plugin Show documentation
Show all versions of dbmaintain-maven-plugin Show documentation
Maven plugin for dbmaintain.
DbMaintain enables automatic roll-out of updates to a relational database.
It brings database scripts into version control just like regular source code
and can be used to transparantly deploy databases from development on to production.
/*
* Copyright DbMaintain.org
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.dbmaintain.maven.plugin;
/**
* @author Tim Ducheyne
* @author Filip Neven
*/
public class Database {
/**
* @parameter
*/
private String name;
/**
* @parameter
*/
private boolean included = true;
/**
* @parameter
*/
private String dialect;
/**
* @parameter
* @required
*/
private String driverClassName;
/**
* @parameter
* @required
*/
private String url;
/**
* @parameter
* @required
*/
private String userName;
/**
* @parameter
* @required
*/
private String password;
/**
* @parameter
* @required
*/
private String schemaNames;
public Database() {
}
public Database(String name, boolean included, String dialect, String driverClassName, String url, String userName, String password, String schemaNames) {
this.name = name;
this.included = included;
this.dialect = dialect;
this.driverClassName = driverClassName;
this.url = url;
this.userName = userName;
this.password = password;
this.schemaNames = schemaNames;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public boolean isIncluded() {
return included;
}
public void setIncluded(boolean included) {
this.included = included;
}
public String getDialect() {
return dialect;
}
public void setDialect(String dialect) {
this.dialect = dialect;
}
public void setDriverClassName(String driverClassName) {
this.driverClassName = driverClassName;
}
public String getDriverClassName() {
return driverClassName;
}
public void setUrl(String url) {
this.url = url;
}
public String getUrl() {
return url;
}
public void setUserName(String userName) {
this.userName = userName;
}
public String getUserName() {
return userName;
}
public void setPassword(String password) {
this.password = password;
}
public String getPassword() {
return password;
}
public void setSchemaNames(String schemaNames) {
this.schemaNames = schemaNames;
}
public String getSchemaNames() {
return schemaNames;
}
}