Module eclipselink

Class MariaDBPlatform

  • 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:
    Serialized Form
    • Constructor Detail

      • MariaDBPlatform

        public MariaDBPlatform()
    • Method Detail

      • 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
      • 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.