Top Description Constructors Methods
org.eclipse.persistence.platform.database

public Class MariaDBPlatform

extends MySQLPlatform
Class Inheritance
Imports
org.eclipse.persistence.queries.ValueReadQuery, java.io.IOException, .Writer, java.sql.Connection, .SQLException

Purpose: Provides MariaDB specific behavior.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ValueReadQuery
buildSelectQueryForSequenceObject(String qualifiedSeqName, Integer size)

Overrides org.eclipse.persistence.internal.databaseaccess.DatasourcePlatform.buildSelectQueryForSequenceObject.

INTERNAL: Returns query used to read value generated by sequence object (like Oracle sequence).
public Writer
buildSequenceObjectCreationWriter(Writer writer, String fullSeqName, int increment, int start)

Overrides org.eclipse.persistence.internal.databaseaccess.DatabasePlatform.buildSequenceObjectCreationWriter.

INTERNAL: Returns query used to read value generated by sequence object (like Oracle sequence).
public String
public void
initializeConnectionData(Connection connection)

Overrides org.eclipse.persistence.platform.database.MySQLPlatform.initializeConnectionData.

INTERNAL: Allow initialization from the connection.
public boolean
isAlterSequenceObjectSupported()

Overrides org.eclipse.persistence.internal.databaseaccess.DatabasePlatform.isAlterSequenceObjectSupported.

INTERNAL: Override this method if the platform supports sequence objects and it's possible to alter sequence object's increment in the database.
public boolean
public boolean
public boolean
public boolean
supportsSequenceObjects()

Overrides org.eclipse.persistence.internal.databaseaccess.DatasourcePlatform.supportsSequenceObjects.

INTERNAL: Indicates whether the platform supports sequence objects.
Inherited from org.eclipse.persistence.platform.database.MySQLPlatform:
appendCalendarappendDateappendTimeappendTimestampbuildFieldTypesbuildProcedureCallStringbuildSelectQueryForIdentitycanBatchWriteWithOptimisticLockingcheckTableExistscomputeMaxRowsForSQLcurrentDateOperatorcurrentTimecurrentTimeStampdateToStringOperatorgetConstraintDeletionStringgetCreateTempTableSqlPrefixgetFunctionCallHeadergetInOutputProcedureTokengetJDBCTypegetProcedureAsStringgetProcedureBeginStringgetProcedureCallHeadergetProcedureCallTailgetProcedureEndStringgetSelectForUpdateStringgetTableExistsQuerygetTimestampQuerygetUniqueConstraintDeletionStringgetUUIDQueryinitializePlatformOperatorsisForUpdateCompatibleWithDistinctleftTrim2localDateTimelocalTimelogOperatorprintFieldIdentityClauseprintSQLSelectStatementprintStoredFunctionReturnKeyWordrequiresProcedureBracketsrequiresTableInIndexDropDDLrightTrim2shouldAlwaysUseTempStorageForModifyAllshouldPrintForUpdateClauseshouldPrintOutputTokenAtStartshouldPrintStoredProcedureArgumentNameInCallshouldUseJDBCOuterJoinSyntaxsupportsAutoConversionToNumericForArithmeticOperationssupportsCountDistinctWithMultipleFieldssupportsGlobalTempTablessupportsIdentitysupportsIndividualTableLockingsupportsStoredFunctionstoCharOperatortoDateOperatortodaytoNumberOperatorwriteDeleteFromTargetTableUsingTempTableSqlwriteParameterMarkerwriteUpdateOriginalFromTempTableSql

Constructor Detail

MariaDBPlatformback to summary
public MariaDBPlatform()

Method Detail

buildSelectQueryForSequenceObjectback to summary
public ValueReadQuery buildSelectQueryForSequenceObject(String qualifiedSeqName, Integer size)

Overrides org.eclipse.persistence.internal.databaseaccess.DatasourcePlatform.buildSelectQueryForSequenceObject.

Doc from org.eclipse.persistence.internal.databaseaccess.DatasourcePlatform.buildSelectQueryForSequenceObject.

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.

Annotations
@Override
buildSequenceObjectCreationWriterback to summary
public Writer buildSequenceObjectCreationWriter(Writer writer, String fullSeqName, int increment, int start) throws IOException

Overrides org.eclipse.persistence.internal.databaseaccess.DatabasePlatform.buildSequenceObjectCreationWriter.

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.

Annotations
@Override
getDropDatabaseSchemaStringback to summary
public String getDropDatabaseSchemaString(String schema)

Overrides org.eclipse.persistence.platform.database.MySQLPlatform.getDropDatabaseSchemaString.

Return the drop schema definition. Subclasses should override as needed.

Annotations
@Override
initializeConnectionDataback to summary
public void initializeConnectionData(Connection connection) throws SQLException

Overrides org.eclipse.persistence.platform.database.MySQLPlatform.initializeConnectionData.

Doc from org.eclipse.persistence.internal.databaseaccess.DatabasePlatform.initializeConnectionData.

INTERNAL: Allow initialization from the connection.

Annotations
@Override
isAlterSequenceObjectSupportedback to summary
public boolean isAlterSequenceObjectSupported()

Overrides org.eclipse.persistence.internal.databaseaccess.DatabasePlatform.isAlterSequenceObjectSupported.

INTERNAL: Override this method if the platform supports sequence objects and it's possible to alter sequence object's increment in the database.

Annotations
@Override
isFractionalTimeSupportedback to summary
public boolean isFractionalTimeSupported()

Overrides org.eclipse.persistence.platform.database.MySQLPlatform.isFractionalTimeSupported.

Annotations
@Override
isMariaDBback to summary
public boolean isMariaDB()

Overrides org.eclipse.persistence.internal.databaseaccess.DatasourcePlatform.isMariaDB.

Implements org.eclipse.persistence.internal.databaseaccess.Platform.isMariaDB.

Annotations
@Override
isMySQLback to summary
public boolean isMySQL()

Overrides org.eclipse.persistence.platform.database.MySQLPlatform.isMySQL.

Implements org.eclipse.persistence.internal.databaseaccess.Platform.isMySQL.

Doc from org.eclipse.persistence.platform.database.MySQLPlatform.isMySQL.

Answers whether platform is MySQL.

Annotations
@Override
supportsSequenceObjectsback to summary
public boolean supportsSequenceObjects()

Overrides org.eclipse.persistence.internal.databaseaccess.DatasourcePlatform.supportsSequenceObjects.

INTERNAL: Indicates whether the platform supports sequence objects.

Annotations
@Override