/* * Copyright 2014 by SCSK Corporation. * * This file is part of PrimeCloud Controller(TM). * * PrimeCloud Controller(TM) is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * PrimeCloud Controller(TM) is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with PrimeCloud Controller(TM). If not, see <http://www.gnu.org/licenses/>. */ package jp.primecloud.auto.dao.crud; import java.util.Collection; import java.util.List; import jp.primecloud.auto.entity.crud.PlatformAzure; /** * <p> * PLATFORM_AZUREに対応したDAOのベースインタフェースです。 * </p> * */ public interface BasePlatformAzureDao { /** * 主キーに該当するレコードを検索します。 * * @param platformNo platformNo * @return 主キーに該当するレコードのエンティティ。レコードがない場合はnull。 */ public PlatformAzure read( Long platformNo ); /** * 全てのレコードを検索します。 * * @return 全てのレコードのエンティティのリスト。レコードがない場合は空リスト。 */ public List<PlatformAzure> readAll(); /** * 主キーのコレクションに該当するレコードを検索します。 * * @param platformNos platformNoのコレクション * @return 主キーのコレクションに該当するレコードのエンティティのリスト。レコードがない場合は空リスト。 */ public List<PlatformAzure> readInPlatformNos( Collection<Long> platformNos ); /** * 与えられたエンティティの内容でレコードを挿入します。 * * @param entity エンティティ */ public void create(PlatformAzure entity); /** * 与えられたエンティティの内容でレコードを更新します。 * * @param entity エンティティ */ public void update(PlatformAzure entity); /** * 与えられたエンティティのレコードを削除します。 * * @param entity エンティティ */ public void delete(PlatformAzure entity); /** * 全てのレコードを削除します。 */ public void deleteAll(); /** * 主キーに該当するレコードを削除します。 * * @param platformNo platformNo */ public void deleteByPlatformNo( Long platformNo ); /** * 全てのレコードの件数を取得します。 * * @return 全てのレコードの件数。 */ public long countAll(); /** * 主キーに該当するレコードの件数を取得します。 * * @param platformNo platformNo * @return 主キーに該当するレコードの件数。 */ public long countByPlatformNo( Long platformNo ); }