
com.jk.data.backup.DatabaseInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jk-framework-data Show documentation
Show all versions of jk-framework-data Show documentation
This contains a set of API's that ease the database programming with Java, in both: JDBC and JPA Persisitnce).
/*
* Copyright 2002-2021 Dr. Jalal Kiswani.
* Email: [email protected]
* Check out https://smart-api.com for more details
*
* All the opensource projects of Dr. Jalal Kiswani are free for personal and academic use only,
* for commercial usage and support, please contact the author.
*
* 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 com.jk.data.backup;
import com.jk.core.util.JK;
import com.jk.data.datasource.JKDataSource;
// TODO: Auto-generated Javadoc
/**
* The Class DatabaseInfo.
*/
public class DatabaseInfo {
/** The database host. */
private String databaseHost;
/** The database port. */
private int databasePort;
/** The database name. */
private String databaseName;
/** The database user. */
private String databaseUser;
/** The database password. */
private String databasePassword;
/** The file name. */
private String fileName;
/**
* Instantiates a new database info.
*/
public DatabaseInfo() {
}
/**
* Instantiates a new database info.
*
* @param con the con
*/
public DatabaseInfo(final JKDataSource con) {
JK.implementMe();
// setDatabaseHost(con.getDatabaseHost());
// setDatabaseName(con.getDatabaseName());
// setDatabasePort(con.getDatabasePort());
// setDatabaseUser(con.getUsername());
// setDatabasePassword(con.getPassword());
}
/**
* Gets the database host.
*
* @return the database host
*/
public String getDatabaseHost() {
return this.databaseHost;
}
/**
* Gets the database name.
*
* @return the database name
*/
public String getDatabaseName() {
return this.databaseName;
}
/**
* Gets the database password.
*
* @return the database password
*/
public String getDatabasePassword() {
return this.databasePassword;
}
/**
* Gets the database port.
*
* @return the database port
*/
public int getDatabasePort() {
return this.databasePort;
}
/**
* Gets the database user.
*
* @return the database user
*/
public String getDatabaseUser() {
return this.databaseUser;
}
/**
* Gets the file name.
*
* @return the file name
*/
public String getFileName() {
return this.fileName;
}
/**
* Sets the database host.
*
* @param databaseHost the new database host
*/
public void setDatabaseHost(final String databaseHost) {
this.databaseHost = databaseHost;
}
/**
* Sets the database name.
*
* @param databaseName the new database name
*/
public void setDatabaseName(final String databaseName) {
this.databaseName = databaseName;
}
/**
* Sets the database password.
*
* @param databasePassword the new database password
*/
public void setDatabasePassword(final String databasePassword) {
this.databasePassword = databasePassword;
}
/**
* Sets the database port.
*
* @param databasePort the new database port
*/
public void setDatabasePort(final int databasePort) {
this.databasePort = databasePort;
}
/**
* Sets the database user.
*
* @param databaseUser the new database user
*/
public void setDatabaseUser(final String databaseUser) {
this.databaseUser = databaseUser;
}
/**
* Sets the file name.
*
* @param fileName the new file name
*/
public void setFileName(final String fileName) {
this.fileName = fileName;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy