You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

SimpleImportFilter.java 821B

123456789101112131415161718192021222324252627282930313233343536
  1. // Copyright (c) 2006 Health Market Science, Inc.
  2. package com.healthmarketscience.jackcess;
  3. import java.io.IOException;
  4. import java.sql.ResultSetMetaData;
  5. import java.sql.SQLException;
  6. import java.util.List;
  7. /**
  8. * Simple concrete implementation of ImportFilter which just returns the given
  9. * values.
  10. *
  11. * @author James Ahlborn
  12. */
  13. public class SimpleImportFilter implements ImportFilter {
  14. public static final SimpleImportFilter INSTANCE = new SimpleImportFilter();
  15. public SimpleImportFilter() {
  16. }
  17. public List<Column> filterColumns(List<Column> destColumns,
  18. ResultSetMetaData srcColumns)
  19. throws SQLException, IOException
  20. {
  21. return destColumns;
  22. }
  23. public Object[] filterRow(Object[] row)
  24. throws SQLException, IOException
  25. {
  26. return row;
  27. }
  28. }