package com.dcit.danger.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dcit.danger.dao.SafetyDeviceInfoMapper;
import com.dcit.danger.model.SafetyDeviceInfo;
import com.dcit.danger.model.SafetyDeviceInfoExample;
import com.dcit.danger.service.SafetyDeviceInfoService;

@Service
public class SafetyDeviceInfoServiceImpl implements SafetyDeviceInfoService {

	@Autowired
	private SafetyDeviceInfoMapper safetyDeviceInfoMapper;
	
	@Override
	public long countByExample(SafetyDeviceInfoExample example) {
		// TODO Auto-generated method stub
		return safetyDeviceInfoMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(SafetyDeviceInfoExample example) {
		// TODO Auto-generated method stub
		return safetyDeviceInfoMapper.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(String id) {
		// TODO Auto-generated method stub
		return safetyDeviceInfoMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(SafetyDeviceInfo record) {
		// TODO Auto-generated method stub
		return safetyDeviceInfoMapper.insert(record);
	}

	@Override
	public int insertSelective(SafetyDeviceInfo record) {
		// TODO Auto-generated method stub
		return safetyDeviceInfoMapper.insertSelective(record);
	}

	@Override
	public List<SafetyDeviceInfo> selectByExample(SafetyDeviceInfoExample example) {
		// TODO Auto-generated method stub
		return safetyDeviceInfoMapper.selectByExample(example);
	}

	@Override
	public SafetyDeviceInfo selectByPrimaryKey(String id) {
		// TODO Auto-generated method stub
		return safetyDeviceInfoMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByExampleSelective(SafetyDeviceInfo record, SafetyDeviceInfoExample example) {
		// TODO Auto-generated method stub
		return safetyDeviceInfoMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(SafetyDeviceInfo record, SafetyDeviceInfoExample example) {
		// TODO Auto-generated method stub
		return safetyDeviceInfoMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(SafetyDeviceInfo record) {
		// TODO Auto-generated method stub
		return safetyDeviceInfoMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(SafetyDeviceInfo record) {
		// TODO Auto-generated method stub
		return safetyDeviceInfoMapper.updateByPrimaryKey(record);
	}

}
