com.northconcepts.datapipeline.validate
Class ValidatingReader
java.lang.Object
com.northconcepts.datapipeline.core.DataEndpoint
com.northconcepts.datapipeline.core.DataReader
com.northconcepts.datapipeline.core.ProxyReader
com.northconcepts.datapipeline.filter.FilteringReader
com.northconcepts.datapipeline.validate.ValidatingReader
public class ValidatingReader
- extends FilteringReader
A proxy that validates records by applying a set of filters.
| Methods inherited from class com.northconcepts.datapipeline.core.DataEndpoint |
assertNotOpened, assertOpened, decrementRecordCount, exception, exception, exception, finalize, getDescription, getRecordCount, getRecordCountAsBigInteger, getRecordCountAsString, getState, incrementRecordCount, isClosed, isOpen, isRecordCountBigInteger, resetRecordCount, setDescription, toString |
ValidatingReader
public ValidatingReader(DataReader reader)
isExceptionOnFailure
public boolean isExceptionOnFailure()
setExceptionOnFailure
public ValidatingReader setExceptionOnFailure(boolean exceptionOnFailure)
isRecordStackTraceInMessage
public boolean isRecordStackTraceInMessage()
setRecordStackTraceInMessage
public ValidatingReader setRecordStackTraceInMessage(boolean recordStackTraceInMessage)
discard
protected Record discard(Record record,
Filter filter)
- Overrides:
discard in class FilteringReader
addExceptionProperties
public DataException addExceptionProperties(DataException exception)
- Description copied from class:
DataEndpoint
- Adds this endpoint's current state to a
DataException. Since this method is called whenever an
exception is thrown, subclasses should override it to add their specific information.
- Overrides:
addExceptionProperties in class FilteringReader
Copyright (c) 2007-2012 North Concepts Inc. All Rights Reserved.