public class SqlDatabaseClient extends Object implements DatabaseClient<Connection,SQLException>
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOGGER |
private String |
password |
private String |
url |
private String |
username |
| Constructor and Description |
|---|
SqlDatabaseClient(String url,
String username,
String password) |
| Modifier and Type | Method and Description |
|---|---|
private boolean |
doExecute(Commands<Connection,SQLException> commands) |
void |
execute(Commands<Connection,SQLException> commands) |
void |
execute(String command) |
void |
execute(String database,
Commands<Connection,SQLException> commands) |
void |
execute(String database,
String command) |
private static final org.slf4j.Logger LOGGER
private String url
private String username
private String password
private boolean doExecute(Commands<Connection,SQLException> commands) throws SQLException
SQLExceptionpublic void execute(Commands<Connection,SQLException> commands) throws SQLException
execute in interface DatabaseClient<Connection,SQLException>SQLExceptionpublic void execute(String database, Commands<Connection,SQLException> commands) throws SQLException
SQLExceptionpublic void execute(String database, String command) throws SQLException
SQLExceptionpublic void execute(String command) throws SQLException
SQLExceptionCopyright © 2021 JBoss by Red Hat. All rights reserved.