public class DBConnection extends Object
| Constructor and Description |
|---|
DBConnection(Map<String,String> parameters) |
DBConnection(String hostname,
String port,
String database,
String password,
String user) |
DBConnection(String hostname,
String port,
String database,
String password,
String user,
DBType type) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkConnection() |
void |
closeConnection() |
void |
connect() |
Connection |
getConnection() |
PreparedStatement |
preparedStatement(String sql) |
PreparedStatement |
preparedStatement(String sql,
int autoGeneratedKeys) |
public DBConnection(String hostname, String port, String database, String password, String user)
public void connect()
public boolean checkConnection()
public Connection getConnection()
public void closeConnection()
public PreparedStatement preparedStatement(String sql)
public PreparedStatement preparedStatement(String sql, int autoGeneratedKeys)
Copyright © 2024. All rights reserved.