edu.wisc.my.webproxy.beans.http
Class WebProxyStateJpaDaoImpl

java.lang.Object
  extended by edu.wisc.my.webproxy.beans.http.WebProxyStateJpaDaoImpl
All Implemented Interfaces:
IWebProxyStateDao

public class WebProxyStateJpaDaoImpl
extends Object
implements IWebProxyStateDao

WebProxyStateJpaDaoImpl represents the default JPA implementation of IWebProxyStateDao.

Author:
Jen Bourey, jbourey@unicon.net

Field Summary
protected  org.apache.commons.logging.Log logger
           
 
Constructor Summary
WebProxyStateJpaDaoImpl()
           
 
Method Summary
 IWebProxyState getState(String stateKey)
          Retrieve an IWebProxyState from the store by its unique String key.
 void purgeExpiredCookies()
          Purge expired cookies
 IWebProxyState saveState(IWebProxyState state)
          Save an IWebProxyState to the store.
 void setEntityManager(javax.persistence.EntityManager entityManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final org.apache.commons.logging.Log logger
Constructor Detail

WebProxyStateJpaDaoImpl

public WebProxyStateJpaDaoImpl()
Method Detail

setEntityManager

public void setEntityManager(javax.persistence.EntityManager entityManager)
Parameters:
entityManager - the entityManager to set

getState

public IWebProxyState getState(String stateKey)
Description copied from interface: IWebProxyStateDao
Retrieve an IWebProxyState from the store by its unique String key. If no state currently exists for the given key, the method will return null

Specified by:
getState in interface IWebProxyStateDao
Returns:

saveState

@Transactional
public IWebProxyState saveState(IWebProxyState state)
Description copied from interface: IWebProxyStateDao
Save an IWebProxyState to the store.

Specified by:
saveState in interface IWebProxyStateDao
Returns:

purgeExpiredCookies

@Transactional
public void purgeExpiredCookies()
Description copied from interface: IWebProxyStateDao
Purge expired cookies

Specified by:
purgeExpiredCookies in interface IWebProxyStateDao


Copyright © 2010 Jasig. All Rights Reserved.