Interface IForcedIdDao

    • Method Detail

      • deleteByPid

        @Modifying
        @Query("DELETE FROM ForcedId t WHERE t.myId = :pid")
        void deleteByPid​(@Param("pid")
                         Long theId)
      • findAndResolveByForcedIdWithNoType

        @Query("SELECT    f.myResourceType, f.myResourcePid, f.myForcedId, t.myDeleted FROM ForcedId f JOIN ResourceTable t ON t.myId = f.myResourcePid WHERE f.myResourceType = :resource_type AND f.myForcedId IN ( :forced_id )")
        Collection<Object[]> findAndResolveByForcedIdWithNoType​(@Param("resource_type")
                                                                String theResourceType,
                                                                @Param("forced_id")
                                                                Collection<String> theForcedIds)
        This method returns a Collection where each row is an element in the collection. Each element in the collection is an object array, where the order matters (the array represents columns returned by the query). Be careful if you change this query in any way.
      • findAndResolveByForcedIdWithNoTypeInPartition

        @Query("SELECT    f.myResourceType, f.myResourcePid, f.myForcedId, t.myDeleted FROM ForcedId f JOIN ResourceTable t ON t.myId = f.myResourcePid WHERE f.myResourceType = :resource_type AND f.myForcedId IN ( :forced_id ) AND f.myPartitionIdValue IN :partition_id")
        Collection<Object[]> findAndResolveByForcedIdWithNoTypeInPartition​(@Param("resource_type")
                                                                           String theResourceType,
                                                                           @Param("forced_id")
                                                                           Collection<String> theForcedIds,
                                                                           @Param("partition_id")
                                                                           Collection<Integer> thePartitionId)
        This method returns a Collection where each row is an element in the collection. Each element in the collection is an object array, where the order matters (the array represents columns returned by the query). Be careful if you change this query in any way.
      • findAndResolveByForcedIdWithNoTypeInPartitionNull

        @Query("SELECT    f.myResourceType, f.myResourcePid, f.myForcedId, t.myDeleted FROM ForcedId f JOIN ResourceTable t ON t.myId = f.myResourcePid WHERE f.myResourceType = :resource_type AND f.myForcedId IN ( :forced_id ) AND f.myPartitionIdValue IS NULL")
        Collection<Object[]> findAndResolveByForcedIdWithNoTypeInPartitionNull​(@Param("resource_type")
                                                                               String theResourceType,
                                                                               @Param("forced_id")
                                                                               Collection<String> theForcedIds)
        This method returns a Collection where each row is an element in the collection. Each element in the collection is an object array, where the order matters (the array represents columns returned by the query). Be careful if you change this query in any way.
      • findAndResolveByForcedIdWithNoTypeInPartitionIdOrNullPartitionId

        @Query("SELECT    f.myResourceType, f.myResourcePid, f.myForcedId, t.myDeleted FROM ForcedId f JOIN ResourceTable t ON t.myId = f.myResourcePid WHERE f.myResourceType = :resource_type AND f.myForcedId IN ( :forced_id ) AND (f.myPartitionIdValue IS NULL OR f.myPartitionIdValue IN :partition_id)")
        Collection<Object[]> findAndResolveByForcedIdWithNoTypeInPartitionIdOrNullPartitionId​(@Param("resource_type")
                                                                                              String theNextResourceType,
                                                                                              @Param("forced_id")
                                                                                              Collection<String> theNextIds,
                                                                                              @Param("forced_id")
                                                                                              List<Integer> thePartitionIdsWithoutDefault)
        This method returns a Collection where each row is an element in the collection. Each element in the collection is an object array, where the order matters (the array represents columns returned by the query). Be careful if you change this query in any way.