package gov.va.med.mpn.dao;
// Generated Sep 16, 2014 1:53:04 PM by Hibernate Tools 4.3.1


import java.util.List;

import gov.va.med.mpn.dao.core.ClassificationDAOCoreImpl;
import gov.va.med.mpn.dao.interfaces.ClassificationDAO;
import gov.va.med.mpn.entity.pojo.Category;
import gov.va.med.mpn.entity.pojo.Classification;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.jmx.export.annotation.ManagedOperation;
import org.springframework.jmx.export.annotation.ManagedResource;
import org.springframework.stereotype.Repository;



/**
 * DAO Implementation for Classification.
 *
 */
@Repository
@ManagedResource
public class ClassificationDAOImpl extends ClassificationDAOCoreImpl
                                  implements ClassificationDAO {

	  /** The slf4j logger. */
	private final Logger slf4jLogger = LoggerFactory.getLogger(CategoryDAOImpl.class);



	@ManagedOperation
	public List<Classification> findAllClassesSorted()
	{

			slf4jLogger.info("findAllClassesSorted :");
			List<Classification> returnValue = null;


	    List<Classification> classes = super.findByNamedQuery("classification.findAllSortedClasses");


	    // if there are actions for status, set returnValue to list
	    if(classes != null )
	    {
	        returnValue = classes;
	    }

	    return returnValue;
	}


}

