com.technophobia.substeps.database.runner.DatabaseExecutionContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of database-substeps Show documentation
Show all versions of database-substeps Show documentation
Database step implementations
The newest version!
/*
* Copyright Technophobia Ltd & Alan Raison 2013
*
* This file is part of Substeps.
*
* Substeps is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Substeps is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Substeps. If not, see .
*/
package com.technophobia.substeps.database.runner;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import junit.framework.Assert;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.technophobia.substeps.database.impl.Database;
public class DatabaseExecutionContext {
private static final Logger logger = LoggerFactory.getLogger(DatabaseExecutionContext.class);
public static final String EXECUTION_CONTEXT_KEY = "_db_context_key";
public static final String DEFAULT_RESULT_NAMESPACE = "_default_results_namespace";
private Map>> mapOfMultipleResults = null;
public void clear() {
this.mapOfMultipleResults = null;
}
private List