public abstract class BaseExpressionActivation
extends java.lang.Object
Constructor and Description |
---|
BaseExpressionActivation() |
Modifier and Type | Method and Description |
---|---|
static DataValueDescriptor |
maxValue(DataValueDescriptor v1,
DataValueDescriptor v2,
DataValueDescriptor v3,
DataValueDescriptor v4,
int judgeTypeFormatId,
int judgeUserJDBCTypeId,
int judgePrecision,
int judgeScale,
boolean judgeIsNullable,
int judgeMaximumWidth,
int judgeCollationType,
int judgeCollationDerivation)
Get the maximum value of 4 input values.
|
static DataValueDescriptor |
minValue(DataValueDescriptor v1,
DataValueDescriptor v2,
DataValueDescriptor v3,
DataValueDescriptor v4,
int judgeTypeFormatId,
int judgeUserJDBCTypeId,
int judgePrecision,
int judgeScale,
boolean judgeIsNullable,
int judgeMaximumWidth,
int judgeCollationType,
int judgeCollationDerivation)
Get the minimum value of 4 input values.
|
public static DataValueDescriptor minValue(DataValueDescriptor v1, DataValueDescriptor v2, DataValueDescriptor v3, DataValueDescriptor v4, int judgeTypeFormatId, int judgeUserJDBCTypeId, int judgePrecision, int judgeScale, boolean judgeIsNullable, int judgeMaximumWidth, int judgeCollationType, int judgeCollationDerivation) throws StandardException
Get the minimum value of 4 input values. If less than 4 values, input
null
for the unused parameters and place them at the end.
If more than 4 input values, call this multiple times to
accumulate results. Also have judge's type as parameter to have a base
upon which the comparison is based. An example use is for code
generation in bug 3858.
If all the input values are SQL NULL, return SQL NULL. Otherwise, return the minimum value of the non-NULL inputs.
v1
- 1st valuev2
- 2nd valuev3
- 3rd valuev4
- 4th valuejudgeTypeFormatId
- type format id of the judgejudgeUserJDBCTypeId
- JDBC type id if judge is user type;
-1 if not user typejudgePrecision
- precision of the judgejudgeScale
- scale of the judgejudgeIsNullable
- nullability of the judgejudgeMaximumWidth
- maximum width of the judgejudgeCollationType
- collation type of the judgejudgeCollationDerivation
- collation derivation of the judgeStandardException
public static DataValueDescriptor maxValue(DataValueDescriptor v1, DataValueDescriptor v2, DataValueDescriptor v3, DataValueDescriptor v4, int judgeTypeFormatId, int judgeUserJDBCTypeId, int judgePrecision, int judgeScale, boolean judgeIsNullable, int judgeMaximumWidth, int judgeCollationType, int judgeCollationDerivation) throws StandardException
Get the maximum value of 4 input values. If less than 4 values, input
null
for the unused parameters and place them at the end.
If more than 4 input values, call this multiple times to
accumulate results. Also have judge's type as parameter to have a base
upon which the comparison is based. An example use is for code
generation in bug 3858.
If all the input values are SQL NULL, return SQL NULL. Otherwise, return the maximum value of the non-NULL inputs.
v1
- 1st valuev2
- 2nd valuev3
- 3rd valuev4
- 4th valuejudgeTypeFormatId
- type format id of the judgejudgeUserJDBCTypeId
- JDBC type id if judge is user type;
-1 if not user typeStandardException
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.