001/* 002 * #%L 003 * HAPI FHIR JPA Server 004 * %% 005 * Copyright (C) 2014 - 2024 Smile CDR, Inc. 006 * %% 007 * Licensed under the Apache License, Version 2.0 (the "License"); 008 * you may not use this file except in compliance with the License. 009 * You may obtain a copy of the License at 010 * 011 * http://www.apache.org/licenses/LICENSE-2.0 012 * 013 * Unless required by applicable law or agreed to in writing, software 014 * distributed under the License is distributed on an "AS IS" BASIS, 015 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 016 * See the License for the specific language governing permissions and 017 * limitations under the License. 018 * #L% 019 */ 020package ca.uhn.fhir.jpa.dao.data.custom; 021 022import java.util.Collection; 023import java.util.List; 024 025public interface IForcedIdQueries { 026 027 /** 028 * This method returns a Collection where each row is an element in the collection. Each element in the collection 029 * is an object array, where the order matters (the array represents columns returned by the query). 030 * Deleted resources should not be filtered. 031 */ 032 Collection<Object[]> findAndResolveByForcedIdWithNoTypeIncludeDeleted( 033 String theResourceType, Collection<String> theForcedIds); 034 035 /** 036 * This method returns a Collection where each row is an element in the collection. Each element in the collection 037 * is an object array, where the order matters (the array represents columns returned by the query). 038 * Deleted resources are optionally filtered. 039 */ 040 Collection<Object[]> findAndResolveByForcedIdWithNoType( 041 String theResourceType, Collection<String> theForcedIds, boolean theExcludeDeleted); 042 043 /** 044 * This method returns a Collection where each row is an element in the collection. Each element in the collection 045 * is an object array, where the order matters (the array represents columns returned by the query). 046 * Deleted resources are optionally filtered. 047 */ 048 Collection<Object[]> findAndResolveByForcedIdWithNoTypeInPartition( 049 String theResourceType, 050 Collection<String> theForcedIds, 051 Collection<Integer> thePartitionId, 052 boolean theExcludeDeleted); 053 054 /** 055 * This method returns a Collection where each row is an element in the collection. Each element in the collection 056 * is an object array, where the order matters (the array represents columns returned by the query). 057 * Deleted resources are optionally filtered. 058 */ 059 Collection<Object[]> findAndResolveByForcedIdWithNoTypeInPartitionNull( 060 String theResourceType, Collection<String> theForcedIds, boolean theExcludeDeleted); 061 062 /** 063 * This method returns a Collection where each row is an element in the collection. Each element in the collection 064 * is an object array, where the order matters (the array represents columns returned by the query). 065 * Deleted resources are optionally filtered. 066 */ 067 Collection<Object[]> findAndResolveByForcedIdWithNoTypeInPartitionIdOrNullPartitionId( 068 String theNextResourceType, 069 Collection<String> theNextIds, 070 List<Integer> thePartitionIdsWithoutDefault, 071 boolean theExcludeDeleted); 072}