org.jasig.cas.services
Class JpaServiceRegistryDaoImpl

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.jpa.support.JpaDaoSupport
          extended by 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

Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
JpaServiceRegistryDaoImpl()
           
 
Method Summary
 boolean delete(RegisteredService registeredService)
          Remove the service from the data store.
 RegisteredService findServiceById(long id)
           
 java.util.List<RegisteredService> load()
          Retrieve the services from the data store.
 RegisteredService save(RegisteredService registeredService)
          Persist the service in the data store.
 
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
 

Constructor Detail

JpaServiceRegistryDaoImpl

public JpaServiceRegistryDaoImpl()
Method Detail

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.