All Implemented Interfaces:
Serializable, Cloneable, CorePlatform<ConversionManager>, Platform

public class MariaDBPlatform extends MySQLPlatform

Purpose: Provides MariaDB specific behavior.

See Also:
  • Constructor Details

    • MariaDBPlatform

      public MariaDBPlatform()
  • Method Details

    • initializeConnectionData

      public void initializeConnectionData(Connection connection) throws SQLException
      Description copied from class: DatabasePlatform
      INTERNAL: Allow initialization from the connection.
      Overrides:
      initializeConnectionData in class MySQLPlatform
      Throws:
      SQLException
    • isMariaDB

      public boolean isMariaDB()
      Specified by:
      isMariaDB in interface Platform
      Overrides:
      isMariaDB in class DatasourcePlatform
    • isMySQL

      public boolean isMySQL()
      Description copied from class: MySQLPlatform
      Answers whether platform is MySQL.
      Specified by:
      isMySQL in interface Platform
      Overrides:
      isMySQL in class MySQLPlatform
    • isFractionalTimeSupported

      public boolean isFractionalTimeSupported()
      Overrides:
      isFractionalTimeSupported in class MySQLPlatform
    • supportsSequenceObjects

      public boolean supportsSequenceObjects()
      INTERNAL: Indicates whether the platform supports sequence objects.
      Overrides:
      supportsSequenceObjects in class DatasourcePlatform
    • buildSequenceObjectCreationWriter

      public Writer buildSequenceObjectCreationWriter(Writer writer, String fullSeqName, int increment, int start) throws IOException
      INTERNAL: Returns query used to read value generated by sequence object (like Oracle sequence). This method is called when sequence object NativeSequence is connected, the returned query used until the sequence is disconnected. If the platform supportsSequenceObjects then (at least) one of buildSelectQueryForSequenceObject methods should return non-null query.
      Overrides:
      buildSequenceObjectCreationWriter in class DatabasePlatform
      Throws:
      IOException
    • buildSelectQueryForSequenceObject

      public ValueReadQuery buildSelectQueryForSequenceObject(String qualifiedSeqName, Integer size)
      Description copied from class: DatasourcePlatform
      INTERNAL: Returns query used to read value generated by sequence object (like Oracle sequence). In case the other version of this method (taking no parameters) returns null, this method is called every time sequence object NativeSequence reads. If the platform supportsSequenceObjects then (at least) one of buildSelectQueryForSequenceObject methods should return non-null query.
      Overrides:
      buildSelectQueryForSequenceObject in class DatasourcePlatform
    • isAlterSequenceObjectSupported

      public boolean isAlterSequenceObjectSupported()
      INTERNAL: Override this method if the platform supports sequence objects and it's possible to alter sequence object's increment in the database.
      Overrides:
      isAlterSequenceObjectSupported in class DatabasePlatform
    • getDropDatabaseSchemaString

      public String getDropDatabaseSchemaString(String schema)
      Return the drop schema definition. Subclasses should override as needed.
      Overrides:
      getDropDatabaseSchemaString in class MySQLPlatform