org.jboss.cache.pojo.collection
Class CachedObjectArray

java.lang.Object
  extended by org.jboss.cache.pojo.collection.CachedArray
      extended by org.jboss.cache.pojo.collection.CachedObjectArray

public class CachedObjectArray
extends CachedArray

A CachedObjectArray is used to back arrays with a component type that extends Object. It currently maps each array element to a cache Node, to support fine-grained locking.

Author:
Jason T. Greene

Field Summary
 
Fields inherited from class org.jboss.cache.pojo.collection.CachedArray
cache, fqn
 
Constructor Summary
protected CachedObjectArray(Fqn<?> fqn, Class<?> type, PojoCacheImpl cache)
           
 
Method Summary
 void destroy()
           
 Object get(int index)
           
 void set(int index, Object element)
           
 
Methods inherited from class org.jboss.cache.pojo.collection.CachedArray
create, getFqn, length, load, toArray, writeInfo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachedObjectArray

protected CachedObjectArray(Fqn<?> fqn,
                            Class<?> type,
                            PojoCacheImpl cache)
Method Detail

set

public void set(int index,
                Object element)
Specified by:
set in class CachedArray

get

public Object get(int index)
Specified by:
get in class CachedArray

destroy

public void destroy()
Overrides:
destroy in class CachedArray


Copyright 2008 JBoss, a division of Red Hat. All Rights Reserved.