Patch from Zell to fix cache keys.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@2108 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
mdb
2007-06-01 19:53:09 +00:00
parent fcb3ba6fd5
commit 9c8f59ee25
+2 -2
View File
@@ -42,7 +42,7 @@ import com.samskivert.util.StringUtil;
* a convenience, and may also be instantiated explicitly.
*/
public class Key<T extends PersistentRecord> extends Where
implements CacheKey, CacheInvalidator
implements CacheKey, CacheInvalidator, Serializable
{
/**
* Constructs a new single-column {@code Key} with the given value.
@@ -151,7 +151,7 @@ public class Key<T extends PersistentRecord> extends Where
// from CacheKey
public Serializable getCacheKey ()
{
return _values;
return this; // TODO: Optimally return a special class here containing only _values.
}
// from CacheInvalidator