Class MariaDb

  • All Implemented Interfaces:
    Backend

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

      • MariaDb

        public MariaDb()
    • Method Detail

      • isMatchingUrl

        public boolean isMatchingUrl​(java.lang.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 java.lang.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
      • 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