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

public Class DB2MainframePlatform

extends DB2Platform
Class Inheritance
Imports
java.util.Hashtable, org.eclipse.persistence.expressions.ExpressionOperator, org.eclipse.persistence.internal.databaseaccess.FieldTypeDefinition

Purpose: Provides DB2 Mainframe specific behavior.

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

Since
TopLink 3.0.3

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected Hashtable<Class<?>, FieldTypeDefinition>
buildFieldTypes()

Overrides org.eclipse.persistence.platform.database.DB2Platform.buildFieldTypes.

Return the mapping of class types to database types for the schema framework.
public String
public String
getTableCreationSuffix()

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

PUBLIC: Get the String used on all table creation statements generated from the DefaultTableGenerator with a session using this project (DDL generation).
protected void
public boolean
supportsOuterJoinsWithBrackets()

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

INTERNAL: Return if brackets can be used in the ON clause for outer joins.
Inherited from org.eclipse.persistence.platform.database.DB2Platform:
allowBindingForSelectClauseappendByteArrayappendCalendarappendDateappendDB2CalendarappendDB2DateappendDB2TimestampappendTimeappendTimestampascendingOperatorbuildSelectQueryForIdentitybuildSelectQueryForSequenceObjectcaseConditionOperatorcaseOperatorcoalesceOperatorconcatOperatorcountdescendingOperatordisableAllBindingExpressiondisableAtLeast1BindingExpressiondistinctdontBindUpdateAllQueryUsingTempTablesgetCreateTempTableSqlBodyForTablegetCreateTempTableSqlPrefixgetCreateTempTableSqlSuffixgetMaxFieldNameSizegetMaxForeignKeyNameSizegetMaxUniqueKeyNameSizegetNativeTableInfogetNoWaitStringgetProcedureArgumentgetProcedureAsStringgetProcedureBeginStringgetProcedureCallHeadergetProcedureEndStringgetTempTableForTablegetTimestampQueryinitializeConnectionDataisAlterSequenceObjectSupportedisDB2isDynamicSQLRequiredForFunctionsisNullAllowedInSelectClauselengthOperatorltrim2OperatormaxmaximumNumericValuesminminimumNumericValuesnullifOperatorprintFieldIdentityClauseprintFieldTypeSizeprintSQLSelectStatementroundOperatorrtrim2OperatorshouldBindPartialParametersshouldIgnoreExceptionshouldPrintForUpdateClauseshouldPrintOutputTokenAtStartshouldUseJDBCOuterJoinSyntaxsupportsGlobalTempTablessupportsIdentitysupportsLockingQueriesWithMultipleTablessupportsOrderByParameterssupportsSequenceObjectstrim2writeParameterMarker

Constructor Detail

DB2MainframePlatformback to summary
public DB2MainframePlatform()

Method Detail

buildFieldTypesback to summary
protected Hashtable<Class<?>, FieldTypeDefinition> buildFieldTypes()

Overrides org.eclipse.persistence.platform.database.DB2Platform.buildFieldTypes.

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

Return the mapping of class types to database types for the schema framework.

Annotations
@Override
getSelectForUpdateStringback to summary
public String getSelectForUpdateString()

Overrides org.eclipse.persistence.platform.database.DB2Platform.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.

Annotations
@Override
getTableCreationSuffixback to summary
public String getTableCreationSuffix()

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

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

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.

Annotations
@Override
initializePlatformOperatorsback to summary
protected void initializePlatformOperators()

Overrides org.eclipse.persistence.platform.database.DB2Platform.initializePlatformOperators.

Initialize any platform-specific operators

Annotations
@Override
supportsOuterJoinsWithBracketsback to summary
public boolean supportsOuterJoinsWithBrackets()

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

INTERNAL: Return if brackets can be used in the ON clause for outer joins. Some DB2 versions on OS390 do not allow this.

Annotations
@Override