org.apache.openjpa.writebehind
Class SimpleWriteBehindCacheKey
java.lang.Object
org.apache.openjpa.writebehind.SimpleWriteBehindCacheKey
- All Implemented Interfaces:
- WriteBehindCacheKey
public class SimpleWriteBehindCacheKey
- extends Object
- implements WriteBehindCacheKey
Simple key implementation (concatenates entity classname with primary key
value).
_className
public String _className
_pk
public Object _pk
SimpleWriteBehindCacheKey
public SimpleWriteBehindCacheKey(String className,
Object pk)
getPk
public Object getPk()
setPk
public void setPk(Object pk)
getClassName
public String getClassName()
setClassName
public void setClassName(String className)
hashCode
public int hashCode()
- Description copied from interface:
WriteBehindCacheKey
- Answers an integer hash for this key.
- Specified by:
hashCode
in interface WriteBehindCacheKey
- Overrides:
hashCode
in class Object
- Returns:
- integer hashcode
equals
public boolean equals(Object obj)
- Description copied from interface:
WriteBehindCacheKey
- Return true if the supplied object is equal to this instance.
- Specified by:
equals
in interface WriteBehindCacheKey
- Overrides:
equals
in class Object
- Parameters:
obj
- object to compare
- Returns:
- True if they are equal, otherwise false.
Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.