Code Search for Developers
 
 
  

QuestionServiceImpl.java from crlove at Krugle


Show QuestionServiceImpl.java syntax highlighted

package com.witfriend.apollo.service.impl;

import java.io.Serializable;

import org.springframework.transaction.annotation.Transactional;

import com.witfriend.apollo.domain.Question;
import com.witfriend.apollo.domain.Questions;
import com.witfriend.apollo.domain.exception.exam.ExamNotFoundException;
import com.witfriend.apollo.domain.exception.question.QuestionExistedException;
import com.witfriend.apollo.domain.exception.question.QuestionNotFoundException;
import com.witfriend.apollo.service.QuestionService;

/**
 * DOCUMENT ME!
 * @author wangyz
 * @since 2006.10.23
 * @version $Id$
 */
@Transactional
public class QuestionServiceImpl implements QuestionService {
	public Serializable add(Question question) throws ExamNotFoundException, QuestionExistedException {
		return question.add();
	}
	
	public Question load(Serializable id) throws QuestionNotFoundException {
		return Questions.load(id);
	}
	
	public Question modify(Question question) throws QuestionExistedException {
		return question.modify();
	}
	
	public void remove(Question question) {
		question.remove();
	}
}




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