com.sleepycat.persist.impl
Class CollectionProxy<E>
java.lang.Object
com.sleepycat.persist.impl.CollectionProxy<E>
- All Implemented Interfaces:
- PersistentProxy<Collection<E>>
- Direct Known Subclasses:
- CollectionProxy.ArrayListProxy, CollectionProxy.HashSetProxy, CollectionProxy.LinkedListProxy, CollectionProxy.TreeSetProxy
@Persistent
abstract class CollectionProxy<E>
- extends Object
- implements PersistentProxy<Collection<E>>
Proxy for Collection types.
- Author:
- Mark Hayes
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CollectionProxy
protected CollectionProxy()
initializeProxy
public final void initializeProxy(Collection<E> collection)
- Description copied from interface:
PersistentProxy
- Copies the state of a given proxied class instance to this proxy
instance.
- Specified by:
initializeProxy
in interface PersistentProxy<Collection<E>>
convertProxy
public final Collection<E> 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<Collection<E>>
newInstance
protected abstract Collection<E> newInstance(int size)
getElements
static Object[] getElements(RawObject collection)
setElements
static void setElements(RawObject collection,
Object[] elements)
copyElements
static void copyElements(RecordInput input,
Format format,
Format keyFormat,
Set results)
Copyright (c) 2004-2010 Oracle. All rights reserved.