Code Search for Developers
 
 
  

ExamServiceImpl.java from crlove at Krugle


Show ExamServiceImpl.java syntax highlighted

package com.witfriend.apollo.service.impl;

import java.io.Serializable;

import org.springframework.transaction.annotation.Transactional;

import com.witfriend.apollo.domain.Exam;
import com.witfriend.apollo.domain.Exams;
import com.witfriend.apollo.domain.exception.exam.ExamExistedException;
import com.witfriend.apollo.domain.exception.exam.ExamNotFoundException;
import com.witfriend.apollo.service.ExamService;
import com.witfriend.zeus.domain.exception.user.UserNotFoundException;

/**
 * DOCUMENT ME!
 * @author wangyz
 * @since 2006.10.05
 * @version $Id$
 */
@Transactional
public class ExamServiceImpl implements ExamService {
	public Serializable create(Exam exam) throws ExamExistedException, UserNotFoundException {
		return exam.create();
	}
	
	public Exam modify(Exam exam) throws ExamExistedException {
		return exam.modify();
	}
	
	@Transactional(readOnly = true)
	public Exam load(Serializable id) throws ExamNotFoundException {
		return Exams.take(id);
	}
}




See more files for this project here

crlove

Online psychological-test-based friend-making system.

Project homepage: http://sourceforge.net/projects/crlove
Programming language(s): Java,JavaScript,Ruby,XML
License: other

  ChoiceServiceImpl.java
  ExamServiceImpl.java
  QuestionServiceImpl.java