org.apache.derby.impl.sql.execute
Class BaseExpressionActivation

java.lang.Object
  extended byorg.apache.derby.impl.sql.execute.BaseExpressionActivation

public abstract class BaseExpressionActivation
extends java.lang.Object

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


Constructor Summary
(package private) BaseExpressionActivation()
           
 
Method Summary
static DataValueDescriptor maxValue(DataValueDescriptor v1, DataValueDescriptor v2, DataValueDescriptor v3, DataValueDescriptor v4, int judgeTypeFormatId, int judgeUserJDBCTypeId)
          Get the maximum value of 4 input values.
static DataValueDescriptor minValue(DataValueDescriptor v1, DataValueDescriptor v2, DataValueDescriptor v3, DataValueDescriptor v4, int judgeTypeFormatId, int judgeUserJDBCTypeId)
          Get the minimum value of 4 input values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseExpressionActivation

BaseExpressionActivation()
Method Detail

minValue

public static DataValueDescriptor minValue(DataValueDescriptor v1,
                                           DataValueDescriptor v2,
                                           DataValueDescriptor v3,
                                           DataValueDescriptor v4,
                                           int judgeTypeFormatId,
                                           int judgeUserJDBCTypeId)
                                    throws StandardException
Get the minimum value of 4 input values. If less than 4 values, input NULL. 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.

Parameters:
v1 - 1st value
v2 - 2nd value
v3 - 3rd value
v4 - 4th value
judgeTypeFormatId - type format id of the judge
judgeUserJDBCTypeId - JDBC type id if judge is user type; -1 if not user type
Returns:
The minimum value of the 4.
Throws:
StandardException

maxValue

public static DataValueDescriptor maxValue(DataValueDescriptor v1,
                                           DataValueDescriptor v2,
                                           DataValueDescriptor v3,
                                           DataValueDescriptor v4,
                                           int judgeTypeFormatId,
                                           int judgeUserJDBCTypeId)
                                    throws StandardException
Get the maximum value of 4 input values. If less than 4 values, input NULL. 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.

Parameters:
v1 - 1st value
v2 - 2nd value
v3 - 3rd value
v4 - 4th value
judgeTypeFormatId - type format id of the judge
judgeUserJDBCTypeId - JDBC type id if judge is user type; -1 if not user type
Returns:
The maximum value of the 4.
Throws:
StandardException

Built on Mon 2007-06-04 09:58:47+0400, from revision ???

Apache Derby V10.1 Engine Documentation - Copyright © 1997,2005 The Apache Software Foundation or its licensors, as applicable.