cz.muni.fi.pclis.service.peerEvaluation
Class SelfEvaluationAssignmentServiceImpl

java.lang.Object
  extended by cz.muni.fi.pclis.service.peerEvaluation.SelfEvaluationAssignmentServiceImpl
All Implemented Interfaces:
GenericService<SelfEvaluationAssignment>, PeerEvaluationAssignmentService<SelfEvaluationAssignment>, SelfEvaluationAssignmentService

@Transactional
public class SelfEvaluationAssignmentServiceImpl
extends Object
implements SelfEvaluationAssignmentService

User: Ľuboš Pecho Date: 1.4.2010 Time: 16:15:29 To change this template use File | Settings | File Templates.


Field Summary
private  GenericServiceImpl<SelfEvaluationAssignment,SelfEvaluationAssignmentDao> impl
           
 
Constructor Summary
SelfEvaluationAssignmentServiceImpl()
           
 
Method Summary
 SelfEvaluationAssignment create(SelfEvaluationAssignment entity)
          persists the entity
 void generateAndUpdate(SelfEvaluationAssignment entity)
           
 List<SelfEvaluationAssignment> getAll()
          returns all entities
 List<SelfEvaluationAssignment> getByCourseAndTerm(Course course, Term term)
           
 SelfEvaluationAssignment getById(long id)
          get the entity with given id
 SelfEvaluationAssignmentDao getDao()
           
 SelfEvaluationAssignment refresh(SelfEvaluationAssignment entity)
          refreshes the entity from database
 void remove(SelfEvaluationAssignment entity)
          removes a persisted entity
 void removeById(long id)
          removes entity with given id
 SelfEvaluationAssignment searchById(long id)
          searches the entity with given id
 void setDao(SelfEvaluationAssignmentDao selfEvaluationAssignmentDao)
           
 SelfEvaluationAssignment update(SelfEvaluationAssignment entity)
          updates the entity
 SelfEvaluationAssignmentDao useDao()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

impl

private GenericServiceImpl<SelfEvaluationAssignment,SelfEvaluationAssignmentDao> impl
Constructor Detail

SelfEvaluationAssignmentServiceImpl

public SelfEvaluationAssignmentServiceImpl()
Method Detail

getById

public SelfEvaluationAssignment getById(long id)
Description copied from interface: GenericService
get the entity with given id

Specified by:
getById in interface GenericService<SelfEvaluationAssignment>
Specified by:
getById in interface SelfEvaluationAssignmentService
Returns:
entity

searchById

public SelfEvaluationAssignment searchById(long id)
Description copied from interface: GenericService
searches the entity with given id

Specified by:
searchById in interface GenericService<SelfEvaluationAssignment>
Specified by:
searchById in interface SelfEvaluationAssignmentService
Returns:
entity, null if none is found

getAll

public List<SelfEvaluationAssignment> getAll()
Description copied from interface: GenericService
returns all entities

Specified by:
getAll in interface GenericService<SelfEvaluationAssignment>
Specified by:
getAll in interface SelfEvaluationAssignmentService
Returns:

create

public SelfEvaluationAssignment create(SelfEvaluationAssignment entity)
Description copied from interface: GenericService
persists the entity

Specified by:
create in interface GenericService<SelfEvaluationAssignment>
Specified by:
create in interface SelfEvaluationAssignmentService
Returns:

update

public SelfEvaluationAssignment update(SelfEvaluationAssignment entity)
Description copied from interface: GenericService
updates the entity

Specified by:
update in interface GenericService<SelfEvaluationAssignment>
Specified by:
update in interface SelfEvaluationAssignmentService
Returns:

generateAndUpdate

public void generateAndUpdate(SelfEvaluationAssignment entity)
Specified by:
generateAndUpdate in interface PeerEvaluationAssignmentService<SelfEvaluationAssignment>

remove

public void remove(SelfEvaluationAssignment entity)
Description copied from interface: GenericService
removes a persisted entity

Specified by:
remove in interface GenericService<SelfEvaluationAssignment>
Specified by:
remove in interface SelfEvaluationAssignmentService

removeById

public void removeById(long id)
Description copied from interface: GenericService
removes entity with given id

Specified by:
removeById in interface GenericService<SelfEvaluationAssignment>
Specified by:
removeById in interface SelfEvaluationAssignmentService

refresh

public SelfEvaluationAssignment refresh(SelfEvaluationAssignment entity)
Description copied from interface: GenericService
refreshes the entity from database

Specified by:
refresh in interface GenericService<SelfEvaluationAssignment>
Specified by:
refresh in interface SelfEvaluationAssignmentService
Returns:

getByCourseAndTerm

public List<SelfEvaluationAssignment> getByCourseAndTerm(Course course,
                                                         Term term)
Specified by:
getByCourseAndTerm in interface SelfEvaluationAssignmentService

useDao

public SelfEvaluationAssignmentDao useDao()

getDao

public SelfEvaluationAssignmentDao getDao()

setDao

public void setDao(SelfEvaluationAssignmentDao selfEvaluationAssignmentDao)


Copyright © 2009-2010 Faculty of Informatics, Masaryk university, Brno. All Rights Reserved.