org.ujorm.orm.ao
Class CacheKey

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

public abstract class CacheKey
extends Object

UJO CacheKey

See Also:
MetaParams

Constructor Summary
CacheKey()
           
 
Method Summary
 boolean equals(Object obj)
          Has the two objects the same PK values ?
abstract  Class getType()
          OrmUjo class
abstract  Object getValue(int index)
          Returns a PK on the selected index.
 int hashCode()
          Returns hash code
static CacheKey newInstance(Class type, Object... pks)
          Constructor for many keys
static CacheKey newInstance(Class type, 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 Object getValue(int index)
Returns a PK on the selected index. PK must not be null.


getType

public abstract Class getType()
OrmUjo class


equals

public boolean equals(Object obj)
Has the two objects the same PK values ?

Overrides:
equals in class Object

hashCode

public int hashCode()
Returns hash code

Overrides:
hashCode in class Object

newInstance

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


newInstance

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


newInstance

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



Copyright 2013, Pavel Ponec