Module eclipselink

Class DB2MainframePlatform

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 DB2MainframePlatform extends DB2Platform
Purpose: Provides DB2 Mainframe specific behavior.

This provides for some additional compatibility in certain DB2 versions on OS390. Responsibilities:

  • Specialized CONCAT syntax
See Also:
  • Constructor Details

    • DB2MainframePlatform

      public DB2MainframePlatform()
  • Method Details

    • initializePlatformOperators

      protected void initializePlatformOperators()
      Initialize any platform-specific operators
      Overrides:
      initializePlatformOperators in class DB2Platform
    • getSelectForUpdateString

      public String getSelectForUpdateString()
      INTERNAL: Used for pessimistic locking in DB2. Without the "WITH RS" the lock is not held. AS/400 does not support UPDATE type lock, so EXCLUSIVE is used instead.
      Overrides:
      getSelectForUpdateString in class DB2Platform
    • supportsOuterJoinsWithBrackets

      public boolean supportsOuterJoinsWithBrackets()
      INTERNAL: Return if brackets can be used in the ON clause for outer joins. Some DB2 versions on OS390 do not allow this.
      Overrides:
      supportsOuterJoinsWithBrackets in class org.eclipse.persistence.internal.databaseaccess.DatabasePlatform
    • buildDatabaseTypes

      protected Map<Class<?>,FieldDefinition.DatabaseType> buildDatabaseTypes()
      Description copied from class: org.eclipse.persistence.internal.databaseaccess.DatabasePlatform
      Return the mapping of class types to database types for the schema framework.
      Overrides:
      buildDatabaseTypes in class DB2Platform
    • getTableCreationSuffix

      public String getTableCreationSuffix()
      Description copied from class: org.eclipse.persistence.internal.databaseaccess.DatabasePlatform
      Get the String used on all table creation statements generated from the DefaultTableGenerator with a session using this project (DDL generation). This value will be appended to CreationSuffix strings stored on the DatabaseTable or TableDefinition.
      Specified by:
      getTableCreationSuffix in interface DDLPlatform
      Overrides:
      getTableCreationSuffix in class org.eclipse.persistence.internal.databaseaccess.DatabasePlatform