test_class.declarator: demandResponseEventService
test_class.modifier: @Resource
  	private
test_class.original_string: @Resource
  	private DemandResponseEventService demandResponseEventService;
test_class.type: DemandResponseEventService
test_class.var_name: demandResponseEventService
test_class.declarator: venService
test_class.modifier: @Resource
  	private
test_class.original_string: @Resource
  	private VenService venService;
test_class.type: VenService
test_class.var_name: venService
test_class.declarator: venDemandResponseEventDao
test_class.modifier: @Resource
  	private
test_class.original_string: @Resource
  	private VenDemandResponseEventDao venDemandResponseEventDao;
test_class.type: VenDemandResponseEventDao
test_class.var_name: venDemandResponseEventDao
test_class.declarator: venMarketContextService
test_class.modifier: @Resource
  	private
test_class.original_string: @Resource
  	private VenMarketContextService venMarketContextService;
test_class.type: VenMarketContextService
test_class.var_name: venMarketContextService
test_class.declarator: start = System.currentTimeMillis()
test_class.modifier: private
test_class.original_string: private Long start = System.currentTimeMillis();
test_class.type: Long
test_class.var_name: start
test_class.declarator: vens = new ArrayList<Ven>()
test_class.modifier: private
test_class.original_string: private List<Ven> vens = new ArrayList<Ven>();
test_class.type: List<Ven>
test_class.var_name: vens
test_class.declarator: events = new ArrayList<DemandResponseEvent>()
test_class.modifier: private
test_class.original_string: private List<DemandResponseEvent> events = new ArrayList<DemandResponseEvent>();
test_class.type: List<DemandResponseEvent>
test_class.var_name: events
test_class.declarator: marketContext = null
test_class.modifier: private
test_class.original_string: private VenMarketContext marketContext = null;
test_class.type: VenMarketContext
test_class.var_name: marketContext
test_class.declarator: event1 = null
test_class.modifier: private
test_class.original_string: private DemandResponseEvent event1 = null;
test_class.type: DemandResponseEvent
test_class.var_name: event1
test_class.declarator: event2 = null
test_class.modifier: private
test_class.original_string: private DemandResponseEvent event2 = null;
test_class.type: DemandResponseEvent
test_class.var_name: event2
test_class.declarator: event3 = null
test_class.modifier: private
test_class.original_string: private DemandResponseEvent event3 = null;
test_class.type: DemandResponseEvent
test_class.var_name: event3
test_class.declarator: ven1
test_class.modifier: private
test_class.original_string: private Ven ven1;
test_class.type: Ven
test_class.var_name: ven1
test_class.declarator: ven2
test_class.modifier: private
test_class.original_string: private Ven ven2;
test_class.type: Ven
test_class.var_name: ven2
test_class.declarator: ven3
test_class.modifier: private
test_class.original_string: private Ven ven3;
test_class.type: Ven
test_class.var_name: ven3
test_class.file: OpenADRServerVTNCommon/src/test/java/com/avob/openadr/server/common/vtn/service/DemandResponseEventServiceTest.java
test_class.identifier: DemandResponseEventServiceTest
test_case.body: @Test
  	public void deleteTest() {
  		long count = venDemandResponseEventDao.count();
  		assertEquals(4L, count);
  
  		demandResponseEventService.delete(event1.getId());
  
  		count = venDemandResponseEventDao.count();
  		assertEquals(2L, count);
  
  		demandResponseEventService.delete(events);
  
  		count = venDemandResponseEventDao.count();
  		assertEquals(0L, count);
  	}
