Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

ColumnMatcher.java 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. Copyright (c) 2010 James Ahlborn
  3. This library is free software; you can redistribute it and/or
  4. modify it under the terms of the GNU Lesser General Public
  5. License as published by the Free Software Foundation; either
  6. version 2.1 of the License, or (at your option) any later version.
  7. This library is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  10. Lesser General Public License for more details.
  11. You should have received a copy of the GNU Lesser General Public
  12. License along with this library; if not, write to the Free Software
  13. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
  14. USA
  15. */
  16. package com.healthmarketscience.jackcess;
  17. /**
  18. * Interface for handling comparisons between column values.
  19. *
  20. * @author James Ahlborn
  21. */
  22. public interface ColumnMatcher
  23. {
  24. /**
  25. * Returns {@code true} if the given value1 should be considered a match for
  26. * the given value2 for the given column in the given table, {@code false}
  27. * otherwise.
  28. *
  29. * @param table the relevant table
  30. * @param columnName the name of the relevant column within the table
  31. * @param value1 the first value to match (may be {@code null})
  32. * @param value2 the second value to match (may be {@code null})
  33. */
  34. public boolean matches(Table table, String columnName, Object value1,
  35. Object value2);
  36. }