@Test public void testGetDefaultDatabasePort() throws Exception { assertEquals( 5439, dbMeta.getDefaultDatabasePort() ); dbMeta.setAccessType( DatabaseMeta.TYPE_ACCESS_JNDI ); assertEquals( -1, dbMeta.getDefaultDatabasePort() ); }
@Override public int getDefaultDatabasePort() { if ( getAccessType() == DatabaseMeta.TYPE_ACCESS_NATIVE ) { return 5439; } return -1; }
RedshiftDatabaseMeta extends PostgreSQLDatabaseMeta { @Override public int getDefaultDatabasePort() { if ( getAccessType() == DatabaseMeta.TYPE_ACCESS_NATIVE ) { return 5439; } return -1; } }
RedshiftDatabaseMeta extends PostgreSQLDatabaseMeta { @Override public int getDefaultDatabasePort() { if ( getAccessType() == DatabaseMeta.TYPE_ACCESS_NATIVE ) { return 5439; } return -1; } RedshiftDatabaseMeta(); }
RedshiftDatabaseMeta extends PostgreSQLDatabaseMeta { @Override public int getDefaultDatabasePort() { if ( getAccessType() == DatabaseMeta.TYPE_ACCESS_NATIVE ) { return 5439; } return -1; } RedshiftDatabaseMeta(); @Override int getDefaultDatabasePort(); @Override String getDriverClass(); @Override String getURL( String hostname, String port, String databaseName ); @Override String getExtraOptionsHelpText(); @Override boolean isFetchSizeSupported(); @Override boolean supportsSetMaxRows(); @Override String[] getUsedLibraries(); }
RedshiftDatabaseMeta extends PostgreSQLDatabaseMeta { @Override public int getDefaultDatabasePort() { if ( getAccessType() == DatabaseMeta.TYPE_ACCESS_NATIVE ) { return 5439; } return -1; } RedshiftDatabaseMeta(); @Override int getDefaultDatabasePort(); @Override String getDriverClass(); @Override String getURL( String hostname, String port, String databaseName ); @Override String getExtraOptionsHelpText(); @Override boolean isFetchSizeSupported(); @Override boolean supportsSetMaxRows(); @Override String[] getUsedLibraries();  }