Class JdbcDatabaseManager.JdbcDatabase

java.lang.Object
io.micronaut.jdbc.JdbcDatabaseManager.JdbcDatabase
Direct Known Subclasses:
JdbcDatabaseManager.EmbeddedJdbcDatabase
Enclosing class:
JdbcDatabaseManager

public static class JdbcDatabaseManager.JdbcDatabase extends Object
Provides the required information in order to connect toa JDBC database, including the necessary driver and validation query.
  • Method Details

    • isEmbedded

      protected boolean isEmbedded()
      Returns:
      Whether the database is embedded
    • getDriverClassName

      public String getDriverClassName()
      Returns:
      The name of the driver class
    • getValidationQuery

      public String getValidationQuery()
      Returns:
      The query to run to the validate the connection
    • containsPrefix

      public boolean containsPrefix(String prefix)
      Parameters:
      prefix - The prefix to check
      Returns:
      Whether the url prefixes contain the prefix