public class PersistedJpaBundleProvider extends Object implements IBundleProvider
Constructor and Description |
---|
PersistedJpaBundleProvider(String theSearchUuid,
IDao theDao) |
Modifier and Type | Method and Description |
---|---|
void |
clearCachedDataForUnitTest()
When HAPI FHIR server is running "for real", a new
instance of the bundle provider is created to serve
every HTTP request, so it's ok for us to keep
state in here and expect that it will go away.
|
protected List<IBaseResource> |
doSearchOrEverything(int theFromIndex,
int theToIndex) |
boolean |
ensureSearchEntityLoaded()
Returns false if the entity can't be found
|
InstantDt |
getPublished() |
List<IBaseResource> |
getResources(int theFromIndex,
int theToIndex) |
String |
getUuid() |
boolean |
isCacheHit() |
Integer |
preferredPageSize() |
void |
setContext(FhirContext theContext) |
void |
setEntityManager(javax.persistence.EntityManager theEntityManager) |
void |
setPlatformTransactionManager(org.springframework.transaction.PlatformTransactionManager thePlatformTransactionManager) |
void |
setSearchCoordinatorSvc(ISearchCoordinatorSvc theSearchCoordinatorSvc) |
void |
setSearchDao(ISearchDao theSearchDao) |
protected void |
setSearchEntity(Search theSearchEntity) |
Integer |
size() |
protected List<IBaseResource> |
toResourceList(ISearchBuilder sb,
List<Long> pidsSubList) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCurrentPageId, getNextPageId, getPreviousPageId
public void clearCachedDataForUnitTest()
protected List<IBaseResource> doSearchOrEverything(int theFromIndex, int theToIndex)
public boolean ensureSearchEntityLoaded()
public InstantDt getPublished()
getPublished
in interface IBundleProvider
public List<IBaseResource> getResources(int theFromIndex, int theToIndex)
getResources
in interface IBundleProvider
public String getUuid()
getUuid
in interface IBundleProvider
public boolean isCacheHit()
public Integer preferredPageSize()
preferredPageSize
in interface IBundleProvider
public void setContext(FhirContext theContext)
public void setEntityManager(javax.persistence.EntityManager theEntityManager)
public void setPlatformTransactionManager(org.springframework.transaction.PlatformTransactionManager thePlatformTransactionManager)
public void setSearchCoordinatorSvc(ISearchCoordinatorSvc theSearchCoordinatorSvc)
public void setSearchDao(ISearchDao theSearchDao)
protected void setSearchEntity(Search theSearchEntity)
public Integer size()
size
in interface IBundleProvider
protected List<IBaseResource> toResourceList(ISearchBuilder sb, List<Long> pidsSubList)
Copyright © 2014–2019 University Health Network. All rights reserved.