net.sourceforge.mystique.infrastructure.persistence
Class ProjectJpaRepository

java.lang.Object
  extended by net.sourceforge.mystique.infrastructure.persistence.JpaRepository<Project,java.lang.Long>
      extended by net.sourceforge.mystique.infrastructure.persistence.ProjectJpaRepository
All Implemented Interfaces:
ProjectRepository, Repository<Project,java.lang.Long>, SimpleRepository<Project,java.lang.Long>

@Repository
public class ProjectJpaRepository
extends JpaRepository<Project,java.lang.Long>
implements ProjectRepository

Author:
Elias Gomes [eliasgomes@users.sourceforge.net]

Field Summary
 
Fields inherited from class net.sourceforge.mystique.infrastructure.persistence.JpaRepository
entityManager
 
Fields inherited from interface net.sourceforge.mystique.domain.repository.Repository
LARGE_RESULT, MEDIUM_RESULT, SMALL_RESULT
 
Constructor Summary
ProjectJpaRepository()
           
 
Method Summary
 java.util.List<Project> findAll(int offset, int limit)
           
 Project findById(java.lang.Long id)
           
 Project findByName(java.lang.String name)
           
 void store(Project project)
           
 
Methods inherited from class net.sourceforge.mystique.infrastructure.persistence.JpaRepository
remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sourceforge.mystique.domain.repository.SimpleRepository
remove
 

Constructor Detail

ProjectJpaRepository

public ProjectJpaRepository()
Method Detail

findById

@Transactional(readOnly=true)
public Project findById(java.lang.Long id)
                 throws RepositoryException
Specified by:
findById in interface SimpleRepository<Project,java.lang.Long>
Throws:
RepositoryException

findAll

@Transactional(readOnly=true)
public java.util.List<Project> findAll(int offset,
                                                     int limit)
                                throws RepositoryException
Specified by:
findAll in interface Repository<Project,java.lang.Long>
Throws:
RepositoryException

findByName

@Transactional(readOnly=true)
public Project findByName(java.lang.String name)
                   throws RepositoryException
Specified by:
findByName in interface ProjectRepository
Throws:
RepositoryException

store

@Transactional
public void store(Project project)
           throws RepositoryException
Specified by:
store in interface SimpleRepository<Project,java.lang.Long>
Throws:
RepositoryException


Copyright © 2010. All Rights Reserved.