test_case.class_method_signature: DemandResponseEventServiceTest.deleteTest()
test_case.full_signature: @Test public void deleteTest()
test_case.identifier: deleteTest
test_case.invocations: count assertEquals delete getId count assertEquals delete count assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void deleteTest()
focal_class.declarator: LOGGER = LoggerFactory.getLogger(DemandResponseEventService.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = LoggerFactory.getLogger(DemandResponseEventService.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: DEFAULT_SEARCH_SIZE = 20
focal_class.modifier: private static final
focal_class.original_string: private static final Integer DEFAULT_SEARCH_SIZE = 20;
focal_class.type: Integer
focal_class.var_name: DEFAULT_SEARCH_SIZE
focal_class.declarator: SORT_ASC_ACTIVEPERIOD = Sort.by(Sort.Direction.ASC, "activePeriod.start")
focal_class.modifier: private static final
focal_class.original_string: private static final Sort SORT_ASC_ACTIVEPERIOD = Sort.by(Sort.Direction.ASC, "activePeriod.start");
focal_class.type: Sort
focal_class.var_name: SORT_ASC_ACTIVEPERIOD
focal_class.declarator: supportPush
focal_class.modifier: @Value("${oadr.supportPush:#{false}}")
  	private
focal_class.original_string: @Value("${oadr.supportPush:#{false}}")
  	private Boolean supportPush;
focal_class.type: Boolean
focal_class.var_name: supportPush
focal_class.declarator: venDao
focal_class.modifier: @Resource
  	private
focal_class.original_string: @Resource
  	private VenDao venDao;
focal_class.type: VenDao
focal_class.var_name: venDao
focal_class.declarator: demandResponseEventDao
focal_class.modifier: @Resource
  	private
focal_class.original_string: @Resource
  	private DemandResponseEventDao demandResponseEventDao;
focal_class.type: DemandResponseEventDao
focal_class.var_name: demandResponseEventDao
focal_class.declarator: venDemandResponseEventDao
focal_class.modifier: @Resource
  	private
focal_class.original_string: @Resource
  	private VenDemandResponseEventDao venDemandResponseEventDao;
focal_class.type: VenDemandResponseEventDao
focal_class.var_name: venDemandResponseEventDao
focal_class.declarator: demandResponseEventPublisher
focal_class.modifier: @Resource
  	private
focal_class.original_string: @Resource
  	private DemandResponseEventPublisher demandResponseEventPublisher;
focal_class.type: DemandResponseEventPublisher
focal_class.var_name: demandResponseEventPublisher
focal_class.declarator: demandResponseEventSignalDao
focal_class.modifier: @Resource
  	private
focal_class.original_string: @Resource
  	private DemandResponseEventSignalDao demandResponseEventSignalDao;
focal_class.type: DemandResponseEventSignalDao
focal_class.var_name: demandResponseEventSignalDao
focal_class.declarator: executor
focal_class.modifier: @Resource
  	private
focal_class.original_string: @Resource
  	private Executor executor;
focal_class.type: Executor
focal_class.var_name: executor
focal_class.declarator: dtoMapper
focal_class.modifier: @Resource
  	private
focal_class.original_string: @Resource
  	private DtoMapper dtoMapper;
focal_class.type: DtoMapper
focal_class.var_name: dtoMapper
focal_class.declarator: datatypeFactory
focal_class.modifier: private
focal_class.original_string: private DatatypeFactory datatypeFactory;
focal_class.type: DatatypeFactory
focal_class.var_name: datatypeFactory
focal_class.file: OpenADRServerVTNCommon/src/main/java/com/avob/openadr/server/common/vtn/service/DemandResponseEventService.java
focal_class.identifier: DemandResponseEventService
focal_class.class_method_signature: DemandResponseEventService.init()
focal_class.full_signature: @PostConstruct public void init()
focal_class.identifier: init
focal_class.modifiers: @PostConstruct public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void init()
focal_class.class_method_signature: DemandResponseEventService.findVenForTarget(DemandResponseEvent event,
  			List<? extends DemandResponseEventTargetInterface> targets)
focal_class.full_signature: private List<Ven> findVenForTarget(DemandResponseEvent event,
  			List<? extends DemandResponseEventTargetInterface> targets)
focal_class.identifier: findVenForTarget
focal_class.modifiers: private
focal_class.parameters: (DemandResponseEvent event,
  			List<? extends DemandResponseEventTargetInterface> targets)
focal_class.return: List<Ven>
focal_class.signature: List<Ven> findVenForTarget(DemandResponseEvent event,
  			List<? extends DemandResponseEventTargetInterface> targets)
focal_class.class_method_signature: DemandResponseEventService.create(DemandResponseEventCreateDto dto)
focal_class.full_signature: @Transactional(readOnly = false) public DemandResponseEvent create(DemandResponseEventCreateDto dto)
focal_class.identifier: create
focal_class.modifiers: @Transactional(readOnly = false) public
focal_class.parameters: (DemandResponseEventCreateDto dto)
focal_class.return: DemandResponseEvent
focal_class.signature: DemandResponseEvent create(DemandResponseEventCreateDto dto)
focal_class.class_method_signature: DemandResponseEventService.update(DemandResponseEvent event, DemandResponseEventUpdateDto dto)
focal_class.full_signature: @Transactional(readOnly = false) public DemandResponseEvent update(DemandResponseEvent event, DemandResponseEventUpdateDto dto)
focal_class.identifier: update
focal_class.modifiers: @Transactional(readOnly = false) public
focal_class.parameters: (DemandResponseEvent event, DemandResponseEventUpdateDto dto)
focal_class.return: DemandResponseEvent
focal_class.signature: DemandResponseEvent update(DemandResponseEvent event, DemandResponseEventUpdateDto dto)
focal_class.class_method_signature: DemandResponseEventService.distributeEventToPushVen(DemandResponseEvent event)
focal_class.full_signature: public void distributeEventToPushVen(DemandResponseEvent event)
focal_class.identifier: distributeEventToPushVen
focal_class.modifiers: public
focal_class.parameters: (DemandResponseEvent event)
focal_class.return: void
focal_class.signature: void distributeEventToPushVen(DemandResponseEvent event)
focal_class.class_method_signature: DemandResponseEventService.publish(DemandResponseEvent event)
focal_class.full_signature: @Transactional(readOnly = false) public DemandResponseEvent publish(DemandResponseEvent event)
focal_class.identifier: publish
focal_class.modifiers: @Transactional(readOnly = false) public
focal_class.parameters: (DemandResponseEvent event)
focal_class.return: DemandResponseEvent
focal_class.signature: DemandResponseEvent publish(DemandResponseEvent event)
focal_class.class_method_signature: DemandResponseEventService.active(DemandResponseEvent event)
focal_class.full_signature: @Transactional(readOnly = false) public DemandResponseEvent active(DemandResponseEvent event)
focal_class.identifier: active
focal_class.modifiers: @Transactional(readOnly = false) public
focal_class.parameters: (DemandResponseEvent event)
focal_class.return: DemandResponseEvent
focal_class.signature: DemandResponseEvent active(DemandResponseEvent event)
focal_class.class_method_signature: DemandResponseEventService.cancel(DemandResponseEvent event)
focal_class.full_signature: @Transactional(readOnly = false) public DemandResponseEvent cancel(DemandResponseEvent event)
focal_class.identifier: cancel
focal_class.modifiers: @Transactional(readOnly = false) public
focal_class.parameters: (DemandResponseEvent event)
focal_class.return: DemandResponseEvent
focal_class.signature: DemandResponseEvent cancel(DemandResponseEvent event)
focal_class.class_method_signature: DemandResponseEventService.pushAsync(Ven ven, DemandResponseEventOadrProfileEnum profile)
focal_class.full_signature: private void pushAsync(Ven ven, DemandResponseEventOadrProfileEnum profile)
focal_class.identifier: pushAsync
focal_class.modifiers: private
focal_class.parameters: (Ven ven, DemandResponseEventOadrProfileEnum profile)
focal_class.return: void
focal_class.signature: void pushAsync(Ven ven, DemandResponseEventOadrProfileEnum profile)
focal_class.class_method_signature: DemandResponseEventService.findById(Long id)
focal_class.full_signature: public Optional<DemandResponseEvent> findById(Long id)
focal_class.identifier: findById
focal_class.modifiers: public
focal_class.parameters: (Long id)
focal_class.return: Optional<DemandResponseEvent>
focal_class.signature: Optional<DemandResponseEvent> findById(Long id)
focal_class.class_method_signature: DemandResponseEventService.getSignals(DemandResponseEvent event)
focal_class.full_signature: public List<DemandResponseEventSignal> getSignals(DemandResponseEvent event)
focal_class.identifier: getSignals
focal_class.modifiers: public
focal_class.parameters: (DemandResponseEvent event)
focal_class.return: List<DemandResponseEventSignal>
focal_class.signature: List<DemandResponseEventSignal> getSignals(DemandResponseEvent event)
focal_class.class_method_signature: DemandResponseEventService.delete(Long id)
focal_class.full_signature: public boolean delete(Long id)
focal_class.identifier: delete
focal_class.modifiers: public
focal_class.parameters: (Long id)
focal_class.return: boolean
focal_class.signature: boolean delete(Long id)
focal_class.class_method_signature: DemandResponseEventService.delete(Iterable<DemandResponseEvent> entities)
focal_class.full_signature: public void delete(Iterable<DemandResponseEvent> entities)
focal_class.identifier: delete
focal_class.modifiers: public
focal_class.parameters: (Iterable<DemandResponseEvent> entities)
focal_class.return: void
focal_class.signature: void delete(Iterable<DemandResponseEvent> entities)
focal_class.class_method_signature: DemandResponseEventService.hasResponded(String venId, DemandResponseEvent event)
focal_class.full_signature: public boolean hasResponded(String venId, DemandResponseEvent event)
focal_class.identifier: hasResponded
focal_class.modifiers: public
focal_class.parameters: (String venId, DemandResponseEvent event)
focal_class.return: boolean
focal_class.signature: boolean hasResponded(String venId, DemandResponseEvent event)
focal_class.class_method_signature: DemandResponseEventService.updateVenDemandResponseEvent(Long demandResponseEventId, Long modificationNumber, String venUsername,
  			DemandResponseEventOptEnum venOpt)
focal_class.full_signature: public void updateVenDemandResponseEvent(Long demandResponseEventId, Long modificationNumber, String venUsername,
  			DemandResponseEventOptEnum venOpt)
focal_class.identifier: updateVenDemandResponseEvent
focal_class.modifiers: public
focal_class.parameters: (Long demandResponseEventId, Long modificationNumber, String venUsername,
  			DemandResponseEventOptEnum venOpt)
focal_class.return: void
focal_class.signature: void updateVenDemandResponseEvent(Long demandResponseEventId, Long modificationNumber, String venUsername,
  			DemandResponseEventOptEnum venOpt)
focal_class.class_method_signature: DemandResponseEventService.getVenDemandResponseEvent(Long demandResponseEventId, String venUsername)
focal_class.full_signature: public VenDemandResponseEvent getVenDemandResponseEvent(Long demandResponseEventId, String venUsername)
focal_class.identifier: getVenDemandResponseEvent
focal_class.modifiers: public
focal_class.parameters: (Long demandResponseEventId, String venUsername)
focal_class.return: VenDemandResponseEvent
focal_class.signature: VenDemandResponseEvent getVenDemandResponseEvent(Long demandResponseEventId, String venUsername)
focal_class.class_method_signature: DemandResponseEventService.getVenDemandResponseEventOpt(Long demandResponseEventId, String venUsername)
focal_class.full_signature: public DemandResponseEventOptEnum getVenDemandResponseEventOpt(Long demandResponseEventId, String venUsername)
focal_class.identifier: getVenDemandResponseEventOpt
focal_class.modifiers: public
focal_class.parameters: (Long demandResponseEventId, String venUsername)
focal_class.return: DemandResponseEventOptEnum
focal_class.signature: DemandResponseEventOptEnum getVenDemandResponseEventOpt(Long demandResponseEventId, String venUsername)
focal_class.class_method_signature: DemandResponseEventService.findToSentEventByVenUsername(String username)
focal_class.full_signature: public List<DemandResponseEvent> findToSentEventByVenUsername(String username)
focal_class.identifier: findToSentEventByVenUsername
focal_class.modifiers: public
focal_class.parameters: (String username)
focal_class.return: List<DemandResponseEvent>
focal_class.signature: List<DemandResponseEvent> findToSentEventByVenUsername(String username)
focal_class.class_method_signature: DemandResponseEventService.findToSentEventByVenUsername(String username, Long size)
focal_class.full_signature: public List<DemandResponseEvent> findToSentEventByVenUsername(String username, Long size)
focal_class.identifier: findToSentEventByVenUsername
focal_class.modifiers: public
focal_class.parameters: (String username, Long size)
focal_class.return: List<DemandResponseEvent>
focal_class.signature: List<DemandResponseEvent> findToSentEventByVenUsername(String username, Long size)
focal_class.class_method_signature: DemandResponseEventService.getVenDemandResponseEvent(Long demandResponseEventId)
focal_class.full_signature: public List<VenDemandResponseEvent> getVenDemandResponseEvent(Long demandResponseEventId)
focal_class.identifier: getVenDemandResponseEvent
focal_class.modifiers: public
focal_class.parameters: (Long demandResponseEventId)
focal_class.return: List<VenDemandResponseEvent>
focal_class.signature: List<VenDemandResponseEvent> getVenDemandResponseEvent(Long demandResponseEventId)
focal_class.class_method_signature: DemandResponseEventService.search(List<DemandResponseEventFilter> filters, Long start, Long end)
focal_class.full_signature: public Page<DemandResponseEvent> search(List<DemandResponseEventFilter> filters, Long start, Long end)
focal_class.identifier: search
focal_class.modifiers: public
focal_class.parameters: (List<DemandResponseEventFilter> filters, Long start, Long end)
focal_class.return: Page<DemandResponseEvent>
focal_class.signature: Page<DemandResponseEvent> search(List<DemandResponseEventFilter> filters, Long start, Long end)
focal_class.class_method_signature: DemandResponseEventService.search(List<DemandResponseEventFilter> filters, Long start, Long end, Integer page,
  			Integer size)
focal_class.full_signature: public Page<DemandResponseEvent> search(List<DemandResponseEventFilter> filters, Long start, Long end, Integer page,
  			Integer size)
focal_class.identifier: search
focal_class.modifiers: public
focal_class.parameters: (List<DemandResponseEventFilter> filters, Long start, Long end, Integer page,
  			Integer size)
focal_class.return: Page<DemandResponseEvent>
focal_class.signature: Page<DemandResponseEvent> search(List<DemandResponseEventFilter> filters, Long start, Long end, Integer page,
  			Integer size)
focal_method.body: public boolean delete(Long id) {
  		boolean exists = demandResponseEventDao.existsById(id);
  		if (exists) {
  			venDemandResponseEventDao.deleteByEventId(id);
  			demandResponseEventDao.deleteById(id);
  		}
  		return exists;
  	}
focal_method.class_method_signature: DemandResponseEventService.delete(Long id)
focal_method.full_signature: public boolean delete(Long id)
focal_method.identifier: delete
focal_method.invocations: existsById deleteByEventId deleteById
focal_method.modifiers: public
focal_method.parameters: (Long id)
focal_method.return: boolean
focal_method.signature: boolean delete(Long id)