01: package net.sourceforge.squirrel_sql.fw.sql;
02:
03: import java.sql.SQLException;
04:
05: import com.mockobjects.sql.MockConnection2;
06:
07: public class MockSQLDatabaseMetaData extends SQLDatabaseMetaData
08: implements ISQLDatabaseMetaData {
09:
10: static MockConnection2 conn = new MockConnection2();
11: static ISQLConnection sqlConn = new SQLConnection(conn, null, null);
12:
13: public MockSQLDatabaseMetaData() {
14: super (sqlConn);
15: }
16:
17: /* (non-Javadoc)
18: * @see net.sourceforge.squirrel_sql.fw.sql.SQLDatabaseMetaData#getExportedKeysInfo(net.sourceforge.squirrel_sql.fw.sql.ITableInfo)
19: */
20: @Override
21: public synchronized ForeignKeyInfo[] getExportedKeysInfo(
22: ITableInfo ti) throws SQLException {
23: throw new SQLException("Simulated Unsupported API Method");
24: }
25:
26: /* (non-Javadoc)
27: * @see net.sourceforge.squirrel_sql.fw.sql.SQLDatabaseMetaData#getImportedKeysInfo(net.sourceforge.squirrel_sql.fw.sql.ITableInfo)
28: */
29: @Override
30: public synchronized ForeignKeyInfo[] getImportedKeysInfo(
31: ITableInfo ti) throws SQLException {
32: throw new SQLException("Simulated Unsupported API Method");
33: }
34:
35: }
|