org.alfresco.repo.avm
Class LookupKey

java.lang.Object
  extended by org.alfresco.repo.avm.LookupKey
All Implemented Interfaces:
java.io.Serializable

public class LookupKey
extends java.lang.Object
implements java.io.Serializable

This is the key by which Lookup's are retrieved from the cache.

See Also:
Serialized Form

Constructor Summary
LookupKey(int version, SimplePath path, java.lang.String storeName, boolean write, boolean includeDeleted)
          Create one from whole cloth.
LookupKey(LookupKey other)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getStoreName()
          Get the store name for this key.
 int hashCode()
           
 boolean isWrite()
          Is this a write lookup.
 void setWrite(boolean write)
          Set the writeness of this key.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LookupKey

public LookupKey(int version,
                 SimplePath path,
                 java.lang.String storeName,
                 boolean write,
                 boolean includeDeleted)
Create one from whole cloth.

Parameters:
version - The version we're looking under.
path - The path.
storeName - The name of the store.
write - Whether this is a write lookup.
includeDeleted - Whether this lookup should include deleted items.

LookupKey

public LookupKey(LookupKey other)
Method Detail

setWrite

public void setWrite(boolean write)
Set the writeness of this key.


getStoreName

public java.lang.String getStoreName()
Get the store name for this key.

Returns:
The store name.

isWrite

public boolean isWrite()
Is this a write lookup.

Returns:
Whether this is a write lookup.

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.