@Test public void testGetDefaultDriver() { Database database = getDatabase(); assertEquals("org.h2.Driver", database.getDefaultDriver("jdbc:h2:mem:liquibase")); assertNull(database.getDefaultDriver("jdbc:db2: }
public String getDefaultDriver(String url) { if (url.startsWith("jdbc:h2")) { return "org.h2.Driver"; } return null; }
H2Database extends AbstractDatabase { public String getDefaultDriver(String url) { if (url.startsWith("jdbc:h2")) { return "org.h2.Driver"; } return null; } }
H2Database extends AbstractDatabase { public String getDefaultDriver(String url) { if (url.startsWith("jdbc:h2")) { return "org.h2.Driver"; } return null; } H2Database(); }
H2Database extends AbstractDatabase { public String getDefaultDriver(String url) { if (url.startsWith("jdbc:h2")) { return "org.h2.Driver"; } return null; } H2Database(); String getTypeName(); String getDefaultDriver(String url); int getPriority(); boolean isCorrectDatabaseImplementation(DatabaseConnection conn); boolean supportsTablespaces(); @Override String getViewDefinition(String schemaName, String name); @Override Date parseDate(String dateAsString); @Override boolean isLocalDatabase(); @Override boolean supportsSequences(); @Override String getConcatSql(String... values); @Override String getDateLiteral(String isoDate); @Override String convertRequestedSchemaToSchema(String requestedSchema); @Override String escapeDatabaseObject(String objectName); @Override boolean isReservedWord(String objectName); boolean supportsInitiallyDeferrableColumns(); String getCurrentDateTimeFunction(); }
H2Database extends AbstractDatabase { public String getDefaultDriver(String url) { if (url.startsWith("jdbc:h2")) { return "org.h2.Driver"; } return null; } H2Database(); String getTypeName(); String getDefaultDriver(String url); int getPriority(); boolean isCorrectDatabaseImplementation(DatabaseConnection conn); boolean supportsTablespaces(); @Override String getViewDefinition(String schemaName, String name); @Override Date parseDate(String dateAsString); @Override boolean isLocalDatabase(); @Override boolean supportsSequences(); @Override String getConcatSql(String... values); @Override String getDateLiteral(String isoDate); @Override String convertRequestedSchemaToSchema(String requestedSchema); @Override String escapeDatabaseObject(String objectName); @Override boolean isReservedWord(String objectName); boolean supportsInitiallyDeferrableColumns(); String getCurrentDateTimeFunction();  }