@Repository public class LibraryDaoImpl extends Object implements LibraryDao
LibraryDao
Constructor and Description |
---|
LibraryDaoImpl() |
Modifier and Type | Method and Description |
---|---|
List<String> |
getCampusWithLibraries()
Returns a list of campus codes of campuses that have libraries
|
javax.persistence.EntityManager |
getEntityManager()
Gets the reference to the
EntityManager . |
List<Library> |
getLibariesForCampus(String campusCode)
Returns the libraries for a campus
|
List<Library> |
getLibraries()
Get all active libraries
|
Library |
getLibrary(long libraryId)
Gets a library for the specified id
|
List<LibraryHourSet> |
getLibraryHourSets(long libraryId)
Gets the hour sets for a library
|
Library |
saveLibrary(Library library)
Persists the state of a library
|
LibraryHourPeriod |
saveLibraryHourPeriod(LibraryHourPeriod libraryHourPeriod)
Saves a library hour period
|
LibraryHourSet |
saveLibraryHourSets(LibraryHourSet lhs)
Saves a LibraryHourSet
|
void |
setEntityManager(javax.persistence.EntityManager entityManager)
Sets the reference to the
EntityManager . |
public LibraryDaoImpl()
public List<Library> getLibraries()
LibraryDao
getLibraries
in interface LibraryDao
public Library getLibrary(long libraryId)
LibraryDao
getLibrary
in interface LibraryDao
libraryId
- Id of the library to retrieve.@Transactional public Library saveLibrary(Library library)
LibraryDao
saveLibrary
in interface LibraryDao
library
- The library to persist.public List<LibraryHourSet> getLibraryHourSets(long libraryId)
LibraryDao
getLibraryHourSets
in interface LibraryDao
@Transactional public LibraryHourSet saveLibraryHourSets(LibraryHourSet lhs)
LibraryDao
saveLibraryHourSets
in interface LibraryDao
public javax.persistence.EntityManager getEntityManager()
EntityManager
.EntityManager
.public void setEntityManager(javax.persistence.EntityManager entityManager)
EntityManager
.entityManager
- The reference to the EntityManager
.public List<Library> getLibariesForCampus(String campusCode)
LibraryDao
getLibariesForCampus
in interface LibraryDao
public List<String> getCampusWithLibraries()
LibraryDao
getCampusWithLibraries
in interface LibraryDao
@Transactional public LibraryHourPeriod saveLibraryHourPeriod(LibraryHourPeriod libraryHourPeriod)
LibraryDao
saveLibraryHourPeriod
in interface LibraryDao
Copyright © 2011–2014 The Kuali Foundation. All rights reserved.