×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Maduka Jayawardana
Added: Sep 14, 2015 8:37 AM
Views: 5
Tags: no tags
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6. package com.schwing.pms.core.services.impl;
  7.  
  8. import com.schwing.pms.core.dao.SchwingPumpJobsDao;
  9. import java.util.List;
  10.  
  11. import org.springframework.stereotype.Service;
  12. import org.springframework.transaction.annotation.Transactional;
  13.  
  14. import com.schwing.pms.core.models.entities.SchwingPumpJobs;
  15. import com.schwing.pms.core.services.SchwingPumpJobsService;
  16. import org.springframework.beans.factory.annotation.Autowired;
  17. import java.util.Date;
  18.  
  19. /**
  20.  *
  21.  * @author Maduka
  22.  */
  23. @Service
  24. @Transactional
  25. public class SchwingPumpJobsServiceImpl implements SchwingPumpJobsService {
  26.  
  27.     @Autowired
  28.     private SchwingPumpJobsDao schwingPumpJobs;
  29.     /*
  30.      * (non-Javadoc)
  31.      *
  32.      * @see com.coreirm.hr.core.services.IService#create(java.lang.Object)
  33.      */
  34.  
  35.     @Override
  36.     public SchwingPumpJobs create(SchwingPumpJobs t) {
  37.  
  38.         return schwingPumpJobs.create(t);
  39.     }
  40.  
  41.     /*
  42.      * (non-Javadoc)
  43.      *
  44.      * @see com.coreirm.hr.core.services.IService#read(java.io.Serializable)
  45.      */
  46.     @Override
  47.     public SchwingPumpJobs read(Long id) {
  48.  
  49.         return schwingPumpJobs.read(id);
  50.     }
  51.  
  52.     /*
  53.      * (non-Javadoc)
  54.      *
  55.      * @see com.coreirm.hr.core.services.IService#update(java.lang.Object)
  56.      */
  57.     @Override
  58.     public SchwingPumpJobs update(SchwingPumpJobs t) {
  59.  
  60.         return schwingPumpJobs.update(t);
  61.     }
  62.  
  63.     /*
  64.      * (non-Javadoc)
  65.      *
  66.      * @see com.coreirm.hr.core.services.IService#delete(java.lang.Object)
  67.      */
  68.     @Override
  69.     public void delete(SchwingPumpJobs t) {
  70.         schwingPumpJobs.delete(t);
  71.  
  72.     }
  73.  
  74.     /*
  75.      * (non-Javadoc)
  76.      *
  77.      * @see com.coreirm.hr.core.services.IService#findAll()
  78.      */
  79.     @Override
  80.     public List<SchwingPumpJobs> findAll() {
  81.  
  82.         return schwingPumpJobs.findAll();
  83.     }
  84.  
  85.     @Override
  86.     public List<SchwingPumpJobs> FindBySiteName(String siteName) {
  87.         return schwingPumpJobs.FindBySiteName(siteName);
  88.     }
  89.  
  90.     @Override
  91.     public List<SchwingPumpJobs> FindBypumpName(String pumpName) {
  92.         return schwingPumpJobs.FindBypumpName(pumpName);
  93.     }
  94.  
  95.     @Override
  96.     public List<SchwingPumpJobs> FindByJobDate(Date jobDate) {
  97.         return schwingPumpJobs.FindByJobDate(jobDate);
  98.     }
  99.  
  100. }
  101.