public class Database extends Object
| Constructor and Description |
|---|
Database(String dataSource,
Properties properties) |
Database(String driver,
String url,
String username,
String password) |
| Modifier and Type | Method and Description |
|---|---|
void |
disconnect() |
void |
executeBatch(List<String> commands,
boolean commit)
Does not produce an output result.
|
boolean |
executeCommand(String command) |
ResultSet |
select(String query) |
public Database(String driver, String url, String username, String password) throws ClassNotFoundException, SQLException
ClassNotFoundExceptionSQLExceptionpublic Database(String dataSource, Properties properties) throws NamingException, SQLException
NamingExceptionSQLExceptionpublic void disconnect()
throws SQLException,
NamingException
SQLExceptionNamingExceptionpublic ResultSet select(String query) throws org.bonitasoft.engine.connector.ConnectorException, SQLException
org.bonitasoft.engine.connector.ConnectorExceptionSQLExceptionpublic boolean executeCommand(String command) throws SQLException, org.bonitasoft.engine.connector.ConnectorException
SQLExceptionorg.bonitasoft.engine.connector.ConnectorExceptionpublic void executeBatch(List<String> commands, boolean commit) throws SQLException, org.bonitasoft.engine.connector.ConnectorException
commands, - the list of SQL command to executecommit - , commit after the batch executionSQLExceptionorg.bonitasoft.engine.connector.ConnectorExceptionCopyright © 2020. All rights reserved.