Class MariaDb

All Implemented Interfaces:
Backend

@Service(Backend.class) public class MariaDb extends MySql
Backend for MariaDB.
Author:
harald
  • Constructor Details

    • MariaDb

      public MariaDb()
  • Method Details

    • isMatchingUrl

      public boolean isMatchingUrl(String url)
      Description copied from interface: Backend
      Checks whether the backend belongs to the given jdbc url.
      If multiple backend implementations are provided for the same database type, only one backend should match the URL. The others must be selected via name.
      Specified by:
      isMatchingUrl in interface Backend
      Overrides:
      isMatchingUrl in class MySql
      Parameters:
      url - the jdbc url
      Returns:
      true if matches
    • getName

      public String getName()
      Description copied from interface: Backend
      Gets the name of the backend.
      Specified by:
      getName in interface Backend
      Overrides:
      getName in class MySql
      Returns:
      the name
    • getDriverClassName

      public String getDriverClassName()
      Description copied from interface: Backend
      Gets the JDBC driver class name.
      Specified by:
      getDriverClassName in interface Backend
      Overrides:
      getDriverClassName in class MySql
      Returns:
      the class name
    • isDropIfExistsSupported

      protected boolean isDropIfExistsSupported()
      Description copied from class: AbstractBackend
      Adds "IF EXISTS" to drop clauses, if supported by the backend.
      Makes migration a little more robust in case the same SQL scripts are applied to different databases than those used to generate the migration scripts for.
      Overrides:
      isDropIfExistsSupported in class AbstractBackend
      Returns:
      true if supported