View Javadoc
1   /**
2    * Logback: the reliable, generic, fast and flexible logging framework.
3    * Copyright (C) 1999-2015, QOS.ch. All rights reserved.
4    *
5    * This program and the accompanying materials are dual-licensed under
6    * either the terms of the Eclipse Public License v1.0 as published by
7    * the Eclipse Foundation
8    *
9    *   or (per the licensee's choosing)
10   *
11   * under the terms of the GNU Lesser General Public License version 2.1
12   * as published by the Free Software Foundation.
13   */
14  package ch.qos.logback.classic.db.names;
15  
16  /**
17   * Source of table and column names used in SQL queries generated by {@link ch.qos.logback.classic.db.DBAppender}
18   *
19   * Implement this interface to override default table and/or column names used by {@link ch.qos.logback.classic.db.DBAppender}.
20   *
21   * @author Tomasz Nurkiewicz
22   * @author Ceki Gulcu
23   * @since 0.9.19
24   * @see ch.qos.logback.classic.db.names.DefaultDBNameResolver
25   * @see ch.qos.logback.classic.db.names.SimpleDBNameResolver
26   */
27  public interface DBNameResolver {
28  
29      <N extends Enum<?>> String getTableName(N tableName);
30  
31      <N extends Enum<?>> String getColumnName(N columnName);
32  }