Package com.vst.service.impl

Source Code of com.vst.service.impl.ObjectExpertTypeManagerImpl

package com.vst.service.impl;

import com.vst.dao.ObjectExpertTypeDao;
import com.vst.model.ObjectExpertType;
import com.vst.service.ObjectExpertTypeManager;

import java.util.List;

/**
* Created by IntelliJ IDEA.
* User: And Lilia
* Date: 14.04.2009
* Time: 16:41:26
* To change this template use File | Settings | File Templates.
*/
public class ObjectExpertTypeManagerImpl extends BaseManager implements ObjectExpertTypeManager {

    ObjectExpertTypeDao objectExpertTypeDao;

    public void setObjectExpertTypeDao(ObjectExpertTypeDao objectExpertTypeDao) {
        this.objectExpertTypeDao = objectExpertTypeDao;
    }

    public void insertObjectExpert(ObjectExpertType objectExpertType) {
       objectExpertTypeDao.insetObjectExpert(objectExpertType);
    }

    public void deleteObjectExpert(ObjectExpertType objectExpertType) {
        objectExpertTypeDao.deleteObjectExpert(objectExpertType);
    }

    public void updateObjectExpert(ObjectExpertType objectExpertType) {
       objectExpertTypeDao.updateObjectExpert(objectExpertType);
    }

    public ObjectExpertType getObjectExpertTypeById(Integer id) {
        return objectExpertTypeDao.getObjectExpertTypeById(id);
    }

    public List getObjectExpertTypeList() {
        return objectExpertTypeDao.getObjectExpertTypeList();
    }

    public boolean objectExpertTypeExist(ObjectExpertType objectExpertType) {
        List list=objectExpertTypeDao.getObjectExpertTypeList();
        for (int i=0; i<list.size(); i++){
            ObjectExpertType object=(ObjectExpertType)list.get(i);
            if (objectExpertType.getExpertName().equals(object.getExpertName()) && objectExpertType.getDefinition().equals(object.getDefinition()) && objectExpertType.getAppointment().equals(object.getAppointment())){
                return true;
            }
        }
        return false;
    }

    public List getPageObjectExpertTypeList(Integer page) {
        return objectExpertTypeDao.getPageObjectExpertTypeList(page);
    }

}
TOP

Related Classes of com.vst.service.impl.ObjectExpertTypeManagerImpl

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.