public class DBConnection extends Object
| Constructor and Description |
|---|
DBConnection(Map<String,String> parameters) |
DBConnection(String hostname,
String port,
String database,
String user,
String password) |
DBConnection(String hostname,
String port,
String database,
String user,
String password,
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 user, String password)
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.