com.sycros.SCWebConsole.business.dao.LicenseBzDaoImpl.java Source code

Java tutorial

Introduction

Here is the source code for com.sycros.SCWebConsole.business.dao.LicenseBzDaoImpl.java

Source

package com.sycros.SCWebConsole.business.dao;

import java.util.List;

import org.apache.ibatis.session.SqlSession;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import com.sycros.SCWebConsole.business.domain.dto.LicenseBzDto;
import com.sycros.SCWebConsole.business.domain.vo.LicenseBzVo;

@Repository(value = "licenseBzDao")
@Transactional
public class LicenseBzDaoImpl implements LicenseBzDao {

    @Override
    public List<LicenseBzVo> selectLicenseList(SqlSession sqlSession, LicenseBzDto licenseBzDto) throws Exception {
        // TODO Auto-generated method stub
        return sqlSession.selectList("com.sycros.SCWebConsole.business.business-mapper.selectLicenseList",
                licenseBzDto);
    }

    @Override
    public LicenseBzVo selectLicenseInfo(SqlSession sqlSession, LicenseBzDto licenseBzDto) throws Exception {
        // TODO Auto-generated method stub
        return sqlSession.selectOne("com.sycros.SCWebConsole.business.business-mapper.selectLicenseInfo",
                licenseBzDto);
    }

    @Override
    public int insertLicenseInfo(SqlSession sqlSession, LicenseBzDto licenseBzDto) throws Exception {
        // TODO Auto-generated method stub
        return sqlSession.insert("com.sycros.SCWebConsole.business.business-mapper.insertLicenseInfo",
                licenseBzDto);
    }

    @Override
    public int updateLicenseInfo(SqlSession sqlSession, LicenseBzDto licenseBzDto) throws Exception {
        // TODO Auto-generated method stub
        return sqlSession.update("com.sycros.SCWebConsole.business.business-mapper.updateLicenseInfo",
                licenseBzDto);
    }

    @Override
    public int deleteLicenseInfo(SqlSession sqlSession, LicenseBzDto licenseBzDto) throws Exception {
        // TODO Auto-generated method stub
        return sqlSession.delete("com.sycros.SCWebConsole.business.business-mapper.deleteLicenseInfo",
                licenseBzDto);
    }

    @Override
    public int insertLicenseProductInfo(SqlSession sqlSession, LicenseBzDto licenseBzDto) throws Exception {
        // TODO Auto-generated method stub
        return sqlSession.insert("com.sycros.SCWebConsole.business.business-mapper.insertLicenseProductInfo",
                licenseBzDto);
    }

    @Override
    public int deleteLicenseProductInfo(SqlSession sqlSession, LicenseBzDto licenseBzDto) throws Exception {
        // TODO Auto-generated method stub
        return sqlSession.delete("com.sycros.SCWebConsole.business.business-mapper.deleteLicenseProductInfo",
                licenseBzDto);
    }

    @Override
    public List<String> selectProductList(SqlSession sqlSession) throws Exception {
        // TODO Auto-generated method stub
        return sqlSession.selectList("com.sycros.SCWebConsole.business.business-mapper.selectProductList");

    }
}