@Test public void testIsEncrypted() { PatternColumnMapper mapper = new PatternColumnMapper("^bla_"); assertTrue(mapper.isEncrypted(new DbAttribute("bla_"))); assertTrue(mapper.isEncrypted(new DbAttribute("bla_x"))); assertFalse(mapper.isEncrypted(new DbAttribute("_bla_x"))); assertFalse(mapper.isEncrypted(new DbAttribute("nnn"))); }
@Override public boolean isEncrypted(DbAttribute column) { return columnNamePattern.matcher(column.getName()).find(); }
PatternColumnMapper implements ColumnMapper { @Override public boolean isEncrypted(DbAttribute column) { return columnNamePattern.matcher(column.getName()).find(); } }
PatternColumnMapper implements ColumnMapper { @Override public boolean isEncrypted(DbAttribute column) { return columnNamePattern.matcher(column.getName()).find(); } PatternColumnMapper(String columnNamePattern); }
PatternColumnMapper implements ColumnMapper { @Override public boolean isEncrypted(DbAttribute column) { return columnNamePattern.matcher(column.getName()).find(); } PatternColumnMapper(String columnNamePattern); @Override boolean isEncrypted(DbAttribute column); }
PatternColumnMapper implements ColumnMapper { @Override public boolean isEncrypted(DbAttribute column) { return columnNamePattern.matcher(column.getName()).find(); } PatternColumnMapper(String columnNamePattern); @Override boolean isEncrypted(DbAttribute column);  }