Class DropDependencyFilter
java.lang.Object
org.apache.derby.impl.sql.catalog.DropDependencyFilter
- All Implemented Interfaces:
TupleFilter
A Filter to qualify tuples coming from a scan of SYSDEPENDS.
Tuples qualify if they have the right providerID.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) DataValueFactory(package private) BooleanDataValue(package private) UUID///////////////////////////////////////////////////////////////////////////////////(package private) BooleanDataValue(package private) UUIDFactory -
Constructor Summary
ConstructorsConstructorDescriptionDropDependencyFilter(UUID providerID) Construct a TupleFilter to qualify SYSDEPENDS rows with the designated providerID. -
Method Summary
Modifier and TypeMethodDescriptionPump a SYSDEPENDS row through the Filter.private BooleanDataValueGets a BooleanDataValue representing FALSEprivate BooleanDataValueGets a BooleanDataValue representing TRUE.private UUIDFactoryGet the UUID factoryvoidInitialize a Filter with a vector of parameters.
-
Field Details
-
providerID
UUID providerID/////////////////////////////////////////////////////////////////////////////////// -
uuidFactory
UUIDFactory uuidFactory -
dataValueFactory
DataValueFactory dataValueFactory -
trueValue
BooleanDataValue trueValue -
falseValue
BooleanDataValue falseValue
-
-
Constructor Details
-
DropDependencyFilter
Construct a TupleFilter to qualify SYSDEPENDS rows with the designated providerID.- Parameters:
providerID- UUID of provider. Tuples with this ID qualify.
-
-
Method Details
-
init
Initialize a Filter with a vector of parameters. This is a NOP. We initialize this filter at Constructor time.- Specified by:
initin interfaceTupleFilter- Parameters:
parameters- An ExecRow of parameter values- Throws:
StandardException- Thrown on error
-
execute
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:
executein interfaceTupleFilter- Parameters:
currentRow- SYSDEPENDS row- Returns:
- True if the row has our providerID. False otherwise.
- Throws:
StandardException- Thrown on error
-
getUUIDFactory
Get the UUID factory- Returns:
- the UUID factory
- Throws:
StandardException- thrown on failure
-
getTrueValue
Gets a BooleanDataValue representing TRUE.- Returns:
- a TRUE value
- Throws:
StandardException- Thrown on error
-
getFalseValue
Gets a BooleanDataValue representing FALSE- Returns:
- a FALSE value
- Throws:
StandardException- Thrown on error
-