org.hibernate.search.query.hibernate.impl
Class ProjectionLoader

java.lang.Object
  extended by org.hibernate.search.query.hibernate.impl.ProjectionLoader
All Implemented Interfaces:
Loader

public class ProjectionLoader
extends Object
implements Loader

Implementation of the Loader interface used for loading entities which are projected via ProjectionConstants.THIS.

Author:
Emmanuel Bernard, Hardy Ferentschik

Constructor Summary
ProjectionLoader()
           
 
Method Summary
 void init(Session session, SearchFactoryImplementor searchFactoryImplementor, ObjectsInitializer objectsInitializer, TimeoutManager timeoutManager)
           
 void init(Session session, SearchFactoryImplementor searchFactoryImplementor, ResultTransformer transformer, ObjectLoaderBuilder loaderBuilder, String[] aliases, TimeoutManager timeoutManager)
           
 boolean isSizeSafe()
           
 List load(EntityInfo... entityInfos)
           
 Object load(EntityInfo entityInfo)
           
 Object loadWithoutTiming(EntityInfo entityInfo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectionLoader

public ProjectionLoader()
Method Detail

init

public void init(Session session,
                 SearchFactoryImplementor searchFactoryImplementor,
                 ObjectsInitializer objectsInitializer,
                 TimeoutManager timeoutManager)
Specified by:
init in interface Loader

init

public void init(Session session,
                 SearchFactoryImplementor searchFactoryImplementor,
                 ResultTransformer transformer,
                 ObjectLoaderBuilder loaderBuilder,
                 String[] aliases,
                 TimeoutManager timeoutManager)

load

public Object load(EntityInfo entityInfo)
Specified by:
load in interface Loader

loadWithoutTiming

public Object loadWithoutTiming(EntityInfo entityInfo)
Specified by:
loadWithoutTiming in interface Loader

load

public List load(EntityInfo... entityInfos)
Specified by:
load in interface Loader

isSizeSafe

public boolean isSizeSafe()
Specified by:
isSizeSafe in interface Loader


Copyright © 2006-2012 Red Hat Middleware, LLC. All Rights Reserved