org.eclipse.emf.ecore.sdo.util
Class SDOUtil.Accessor.Pool

java.lang.Object
  extended byBasicEList
      extended byorg.eclipse.emf.ecore.sdo.util.SDOUtil.Accessor.Pool
Enclosing class:
SDOUtil.Accessor

protected static class SDOUtil.Accessor.Pool
extends BasicEList

Only the get and recycle methods should be call; they are the only synchronized methods.

See Also:
Serialized Form

Field Summary
protected  SDOUtil.Accessor[] accessors
           
 
Constructor Summary
SDOUtil.Accessor.Pool()
           
 
Method Summary
 SDOUtil.Accessor get()
          Returns a recyled instance or a new instance.
protected  Object[] newData(int capacity)
           
 void recycle(SDOUtil.Accessor accessor)
          Safely gives the accessor back for recycled use.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

accessors

protected SDOUtil.Accessor[] accessors
Constructor Detail

SDOUtil.Accessor.Pool

public SDOUtil.Accessor.Pool()
Method Detail

newData

protected Object[] newData(int capacity)

get

public SDOUtil.Accessor get()
Returns a recyled instance or a new instance.


recycle

public void recycle(SDOUtil.Accessor accessor)
Safely gives the accessor back for recycled use.


Copyright 2001-2004 IBM Corporation and others.
All Rights Reserved.