Code example for Connection

Methods: createStatement

0
		this.dao = dao;
	} 
	 
	public Statement startBatch() throws SQLException {
		connection = dao.getConnection();
		statement = connection.createStatement();
		 
		return statement;
	} 
	 
	public void executeUpdate(String updateQuery) throws SQLException {
		if (connection == null || statement == null)
			startBatch(); 
		 
		statement.executeUpdate(updateQuery);
	} 
	 
	public void endBatch() { 
		DaoBase.closeStatement(statement);
		DaoBase.closeConnection(connection);
Connect your IDE to all the code out there  Get Codota for Java