org.hibernate.envers.entities.mapper.relation.lazy.initializor
Class AbstractCollectionInitializor<T>

java.lang.Object
  extended by org.hibernate.envers.entities.mapper.relation.lazy.initializor.AbstractCollectionInitializor<T>
All Implemented Interfaces:
Initializor<T>
Direct Known Subclasses:
ArrayCollectionInitializor, BasicCollectionInitializor, ListCollectionInitializor, MapCollectionInitializor

public abstract class AbstractCollectionInitializor<T>
extends Object
implements Initializor<T>

Initializes a persistent collection.

Author:
Adam Warski (adam at warski dot org)

Field Summary
protected  EntityInstantiator entityInstantiator
           
protected  Number revision
           
 
Constructor Summary
AbstractCollectionInitializor(AuditConfiguration verCfg, AuditReaderImplementor versionsReader, RelationQueryGenerator queryGenerator, Object primaryKey, Number revision)
           
 
Method Summary
protected abstract  void addToCollection(T collection, Object collectionRow)
           
 T initialize()
           
protected abstract  T initializeCollection(int size)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

revision

protected final Number revision

entityInstantiator

protected final EntityInstantiator entityInstantiator
Constructor Detail

AbstractCollectionInitializor

public AbstractCollectionInitializor(AuditConfiguration verCfg,
                                     AuditReaderImplementor versionsReader,
                                     RelationQueryGenerator queryGenerator,
                                     Object primaryKey,
                                     Number revision)
Method Detail

initializeCollection

protected abstract T initializeCollection(int size)

addToCollection

protected abstract void addToCollection(T collection,
                                        Object collectionRow)

initialize

public T initialize()
Specified by:
initialize in interface Initializor<T>


Copyright © 2001-2010 Red Hat, Inc. All Rights Reserved.