DaoCollectorConfig extends AbstractCollectorConfig { public void setDaoCollectorPrePostProcess( DaoCollectorPrePostProcess daoCollectorPrePostProcess) { this.daoCollectorPrePostProcess = daoCollectorPrePostProcess; } DaoCollectorConfig(Object queryResultHandleDao, String methodName,
            Object bindParams); DaoCollectorConfig addQueueSize(int queueSize); DaoCollectorConfig addExceptionHandler(
            CollectorExceptionHandler exceptionHandler); DaoCollectorConfig addValidator(Validator validator); DaoCollectorConfig addValidationErrorHandler(
            ValidationErrorHandler validationErrorHandler); @Deprecated DaoCollectorConfig addRelation1n(boolean relation1n); DaoCollectorConfig addDaoCollectorPrePostProcess(
            DaoCollectorPrePostProcess daoCollectorPrePostProcess); DaoCollectorConfig addExecuteByConstructor(
            boolean executeByConstructor); Object getQueryResultHandleDao(); void setQueryResultHandleDao(Object queryResultHandleDao); String getMethodName(); void setMethodName(String methodName); Object getBindParams(); void setBindParams(Object bindParams); boolean isRelation1n(); @Deprecated void setRelation1n(boolean relation1n); DaoCollectorPrePostProcess getDaoCollectorPrePostProcess(); void setDaoCollectorPrePostProcess(
            DaoCollectorPrePostProcess daoCollectorPrePostProcess);  }
@Test public void setDaoCollectorPrePostProcess() { Object queryResultHandleDao = new Object(); String methodName = "hoge"; Object bindParams = new Object(); DaoCollectorConfig config = new DaoCollectorConfig(queryResultHandleDao, methodName, bindParams); DaoCollectorPrePostProcess daoCollectorPrePostProcess = new DaoCollectorPrePostProcess() { public <P> void postprocessComplete(DaoCollector<P> collector) { } public <P> DaoCollectorPrePostProcessStatus postprocessException( DaoCollector<P> collector, Throwable throwable) { return null; } public <P> void preprocess(DaoCollector<P> collector) { } }; config.setDaoCollectorPrePostProcess(daoCollectorPrePostProcess); DaoCollectorPrePostProcess daoCollectorPrePostProcess2 = new DaoCollectorPrePostProcess() { public <P> void postprocessComplete(DaoCollector<P> collector) { } public <P> DaoCollectorPrePostProcessStatus postprocessException( DaoCollector<P> collector, Throwable throwable) { return null; } public <P> void preprocess(DaoCollector<P> collector) { } }; config.setDaoCollectorPrePostProcess(daoCollectorPrePostProcess2); assertNotNull(config.getDaoCollectorPrePostProcess()); assertEquals(daoCollectorPrePostProcess2, config .getDaoCollectorPrePostProcess()); }