/** * Gets a BooleanDataValue representing TRUE. * * @return a TRUE value * @exception StandardException Thrown on error */ private BooleanDataValue getTrueValue() throws StandardException { if ( trueValue == null ) { trueValue = getDataValueFactory().getDataValue( true ); } return trueValue; }
/** * Pump a SYSDEPENDS row through the Filter. If the providerID of the * row matches our providerID, we return true. Otherwise we return false. * * @param currentRow SYSDEPENDS row * * @return True if the row has our providerID. False otherwise. * * @exception StandardException Thrown on error */ public BooleanDataValue execute( ExecRow currentRow ) throws StandardException { /* 3rd column is PROVIDERID (UUID - char(36)) */ DataValueDescriptor col = currentRow.getColumn(SYSDEPENDSRowFactory.SYSDEPENDS_PROVIDERID); String providerIDstring = col.getString(); UUID providerUUID = getUUIDFactory().recreateUUID(providerIDstring); if ( providerID.equals( providerUUID ) ) { return getTrueValue(); } else { return getFalseValue(); } }
TupleFilter filter = new DropDependencyFilter( providerID );
TupleFilter filter = new DropDependencyFilter( providerID );
/** * Pump a SYSDEPENDS row through the Filter. If the providerID of the * row matches our providerID, we return true. Otherwise we return false. * * @param currentRow SYSDEPENDS row * * @return True if the row has our providerID. False otherwise. * * @exception StandardException Thrown on error */ public BooleanDataValue execute( ExecRow currentRow ) throws StandardException { /* 3rd column is PROVIDERID (UUID - char(36)) */ DataValueDescriptor col = currentRow.getColumn(SYSDEPENDSRowFactory.SYSDEPENDS_PROVIDERID); String providerIDstring = col.getString(); UUID providerUUID = getUUIDFactory().recreateUUID(providerIDstring); if ( providerID.equals( providerUUID ) ) { return getTrueValue(); } else { return getFalseValue(); } }
/** * Gets a BooleanDataValue representing TRUE. * * @return a TRUE value * @exception StandardException Thrown on error */ private BooleanDataValue getTrueValue() throws StandardException { if ( trueValue == null ) { trueValue = getDataValueFactory().getDataValue( true ); } return trueValue; }
TupleFilter filter = new DropDependencyFilter( providerID );
/** * Pump a SYSDEPENDS row through the Filter. If the providerID of the * row matches our providerID, we return true. Otherwise we return false. * * @param currentRow SYSDEPENDS row * * @return True if the row has our providerID. False otherwise. * * @exception StandardException Thrown on error */ public BooleanDataValue execute( ExecRow currentRow ) throws StandardException { /* 3rd column is PROVIDERID (UUID - char(36)) */ DataValueDescriptor col = currentRow.getColumn(SYSDEPENDSRowFactory.SYSDEPENDS_PROVIDERID); String providerIDstring = col.getString(); UUID providerUUID = getUUIDFactory().recreateUUID(providerIDstring); if ( providerID.equals( providerUUID ) ) { return getTrueValue(); } else { return getFalseValue(); } }
/** * Gets a BooleanDataValue representing FALSE * * @return a FALSE value * @exception StandardException Thrown on error */ private BooleanDataValue getFalseValue() throws StandardException { if ( falseValue == null ) { falseValue = getDataValueFactory().getDataValue( false ); } return falseValue; }
/** * Gets a BooleanDataValue representing FALSE * * @return a FALSE value * @exception StandardException Thrown on error */ private BooleanDataValue getFalseValue() throws StandardException { if ( falseValue == null ) { falseValue = getDataValueFactory().getDataValue( false ); } return falseValue; }
/** * Gets a BooleanDataValue representing TRUE. * * @return a TRUE value * @exception StandardException Thrown on error */ private BooleanDataValue getTrueValue() throws StandardException { if ( trueValue == null ) { trueValue = getDataValueFactory().getDataValue( true ); } return trueValue; }
/** * Gets a BooleanDataValue representing FALSE * * @return a FALSE value * @exception StandardException Thrown on error */ private BooleanDataValue getFalseValue() throws StandardException { if ( falseValue == null ) { falseValue = getDataValueFactory().getDataValue( false ); } return falseValue; }