1   package org.unitedfront2.dao;
2   
3   import org.unitedfront2.domain.SampleDomain;
4   
5   public interface SampleDomainDao extends Registerable<SampleDomain>,
6       SimpleFindable<SampleDomain>, Updatable<SampleDomain>, SimpleDeletable,
7       Dao {
8   
9       /**
10       * 指定したコードを持つサンプルドメインを取得します。
11       *
12       * @param code コード
13       * @return サンプルドメイン、見つからなければ <code>null</code>
14       */
15      SampleDomain findByCode(String code);
16  
17  
18      /**
19       * データ総件数を取得します。
20       *
21       * @return データ総件数
22       */
23      int count();
24  }