org.apache.derby.impl.sql.catalog
Class DropDependencyFilter

java.lang.Object
  extended byorg.apache.derby.impl.sql.catalog.DropDependencyFilter
All Implemented Interfaces:
TupleFilter

public class DropDependencyFilter
extends java.lang.Object
implements TupleFilter

A Filter to qualify tuples coming from a scan of SYSDEPENDS. Tuples qualify if they have the right providerID.

Author:
Rick

Field Summary
(package private)  DataValueFactory dataValueFactory
           
(package private)  BooleanDataValue falseValue
           
(package private)  UUID providerID
           
(package private)  BooleanDataValue trueValue
           
(package private)  UUIDFactory uuidFactory
           
 
Constructor Summary
DropDependencyFilter(UUID providerID)
          Construct a TupleFilter to qualify SYSDEPENDS rows with the designated providerID.
 
Method Summary
 BooleanDataValue execute(ExecRow currentRow)
          Pump a SYSDEPENDS row through the Filter.
private  DataValueFactory getDataValueFactory()
          Gets the DataValueFactory for this connection.
private  BooleanDataValue getFalseValue()
          Gets a BooleanDataValue representing FALSE
private  BooleanDataValue getTrueValue()
          Gets a BooleanDataValue representing TRUE.
private  UUIDFactory getUUIDFactory()
          Get the UUID factory
 void init(ExecRow parameters)
          Initialize a Filter with a vector of parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

providerID

UUID providerID

uuidFactory

UUIDFactory uuidFactory

dataValueFactory

DataValueFactory dataValueFactory

trueValue

BooleanDataValue trueValue

falseValue

BooleanDataValue falseValue
Constructor Detail

DropDependencyFilter

public DropDependencyFilter(UUID providerID)
Construct a TupleFilter to qualify SYSDEPENDS rows with the designated providerID.

Parameters:
providerID - UUID of provider. Tuples with this ID qualify.
Method Detail

init

public void init(ExecRow parameters)
          throws StandardException
Initialize a Filter with a vector of parameters. This is a NOP. We initialize this filter at Constructor time.

Specified by:
init in interface TupleFilter
Parameters:
parameters - An ExecRow of parameter values
Throws:
StandardException - Thrown on error

execute

public BooleanDataValue execute(ExecRow currentRow)
                         throws StandardException
Pump a SYSDEPENDS row through the Filter. If the providerID of the row matches our providerID, we return true. Otherwise we return false.

Specified by:
execute in interface TupleFilter
Returns:
True if the row has our providerID. False otherwise.
Throws:
StandardException - Thrown on error

getUUIDFactory

private UUIDFactory getUUIDFactory()
                            throws StandardException
Get the UUID factory

Returns:
the UUID factory
Throws:
StandardException - thrown on failure

getDataValueFactory

private DataValueFactory getDataValueFactory()
Gets the DataValueFactory for this connection.

Returns:
the data value factory for this connection

getTrueValue

private BooleanDataValue getTrueValue()
                               throws StandardException
Gets a BooleanDataValue representing TRUE.

Returns:
a TRUE value
Throws:
StandardException - Thrown on error

getFalseValue

private BooleanDataValue getFalseValue()
                                throws StandardException
Gets a BooleanDataValue representing FALSE

Returns:
a FALSE value
Throws:
StandardException - Thrown on error

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.