com.sleepycat.persist.impl
Class MapProxy<K,V>

java.lang.Object
  extended by com.sleepycat.persist.impl.MapProxy<K,V>
All Implemented Interfaces:
PersistentProxy<Map<K,V>>
Direct Known Subclasses:
MapProxy.HashMapProxy, MapProxy.TreeMapProxy

@Persistent
abstract class MapProxy<K,V>
extends Object
implements PersistentProxy<Map<K,V>>

Proxy for a Map.

Author:
Mark Hayes

Nested Class Summary
(package private) static class MapProxy.HashMapProxy<K,V>
           
(package private) static class MapProxy.TreeMapProxy<K,V>
           
 
Constructor Summary
protected MapProxy()
           
 
Method Summary
 Map<K,V> convertProxy()
          Returns a new proxied class instance to which the state of this proxy instance has been copied.
 void initializeProxy(Map<K,V> map)
          Copies the state of a given proxied class instance to this proxy instance.
protected abstract  Map<K,V> newInstance(int size)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapProxy

protected MapProxy()
Method Detail

initializeProxy

public final void initializeProxy(Map<K,V> map)
Description copied from interface: PersistentProxy
Copies the state of a given proxied class instance to this proxy instance.

Specified by:
initializeProxy in interface PersistentProxy<Map<K,V>>

convertProxy

public final Map<K,V> convertProxy()
Description copied from interface: PersistentProxy
Returns a new proxied class instance to which the state of this proxy instance has been copied.

Specified by:
convertProxy in interface PersistentProxy<Map<K,V>>

newInstance

protected abstract Map<K,V> newInstance(int size)


Copyright 2004-2006 Sleepycat, Inc. All Rights Reserved.