Preparations for #17912: More DAO methods and relevant unit test. Refs #17912.