public class ConnectionInfo extends Object
Constructor and Description |
---|
ConnectionInfo(String jdbcUrl,
int port,
String user,
String password,
String driverClass,
String persistenceUnit,
Class<? extends org.dbunit.database.IDatabaseConnection> connection) |
Modifier and Type | Method and Description |
---|---|
void |
executeSql(String sql) |
void |
executeSqlFromResource(String resourceName) |
Class<? extends org.dbunit.database.IDatabaseConnection> |
getConnection() |
String |
getDriverClass() |
String |
getJdbcUrl() |
String |
getPassword() |
String |
getPersistenceUnit() |
int |
getPort() |
List<String> |
getTableNames() |
String |
getUser() |
void |
setConnection(Class<? extends org.dbunit.database.IDatabaseConnection> connection) |
void |
setDriverClass(String driverClass) |
void |
setJdbcUrl(String jdbcUrl) |
void |
setPassword(String password) |
void |
setPersistenceUnit(String persistenceUnit) |
void |
setPort(int port) |
void |
setTableNames(List<String> tableNames) |
void |
setUser(String user) |
public String getJdbcUrl()
public void setJdbcUrl(String jdbcUrl)
jdbcUrl
- the jdbcUrl to setpublic String getUser()
public void setUser(String user)
user
- the user to setpublic String getPassword()
public void setPassword(String password)
password
- the password to setpublic String getDriverClass()
public void setDriverClass(String driverClass)
driverClass
- the driverClass to setpublic Class<? extends org.dbunit.database.IDatabaseConnection> getConnection()
public void setConnection(Class<? extends org.dbunit.database.IDatabaseConnection> connection)
connection
- the connection to setpublic String getPersistenceUnit()
public void setPersistenceUnit(String persistenceUnit)
persistenceUnit
- the persistenceUnit to setpublic void setTableNames(List<String> tableNames)
tableNames
- the tableNames to setpublic int getPort()
public void setPort(int port)
public void executeSqlFromResource(String resourceName) throws IOException
IOException
public void executeSql(String sql)
Copyright © 2011–2023 aiticon GmbH. All rights reserved.