This provides for some additional compatibility in certain DB2 versions.
Responsibilities:
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected ExpressionOperator | |
| protected ExpressionOperator | |
| protected ExpressionOperator | betweenOperator()
DB2 z/OS requires that at least one argument be a known type With binding enabled, DB2 z/OS will throw an error: The statement string specified as the object of a PREPARE contains a predicate or expression where parameter markers have been used as operands of the same operator—for example: ? |
| protected Hashtable | buildFieldTypes()
Overrides org. |
| public String | buildProcedureCallString(StoredProcedureCall call, AbstractSession session, AbstractRecord row)
Overrides org. |
| protected ExpressionOperator | |
| protected ExpressionOperator | concatOperator()
Overrides org. With binding enabled, DB2 z/OS will throw an error: The statement cannot be executed because a parameter marker has been used in an invalid way. |
| protected ExpressionOperator | equalOperator()
DB2 z/OS requires that at least one argument be a known type With binding enabled, DB2 z/OS will throw an error: The statement string specified as the object of a PREPARE contains a predicate or expression where parameter markers have been used as operands of the same operator—for example: ? |
| protected ExpressionOperator | |
| protected ExpressionOperator | |
| public Object | getParameterValueFromDatabaseCall(CallableStatement statement, String name, AbstractSession session)
Overrides org. |
| public String | getProcedureArgument(String name, Object parameter, DatasourceCall.
Overrides org. |
| public String | getProcedureOptionList()
Overrides org. |
| public String | getTableCreationSuffix()
Overrides org. |
| public ValueReadQuery | getTimestampQuery()
Overrides org. Implements org. |
| protected ExpressionOperator | greaterThanEqualOperator()
DB2 z/OS requires that at least one argument be a known type With binding enabled, DB2 z/OS will throw an error: The statement string specified as the object of a PREPARE contains a predicate or expression where parameter markers have been used as operands of the same operator—for example: ? |
| protected ExpressionOperator | greaterThanOperator()
DB2 z/OS requires that at least one argument be a known type With binding enabled, DB2 z/OS will throw an error: The statement string specified as the object of a PREPARE contains a predicate or expression where parameter markers have been used as operands of the same operator—for example: ? |
| protected void | initializePlatformOperators()
Overrides org. |
| protected ExpressionOperator | inOperator()
DB2 z/OS requires that at least one argument be a known type With binding enabled, DB2 z/OS will throw an error: The statement string specified as the object of a PREPARE contains a predicate or expression where parameter markers have been used as operands of the same operator—for example: ? |
| public boolean | |
| protected ExpressionOperator | |
| protected ExpressionOperator | |
| protected ExpressionOperator | lessThanEqualOperator()
DB2 z/OS requires that at least one argument be a known type With binding enabled, DB2 z/OS will throw an error: The statement string specified as the object of a PREPARE contains a predicate or expression where parameter markers have been used as operands of the same operator—for example: ? |
| protected ExpressionOperator | |
| protected ExpressionOperator | likeEscapeOperator()
DB2 z/OS support for binding the LIKE ESCAPE character depends on database configuration (mixed vs DBCS). |
| protected ExpressionOperator | |
| protected ExpressionOperator | |
| protected ExpressionOperator | |
| protected ExpressionOperator | ltrim2Operator()
Overrides org. |
| protected ExpressionOperator | |
| protected ExpressionOperator | |
| protected ExpressionOperator | notBetweenOperator()
DB2 z/OS requires that at least one argument be a known type With binding enabled, DB2 z/OS will throw an error: The statement string specified as the object of a PREPARE contains a predicate or expression where parameter markers have been used as operands of the same operator—for example: ? |
| protected ExpressionOperator | notEqualOperator()
DB2 z/OS requires that at least one argument be a known type With binding enabled, DB2 z/OS will throw an error: The statement string specified as the object of a PREPARE contains a predicate or expression where parameter markers have been used as operands of the same operator—for example: ? |
| protected ExpressionOperator | notLikeEscapeOperator()
DB2 z/OS support for binding the LIKE ESCAPE character depends on database configuration (mixed vs DBCS). |
| protected ExpressionOperator | |
| public void | registerOutputParameter(CallableStatement statement, String name, int jdbcType)
Overrides org. |
| public void | registerOutputParameter(CallableStatement statement, String name, int jdbcType, String typeName)
Overrides org. |
| protected ExpressionOperator | roundOperator()
Overrides org. |
| protected ExpressionOperator | rtrim2Operator()
Overrides org. |
| protected ExpressionOperator | |
| protected void | setNullFromDatabaseField(DatabaseField databaseField, CallableStatement statement, String name)
Overrides org. |
| public void | setParameterValueInDatabaseCall(Object parameter, CallableStatement statement, String name, AbstractSession session)
Overrides org. |
| protected ExpressionOperator | |
| protected ExpressionOperator | |
| protected ExpressionOperator | |
| protected ExpressionOperator | trim2()
Overrides org. |
| protected ExpressionOperator |
| DB2_CALLABLESTATEMENT_CLASS | back to summary |
|---|---|
| private static String DB2_CALLABLESTATEMENT_CLASS | |
| DB2_PREPAREDSTATEMENT_CLASS | back to summary |
|---|---|
| private static String DB2_PREPAREDSTATEMENT_CLASS | |
| DB2ZPlatform | back to summary |
|---|---|
| public DB2ZPlatform() | |
| absOperator | back to summary |
|---|---|
| protected ExpressionOperator absOperator() Disable binding support. With binding enabled, DB2 z/OS will throw an error: The statement cannot be executed because a parameter marker has been used in an invalid way. DB2 SQL Error: SQLCODE=-418, SQLSTATE=42610 | |
| avgOperator | back to summary |
|---|---|
| protected ExpressionOperator avgOperator() Disable binding support. With binding enabled, DB2 z/OS will throw an error: The statement cannot be executed because a parameter marker has been used in an invalid way. DB2 SQL Error: SQLCODE=-418, SQLSTATE=42610 | |
| betweenOperator | back to summary |
|---|---|
| protected ExpressionOperator betweenOperator() DB2 z/OS requires that at least one argument be a known type With binding enabled, DB2 z/OS will throw an error: The statement string specified as the object of a PREPARE contains a predicate or expression where parameter markers have been used as operands of the same operator—for example: ? > ?. DB2 SQL Error: SQLCODE=-417, SQLSTATE=42609 | |
| buildFieldTypes | back to summary |
|---|---|
| protected Hashtable Overrides org. Doc from org. Return the mapping of class types to database types for the schema framework.
| |
| buildProcedureCallString | back to summary |
|---|---|
| public String buildProcedureCallString(StoredProcedureCall call, AbstractSession session, AbstractRecord row) Overrides org. INTERNAL: Used for sp calls. PostGreSQL uses a different method for executing StoredProcedures than other platforms.
| |
| ceilingOperator | back to summary |
|---|---|
| protected ExpressionOperator ceilingOperator() Disable binding support. With binding enabled, DB2 z/OS will throw an error: The statement cannot be executed because a parameter marker has been used in an invalid way. DB2 SQL Error: SQLCODE=-418, SQLSTATE=42610 | |
| concatOperator | back to summary |
|---|---|
| protected ExpressionOperator concatOperator() Overrides org. DB2 z/OS requires that at least one argument be a known type With binding enabled, DB2 z/OS will throw an error: The statement cannot be executed because a parameter marker has been used in an invalid way. DB2 SQL Error: SQLCODE=-418, SQLSTATE=42610
| |
| equalOperator | back to summary |
|---|---|
| protected ExpressionOperator equalOperator() DB2 z/OS requires that at least one argument be a known type With binding enabled, DB2 z/OS will throw an error: The statement string specified as the object of a PREPARE contains a predicate or expression where parameter markers have been used as operands of the same operator—for example: ? > ?. DB2 SQL Error: SQLCODE=-417, SQLSTATE=42609 | |
| expOperator | back to summary |
|---|---|
| protected ExpressionOperator expOperator() Disable binding support. With binding enabled, DB2 z/OS will throw an error: The statement cannot be executed because a parameter marker has been used in an invalid way. DB2 SQL Error: SQLCODE=-418, SQLSTATE=42610 | |
| floorOperator | back to summary |
|---|---|
| protected ExpressionOperator floorOperator() Disable binding support. With binding enabled, DB2 z/OS will throw an error: The statement cannot be executed because a parameter marker has been used in an invalid way. DB2 SQL Error: SQLCODE=-418, SQLSTATE=42610 | |
| getParameterValueFromDatabaseCall | back to summary |
|---|---|
| public Object getParameterValueFromDatabaseCall(CallableStatement statement, String name, AbstractSession session) throws SQLException Overrides org. Doc from org. INTERNAL Get the parameter from the JDBC statement with the given name.
| |
| getProcedureArgument | back to summary |
|---|---|
| public String getProcedureArgument(String name, Object parameter, DatasourceCall. Overrides org. Doc from org. Obtain the platform specific argument string
| |
| getProcedureOptionList | back to summary |
|---|---|
| public String getProcedureOptionList() Overrides org. DB2 on Z uses ":" as prefix for procedure arguments.
| |
| getTableCreationSuffix | back to summary |
|---|---|
| public String getTableCreationSuffix() Overrides org. Doc from org. 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.
| |
| getTimestampQuery | back to summary |
|---|---|
| public ValueReadQuery getTimestampQuery() Overrides org. Implements org. INTERNAL: This method returns the query to select the timestamp from the server for DB2.
| |
| greaterThanEqualOperator | back to summary |
|---|---|
| protected ExpressionOperator greaterThanEqualOperator() DB2 z/OS requires that at least one argument be a known type With binding enabled, DB2 z/OS will throw an error: The statement string specified as the object of a PREPARE contains a predicate or expression where parameter markers have been used as operands of the same operator—for example: ? > ?. DB2 SQL Error: SQLCODE=-417, SQLSTATE=42609 | |
| greaterThanOperator | back to summary |
|---|---|
| protected ExpressionOperator greaterThanOperator() DB2 z/OS requires that at least one argument be a known type With binding enabled, DB2 z/OS will throw an error: The statement string specified as the object of a PREPARE contains a predicate or expression where parameter markers have been used as operands of the same operator—for example: ? > ?. DB2 SQL Error: SQLCODE=-417, SQLSTATE=42609 | |
| initializePlatformOperators | back to summary |
|---|---|
| protected void initializePlatformOperators() Overrides org. INTERNAL: Initialize any platform-specific operators
| |
| inOperator | back to summary |
|---|---|
| protected ExpressionOperator inOperator() DB2 z/OS requires that at least one argument be a known type With binding enabled, DB2 z/OS will throw an error: The statement string specified as the object of a PREPARE contains a predicate or expression where parameter markers have been used as operands of the same operator—for example: ? > ?. DB2 SQL Error: SQLCODE=-417, SQLSTATE=42609 | |
| isDB2Z | back to summary |
|---|---|
| public boolean isDB2Z() Overrides org. Implements org.
| |
| isNotNullOperator | back to summary |
|---|---|
| protected ExpressionOperator isNotNullOperator() Disable binding support. With binding enabled, DB2 z/OS will throw an error: The statement string specified as the object of a PREPARE contains a predicate or expression where parameter markers have been used as operands of the same operator—for example: ? > ?. DB2 SQL Error: SQLCODE=-417, SQLSTATE=42609 | |
| isNullOperator | back to summary |
|---|---|
| protected ExpressionOperator isNullOperator() Disable binding support. With binding enabled, DB2 z/OS will throw an error: The statement string specified as the object of a PREPARE contains a predicate or expression where parameter markers have been used as operands of the same operator—for example: ? > ?. DB2 SQL Error: SQLCODE=-417, SQLSTATE=42609 | |
| lessThanEqualOperator | back to summary |
|---|---|
| protected ExpressionOperator lessThanEqualOperator() DB2 z/OS requires that at least one argument be a known type With binding enabled, DB2 z/OS will throw an error: The statement string specified as the object of a PREPARE contains a predicate or expression where parameter markers have been used as operands of the same operator—for example: ? > ?. DB2 SQL Error: SQLCODE=-417, SQLSTATE=42609 | |
| lessThanOperator | back to summary |
|---|---|
| protected ExpressionOperator lessThanOperator() Set binding support to PARTIAL. With binding enabled, DB2 z/OS will throw an error: The statement string specified as the object of a PREPARE contains a predicate or expression where parameter markers have been used as operands of the same operator—for example: ? > ?. DB2 SQL Error: SQLCODE=-417, SQLSTATE=42609 | |
| likeEscapeOperator | back to summary |
|---|---|
| protected ExpressionOperator likeEscapeOperator() DB2 z/OS support for binding the LIKE ESCAPE character depends on database configuration (mixed vs DBCS). Since we cannot know how the database in configured, we will disable parameter binding for the ESCAPE With binding enabled, DB2 z/OS will throw an error: The statement string specified as the object of a PREPARE contains a predicate or expression where parameter markers have been used as operands of the same operator for example: ? > ?. DB2 SQL Error: SQLCODE=-417, SQLSTATE=42609 | |
| lnOperator | back to summary |
|---|---|
| protected ExpressionOperator lnOperator() Disable binding support. With binding enabled, DB2 z/OS will throw an error: The statement cannot be executed because a parameter marker has been used in an invalid way. DB2 SQL Error: SQLCODE=-418, SQLSTATE=42610 | |
| locate2Operator | back to summary |
|---|---|
| protected ExpressionOperator locate2Operator() Disable binding support. With binding enabled, DB2 z/OS will throw an error: The statement cannot be executed because a parameter marker has been used in an invalid way. DB2 SQL Error: SQLCODE=-418, SQLSTATE=42610 With binding enabled, DB2 z/OS will throw an error: The data type, the length, or the value of an argument of a scalar function is incorrect. DB2 SQL Error: SQLCODE=-171, SQLSTATE=42815 | |
| locateOperator | back to summary |
|---|---|
| protected ExpressionOperator locateOperator() Disable binding support. With binding enabled, DB2 z/OS will throw an error: The statement cannot be executed because a parameter marker has been used in an invalid way. DB2 SQL Error: SQLCODE=-418, SQLSTATE=42610 With binding enabled, DB2 z/OS will throw an error: The data type, the length, or the value of an argument of a scalar function is incorrect. DB2 SQL Error: SQLCODE=-171, SQLSTATE=42815 | |
| ltrim2Operator | back to summary |
|---|---|
| protected ExpressionOperator ltrim2Operator() Overrides org. Disable binding support. With binding enabled, DB2 z/OS will throw an error: The data type, the length, or the value of an argument of a scalar function is incorrect. DB2 SQL Error: SQLCODE=-171, SQLSTATE=42815
| |
| ltrimOperator | back to summary |
|---|---|
| protected ExpressionOperator ltrimOperator() Disable binding support. With binding enabled, DB2 z/OS will throw an error: The statement cannot be executed because a parameter marker has been used in an invalid way. DB2 SQL Error: SQLCODE=-418, SQLSTATE=42610 | |
| modOperator | back to summary |
|---|---|
| protected ExpressionOperator modOperator() Disable binding support. With binding enabled, DB2 z/OS will throw an error: The statement cannot be executed because a parameter marker has been used in an invalid way. DB2 SQL Error: SQLCODE=-418, SQLSTATE=42610 With binding enabled, DB2 z/OS will throw an error: The data type, the length, or the value of an argument of a scalar function is incorrect. DB2 SQL Error: SQLCODE=-171, SQLSTATE=42815 | |
| notBetweenOperator | back to summary |
|---|---|
| protected ExpressionOperator notBetweenOperator() DB2 z/OS requires that at least one argument be a known type With binding enabled, DB2 z/OS will throw an error: The statement string specified as the object of a PREPARE contains a predicate or expression where parameter markers have been used as operands of the same operator—for example: ? > ?. DB2 SQL Error: SQLCODE=-417, SQLSTATE=42609 | |
| notEqualOperator | back to summary |
|---|---|
| protected ExpressionOperator notEqualOperator() DB2 z/OS requires that at least one argument be a known type With binding enabled, DB2 z/OS will throw an error: The statement string specified as the object of a PREPARE contains a predicate or expression where parameter markers have been used as operands of the same operator—for example: ? > ?. DB2 SQL Error: SQLCODE=-417, SQLSTATE=42609 | |
| notLikeEscapeOperator | back to summary |
|---|---|
| protected ExpressionOperator notLikeEscapeOperator() DB2 z/OS support for binding the LIKE ESCAPE character depends on database configuration (mixed vs DBCS). Since we cannot know how the database in configured, we will disable parameter binding for the ESCAPE With binding enabled, DB2 z/OS will throw an error: The statement string specified as the object of a PREPARE contains a predicate or expression where parameter markers have been used as operands of the same operator for example: ? > ?. DB2 SQL Error: SQLCODE=-417, SQLSTATE=42609 | |
| powerOperator | back to summary |
|---|---|
| protected ExpressionOperator powerOperator() Disable binding support. With binding enabled, DB2 z/OS will throw an error: The statement cannot be executed because a parameter marker has been used in an invalid way. DB2 SQL Error: SQLCODE=-418, SQLSTATE=42610 | |
| registerOutputParameter | back to summary |
|---|---|
| public void registerOutputParameter(CallableStatement statement, String name, int jdbcType) throws SQLException Overrides org. This method is used to register output parameter on Callable Statements for Stored Procedures as each database seems to have a different method.
| |
| registerOutputParameter | back to summary |
|---|---|
| public void registerOutputParameter(CallableStatement statement, String name, int jdbcType, String typeName) throws SQLException Overrides org. This method is used to register output parameter on Callable Statements for Stored Procedures as each database seems to have a different method.
| |
| roundOperator | back to summary |
|---|---|
| protected ExpressionOperator roundOperator() Overrides org. Disable binding support. With binding enabled, DB2 z/OS will throw an error: The data type, the length, or the value of an argument of a scalar function is incorrect. DB2 SQL Error: SQLCODE=-171, SQLSTATE=42815
| |
| rtrim2Operator | back to summary |
|---|---|
| protected ExpressionOperator rtrim2Operator() Overrides org. Disable binding support. With binding enabled, DB2 z/OS will throw an error: The data type, the length, or the value of an argument of a scalar function is incorrect. DB2 SQL Error: SQLCODE=-171, SQLSTATE=42815
| |
| rtrimOperator | back to summary |
|---|---|
| protected ExpressionOperator rtrimOperator() Disable binding support. With binding enabled, DB2 z/OS will throw an error: The statement cannot be executed because a parameter marker has been used in an invalid way. DB2 SQL Error: SQLCODE=-418, SQLSTATE=42610 | |
| setNullFromDatabaseField | back to summary |
|---|---|
| protected void setNullFromDatabaseField(DatabaseField databaseField, CallableStatement statement, String name) throws SQLException Overrides org.
| |
| setParameterValueInDatabaseCall | back to summary |
|---|---|
| public void setParameterValueInDatabaseCall(Object parameter, CallableStatement statement, String name, AbstractSession session) throws SQLException Overrides org. Doc from org. INTERNAL Set the parameter in the JDBC statement with the given name. This support a wide range of different parameter types, and is heavily optimized for common types.
| |
| signOperator | back to summary |
|---|---|
| protected ExpressionOperator signOperator() Disable binding support. With binding enabled, DB2 z/OS will throw an error: The statement cannot be executed because a parameter marker has been used in an invalid way. DB2 SQL Error: SQLCODE=-418, SQLSTATE=42610 | |
| sqrtOperator | back to summary |
|---|---|
| protected ExpressionOperator sqrtOperator() Disable binding support. With binding enabled, DB2 z/OS will throw an error: The statement cannot be executed because a parameter marker has been used in an invalid way. DB2 SQL Error: SQLCODE=-418, SQLSTATE=42610 | |
| sumOperator | back to summary |
|---|---|
| protected ExpressionOperator sumOperator() Disable binding support. With binding enabled, DB2 z/OS will throw an error: The statement cannot be executed because a parameter marker has been used in an invalid way. DB2 SQL Error: SQLCODE=-418, SQLSTATE=42610 | |
| trim2 | back to summary |
|---|---|
| protected ExpressionOperator trim2() Overrides org. Disable binding support. With binding enabled, DB2 z/OS will throw an error: The data type, the length, or the value of an argument of a scalar function is incorrect. DB2 SQL Error: SQLCODE=-171, SQLSTATE=42815
| |
| trimOperator | back to summary |
|---|---|
| protected ExpressionOperator trimOperator() Disable binding support. With binding enabled, DB2 z/OS will throw an error: The statement cannot be executed because a parameter marker has been used in an invalid way. DB2 SQL Error: SQLCODE=-418, SQLSTATE=42610 | |