01: /*
02: * SynonymReader.java
03: *
04: * This file is part of SQL Workbench/J, http://www.sql-workbench.net
05: *
06: * Copyright 2002-2008, Thomas Kellerer
07: * No part of this code maybe reused without the permission of the author
08: *
09: * To contact the author please send an email to: support@sql-workbench.net
10: *
11: */
12: package workbench.db;
13:
14: import java.sql.Connection;
15: import java.sql.SQLException;
16: import java.util.List;
17:
18: /**
19: * Read the definition of synonyms from the database.
20: * @author support@sql-workbench.net
21: */
22: public interface SynonymReader {
23: String getSynonymSource(Connection con, String anOwner,
24: String aSynonym) throws SQLException;
25:
26: TableIdentifier getSynonymTable(Connection con, String anOwner,
27: String aSynonym) throws SQLException;
28:
29: List<String> getSynonymList(Connection con, String owner)
30: throws SQLException;
31: }
|