Module eclipselink

Class DB2MainframePlatform

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

      • DB2MainframePlatform

        public DB2MainframePlatform()
    • Method Detail

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

        protected Hashtable<Class<?>,​org.eclipse.persistence.internal.databaseaccess.FieldTypeDefinition> buildFieldTypes()
        Description copied from class: org.eclipse.persistence.internal.databaseaccess.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: org.eclipse.persistence.internal.databaseaccess.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.
        Specified by:
        getTableCreationSuffix in interface DDLPlatform
        Overrides:
        getTableCreationSuffix in class org.eclipse.persistence.internal.databaseaccess.DatabasePlatform