Top Description Constructors Methods
org.apache.derby.impl.sql.execute

public abstract Class BaseExpressionActivation

extends Object
Class Inheritance
Imports
org.apache.derby.catalog.types.UserDefinedTypeIdImpl, org.apache.derby.shared.common.error.StandardException, org.apache.derby.iapi.types.DataTypeDescriptor, .DataValueDescriptor, .TypeId

BaseExpressionActivation Support needed by Expression evaluators (Filters) and by ResultSet materializers (Activations)

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public static DataValueDescriptor

Returns:

The maximum value of the 4.
maxValue
(DataValueDescriptor
1st value
v1
,
DataValueDescriptor
2nd value
v2
,
DataValueDescriptor
3rd value
v3
,
DataValueDescriptor
4th value
v4
,
int
type format id of the judge
judgeTypeFormatId
,
int
JDBC type id if judge is user type; -1 if not user type
judgeUserJDBCTypeId
,
int judgePrecision, int judgeScale, boolean judgeIsNullable, int judgeMaximumWidth, int judgeCollationType, int judgeCollationDerivation)

Get the maximum value of 4 input values.

public static DataValueDescriptor

Returns:

The minimum value of the 4.
minValue
(DataValueDescriptor
1st value
v1
,
DataValueDescriptor
2nd value
v2
,
DataValueDescriptor
3rd value
v3
,
DataValueDescriptor
4th value
v4
,
int
type format id of the judge
judgeTypeFormatId
,
int
JDBC type id if judge is user type; -1 if not user type
judgeUserJDBCTypeId
,
int
precision of the judge
judgePrecision
,
int
scale of the judge
judgeScale
,
boolean
nullability of the judge
judgeIsNullable
,
int
maximum width of the judge
judgeMaximumWidth
,
int
collation type of the judge
judgeCollationType
,
int
collation derivation of the judge
judgeCollationDerivation
)

Get the minimum value of 4 input values.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

BaseExpressionActivationback to summary
pack-priv BaseExpressionActivation()

Method Detail

maxValueback to summary
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.

Parameters
v1:DataValueDescriptor

1st value

v2:DataValueDescriptor

2nd value

v3:DataValueDescriptor

3rd value

v4:DataValueDescriptor

4th value

judgeTypeFormatId:int

type format id of the judge

judgeUserJDBCTypeId:int

JDBC type id if judge is user type; -1 if not user type

Returns:DataValueDescriptor

The maximum value of the 4.

minValueback to summary
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.

Parameters
v1:DataValueDescriptor

1st value

v2:DataValueDescriptor

2nd value

v3:DataValueDescriptor

3rd value

v4:DataValueDescriptor

4th value

judgeTypeFormatId:int

type format id of the judge

judgeUserJDBCTypeId:int

JDBC type id if judge is user type; -1 if not user type

judgePrecision:int

precision of the judge

judgeScale:int

scale of the judge

judgeIsNullable:boolean

nullability of the judge

judgeMaximumWidth:int

maximum width of the judge

judgeCollationType:int

collation type of the judge

judgeCollationDerivation:int

collation derivation of the judge

Returns:DataValueDescriptor

The minimum value of the 4.