Package org.dbunit.dataset.filter

Examples of org.dbunit.dataset.filter.SequenceTableFilter


      // dependencies
      // between the ALBUMS and PHOTOS tables. The plain XML file does not
      // contain this information. The DatabaseSequenceFilter class is
      // avoided as it cannot handle circular dependencies.
      String[] orderedTableNames = new String[] { "SEQUENCE", "USERS_GROUPS", "USERS", "GROUPS", "ALBUMS", "PHOTOS" };
      IDataSet filteredDataSet = new FilteredDataSet(new SequenceTableFilter(orderedTableNames), dataSet);
      DatabaseOperation.CLEAN_INSERT.execute(connection, filteredDataSet);
    }
    finally
    {
      connection.close();
View Full Code Here


      // dependencies
      // between the ALBUMS and PHOTOS tables. The plain XML file does not
      // contain this information. The DatabaseSequenceFilter class is
      // avoided as it cannot handle circular dependencies.
      String[] orderedTableNames = new String[] { "SEQUENCE", "USERS_GROUPS", "USERS", "GROUPS", "ALBUMS", "PHOTOS" };
      IDataSet filteredDataSet = new FilteredDataSet(new SequenceTableFilter(orderedTableNames), dataSet);
      DatabaseOperation.CLEAN_INSERT.execute(connection, filteredDataSet);
    }
    finally
    {
      connection.close();
View Full Code Here

     * @throws AmbiguousTableNameException If the given tableNames array contains ambiguous names
     */
    public FilteredDataSet(String[] tableNames, IDataSet dataSet)
    throws AmbiguousTableNameException
    {
        _filter = new SequenceTableFilter(tableNames, dataSet.isCaseSensitiveTableNames());
        _dataSet = dataSet;
    }
View Full Code Here

     * exposes only the specified tables using {@link SequenceTableFilter} as
     * filtering startegy.
     */
    public FilteredDataSet(String[] tableNames, IDataSet dataSet)
    {
        _filter = new SequenceTableFilter(tableNames);
        _dataSet = dataSet;
    }
View Full Code Here

      // between the ALBUMS and PHOTOS tables. The plain XML file does not
      // contain this information. The DatabaseSequenceFilter class is
      // avoided as it cannot handle circular dependencies.
      String[] orderedTableNames = new String[] { "SEQUENCE", "USERS_GROUPS", "USERS", "GROUPS", "ALBUMS",
          "PHOTOS" };
      IDataSet filteredDataSet = new FilteredDataSet(new SequenceTableFilter(orderedTableNames), dataSet);
      DatabaseOperation.CLEAN_INSERT.execute(connection, filteredDataSet);
    }
    catch (Exception ex)
    {
      throw ex;
View Full Code Here

      // between the ALBUMS and PHOTOS tables. The plain XML file does not
      // contain this information. The DatabaseSequenceFilter class is
      // avoided as it cannot handle circular dependencies.
      String[] orderedTableNames = new String[] { "SEQUENCE", "USERS_GROUPS", "USERS", "GROUPS", "ALBUMS",
          "PHOTOS" };
      IDataSet filteredDataSet = new FilteredDataSet(new SequenceTableFilter(orderedTableNames), dataSet);
      DatabaseOperation.CLEAN_INSERT.execute(connection, filteredDataSet);
    }
    catch (Exception ex)
    {
      throw ex;
View Full Code Here

TOP

Related Classes of org.dbunit.dataset.filter.SequenceTableFilter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.