org.ujoframework.orm.ao
Class CacheKey

java.lang.Object
  extended by org.ujoframework.orm.ao.CacheKey

public abstract class CacheKey
extends java.lang.Object

UJO CacheKey

Author:
Pavel Ponec
See Also:
MetaParams

Constructor Summary
CacheKey()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
          Has the two objects the same PK values include BO type ?
abstract  java.lang.Class getType()
          OrmUjo class
abstract  java.lang.Object getValue(int index)
          Returns a PK on the selected index.
 int hashCode()
          Returns hash code
static CacheKey newInstance(java.lang.Class type, java.lang.Object... pks)
          Constructor for many keys
static CacheKey newInstance(java.lang.Class type, java.lang.Object pk)
          Constructor for one keyk
static CacheKey newInstance(OrmUjo bo, MetaPKey pkey)
          Constructor for the OrmUjo
abstract  int size()
          Count of PKs
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheKey

public CacheKey()
Method Detail

size

public abstract int size()
Count of PKs


getValue

public abstract java.lang.Object getValue(int index)
Returns a PK on the selected index. PK must not be null.


getType

public abstract java.lang.Class getType()
OrmUjo class


equals

public boolean equals(java.lang.Object obj)
Has the two objects the same PK values include BO type ?

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Returns hash code

Overrides:
hashCode in class java.lang.Object

newInstance

public static CacheKey newInstance(OrmUjo bo,
                                   MetaPKey pkey)
Constructor for the OrmUjo


newInstance

public static CacheKey newInstance(java.lang.Class type,
                                   java.lang.Object pk)
Constructor for one keyk


newInstance

public static CacheKey newInstance(java.lang.Class type,
                                   java.lang.Object... pks)
Constructor for many keys



Copyright © 2010. All Rights Reserved.