Class DropDependencyFilter
- java.lang.Object
-
- org.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.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) DataValueFactory
dataValueFactory
(package private) BooleanDataValue
falseValue
(package private) UUID
providerID
(package private) BooleanDataValue
trueValue
(package private) UUIDFactory
uuidFactory
-
Constructor Summary
Constructors Constructor Description DropDependencyFilter(UUID providerID)
Construct a TupleFilter to qualify SYSDEPENDS rows with the designated providerID.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanDataValue
execute(ExecRow currentRow)
Pump a SYSDEPENDS row through the Filter.private BooleanDataValue
getFalseValue()
Gets a BooleanDataValue representing FALSEprivate BooleanDataValue
getTrueValue()
Gets a BooleanDataValue representing TRUE.private UUIDFactory
getUUIDFactory()
Get the UUID factoryvoid
init(ExecRow parameters)
Initialize a Filter with a vector of parameters.
-
-
-
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 interfaceTupleFilter
- 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 interfaceTupleFilter
- Parameters:
currentRow
- SYSDEPENDS row- 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
-
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
-
-