Class DB2MainframePlatform

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

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
Since:
TopLink 3.0.3
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 DatabasePlatform
    • buildFieldTypes

      protected Hashtable<Class<?>,FieldTypeDefinition> buildFieldTypes()
      Description copied from class: DatabasePlatform
      Return the mapping of class types to database types for the schema framework.
      Overrides:
      buildFieldTypes in class DB2Platform
    • getTableCreationSuffix

      public String getTableCreationSuffix()
      Description copied from class: DatabasePlatform
      PUBLIC: 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.
      Overrides:
      getTableCreationSuffix in class DatabasePlatform