Search in sources :

Example 1 with DatabaseBackedPagingProvider

use of ca.uhn.fhir.jpa.search.DatabaseBackedPagingProvider in project hapi-fhir-jpaserver-starter by hapifhir.

the class FhirServerConfigDstu2 method databaseBackedPagingProvider.

@Override
public DatabaseBackedPagingProvider databaseBackedPagingProvider() {
    DatabaseBackedPagingProvider pagingProvider = super.databaseBackedPagingProvider();
    pagingProvider.setDefaultPageSize(appProperties.getDefault_page_size());
    pagingProvider.setMaximumPageSize(appProperties.getMax_page_size());
    return pagingProvider;
}
Also used : DatabaseBackedPagingProvider(ca.uhn.fhir.jpa.search.DatabaseBackedPagingProvider)

Example 2 with DatabaseBackedPagingProvider

use of ca.uhn.fhir.jpa.search.DatabaseBackedPagingProvider in project hapi-fhir-jpaserver-starter by hapifhir.

the class FhirServerConfigR4 method databaseBackedPagingProvider.

@Override
public DatabaseBackedPagingProvider databaseBackedPagingProvider() {
    DatabaseBackedPagingProvider pagingProvider = super.databaseBackedPagingProvider();
    pagingProvider.setDefaultPageSize(appProperties.getDefault_page_size());
    pagingProvider.setMaximumPageSize(appProperties.getMax_page_size());
    return pagingProvider;
}
Also used : DatabaseBackedPagingProvider(ca.uhn.fhir.jpa.search.DatabaseBackedPagingProvider)

Example 3 with DatabaseBackedPagingProvider

use of ca.uhn.fhir.jpa.search.DatabaseBackedPagingProvider in project hapi-fhir-jpaserver-starter by hapifhir.

the class FhirServerConfigDstu3 method databaseBackedPagingProvider.

@Override
public DatabaseBackedPagingProvider databaseBackedPagingProvider() {
    DatabaseBackedPagingProvider pagingProvider = super.databaseBackedPagingProvider();
    pagingProvider.setDefaultPageSize(appProperties.getDefault_page_size());
    pagingProvider.setMaximumPageSize(appProperties.getMax_page_size());
    return pagingProvider;
}
Also used : DatabaseBackedPagingProvider(ca.uhn.fhir.jpa.search.DatabaseBackedPagingProvider)

Example 4 with DatabaseBackedPagingProvider

use of ca.uhn.fhir.jpa.search.DatabaseBackedPagingProvider in project drug-formulary-ri by HL7-DaVinci.

the class FhirServerConfigR5 method databaseBackedPagingProvider.

/**
 * We override the paging provider definition so that we can customize
 * the default/max page sizes for search results. You can set these however
 * you want, although very large page sizes will require a lot of RAM.
 */
@Override
public DatabaseBackedPagingProvider databaseBackedPagingProvider() {
    DatabaseBackedPagingProvider pagingProvider = super.databaseBackedPagingProvider();
    pagingProvider.setDefaultPageSize(HapiProperties.getDefaultPageSize());
    pagingProvider.setMaximumPageSize(HapiProperties.getMaximumPageSize());
    return pagingProvider;
}
Also used : DatabaseBackedPagingProvider(ca.uhn.fhir.jpa.search.DatabaseBackedPagingProvider)

Example 5 with DatabaseBackedPagingProvider

use of ca.uhn.fhir.jpa.search.DatabaseBackedPagingProvider in project drug-formulary-ri by HL7-DaVinci.

the class FhirServerConfigDstu3 method databaseBackedPagingProvider.

/**
 * We override the paging provider definition so that we can customize
 * the default/max page sizes for search results. You can set these however
 * you want, although very large page sizes will require a lot of RAM.
 */
@Override
public DatabaseBackedPagingProvider databaseBackedPagingProvider() {
    DatabaseBackedPagingProvider pagingProvider = super.databaseBackedPagingProvider();
    pagingProvider.setDefaultPageSize(HapiProperties.getDefaultPageSize());
    pagingProvider.setMaximumPageSize(HapiProperties.getMaximumPageSize());
    return pagingProvider;
}
Also used : DatabaseBackedPagingProvider(ca.uhn.fhir.jpa.search.DatabaseBackedPagingProvider)

Aggregations

DatabaseBackedPagingProvider (ca.uhn.fhir.jpa.search.DatabaseBackedPagingProvider)8