org.jasig.cas.services
Class JpaServiceRegistryDaoImpl
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.jpa.support.JpaDaoSupport
org.jasig.cas.services.JpaServiceRegistryDaoImpl
- All Implemented Interfaces:
- ServiceRegistryDao, org.springframework.beans.factory.InitializingBean
public final class JpaServiceRegistryDaoImpl
- extends org.springframework.orm.jpa.support.JpaDaoSupport
- implements ServiceRegistryDao
Implementation of the ServiceRegistryDao based on JPA.
- Since:
- 3.1
- Version:
- $Revision: 43407 $ $Date: 2008-03-25 09:54:08 -0400 (Tue, 25 Mar 2008) $
- Author:
- Scott Battaglia
| Fields inherited from class org.springframework.dao.support.DaoSupport |
logger |
| Methods inherited from class org.springframework.orm.jpa.support.JpaDaoSupport |
checkDaoConfig, createJpaTemplate, createJpaTemplate, getJpaTemplate, setEntityManager, setEntityManagerFactory, setJpaTemplate |
| Methods inherited from class org.springframework.dao.support.DaoSupport |
afterPropertiesSet, initDao |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JpaServiceRegistryDaoImpl
public JpaServiceRegistryDaoImpl()
delete
public boolean delete(RegisteredService registeredService)
- Description copied from interface:
ServiceRegistryDao
- Remove the service from the data store.
- Specified by:
delete in interface ServiceRegistryDao
- Parameters:
registeredService - the service to remove.
- Returns:
- true if it was removed, false otherwise.
load
public java.util.List<RegisteredService> load()
- Description copied from interface:
ServiceRegistryDao
- Retrieve the services from the data store.
- Specified by:
load in interface ServiceRegistryDao
- Returns:
- the collection of services.
save
public RegisteredService save(RegisteredService registeredService)
- Description copied from interface:
ServiceRegistryDao
- Persist the service in the data store.
- Specified by:
save in interface ServiceRegistryDao
- Parameters:
registeredService - the service to persist.
- Returns:
- the updated RegisteredService.
findServiceById
public RegisteredService findServiceById(long id)
- Specified by:
findServiceById in interface ServiceRegistryDao
Copyright © 2004-2010 Java Architectures Special Interest Group. All Rights Reserved.