Module eclipselink

Class MariaDBPlatform

java.lang.Object
org.eclipse.persistence.internal.databaseaccess.DatasourcePlatform
org.eclipse.persistence.internal.databaseaccess.DatabasePlatform
All Implemented Interfaces:
Serializable, Cloneable, org.eclipse.persistence.internal.core.databaseaccess.CorePlatform<org.eclipse.persistence.internal.helper.ConversionManager>, org.eclipse.persistence.internal.databaseaccess.Platform, DDLPlatform

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: org.eclipse.persistence.internal.databaseaccess.DatabasePlatform
      INTERNAL: Allow initialization from the connection.
      Overrides:
      initializeConnectionData in class MySQLPlatform
      Throws:
      SQLException
    • isMariaDB

      public boolean isMariaDB()
      Specified by:
      isMariaDB in interface org.eclipse.persistence.internal.databaseaccess.Platform
      Overrides:
      isMariaDB in class org.eclipse.persistence.internal.databaseaccess.DatasourcePlatform
    • isMySQL

      public boolean isMySQL()
      Description copied from class: MySQLPlatform
      Answers whether platform is MySQL.
      Specified by:
      isMySQL in interface org.eclipse.persistence.internal.databaseaccess.Platform
      Overrides:
      isMySQL in class MySQLPlatform
    • supportsFractionalTime

      public boolean supportsFractionalTime()
      Description copied from interface: DDLPlatform
      Override this method if the platform supports setting fractional seconds precision in a SQL time or timestamp data type.
      Specified by:
      supportsFractionalTime in interface DDLPlatform
      Overrides:
      supportsFractionalTime in class MySQLPlatform
      Returns:
      value of true when current database platform supports fractional seconds precision or false otherwise
    • supportsSequenceObjects

      public boolean supportsSequenceObjects()
      INTERNAL: Indicates whether the platform supports sequence objects.
      Overrides:
      supportsSequenceObjects in class org.eclipse.persistence.internal.databaseaccess.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.
      Throws:
      IOException
    • buildSelectQueryForSequenceObject

      public ValueReadQuery buildSelectQueryForSequenceObject(String qualifiedSeqName, Integer size)
      Description copied from class: org.eclipse.persistence.internal.databaseaccess.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 org.eclipse.persistence.internal.databaseaccess.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.
    • getDropDatabaseSchemaString

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