|
From: <hib...@li...> - 2006-05-09 13:07:00
|
Author: epbernard
Date: 2006-05-09 09:06:55 -0400 (Tue, 09 May 2006)
New Revision: 9918
Modified:
trunk/Hibernate3/src/org/hibernate/cache/EhCache.java
Log:
HHH-1732
Modified: trunk/Hibernate3/src/org/hibernate/cache/EhCache.java
===================================================================
--- trunk/Hibernate3/src/org/hibernate/cache/EhCache.java 2006-05-09 09:43:31 UTC (rev 9917)
+++ trunk/Hibernate3/src/org/hibernate/cache/EhCache.java 2006-05-09 13:06:55 UTC (rev 9918)
@@ -17,7 +17,6 @@
package org.hibernate.cache;
import java.io.IOException;
-import java.io.Serializable;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
@@ -97,9 +96,9 @@
/**
* Puts an object into the cache.
*
- * @param key a {@link Serializable} key
- * @param value a {@link Serializable} value
- * @throws CacheException if the parameters are not {@link Serializable}, the {@link CacheManager}
+ * @param key a key
+ * @param value a value
+ * @throws CacheException if the {@link CacheManager}
* is shutdown or another {@link Exception} occurs.
*/
public void update(Object key, Object value) throws CacheException {
@@ -109,9 +108,9 @@
/**
* Puts an object into the cache.
*
- * @param key a {@link Serializable} key
- * @param value a {@link Serializable} value
- * @throws CacheException if the parameters are not {@link Serializable}, the {@link CacheManager}
+ * @param key a key
+ * @param value a value
+ * @throws CacheException if the {@link CacheManager}
* is shutdown or another {@link Exception} occurs.
*/
public void put(Object key, Object value) throws CacheException {
@@ -254,7 +253,7 @@
Iterator iter = cache.getKeys().iterator();
while ( iter.hasNext() ) {
Object key = iter.next();
- result.put( key, cache.get( (Serializable) key ).getValue() );
+ result.put( key, cache.get( key ).getObjectValue() );
}
return result;
}
|