| |||||||||||||||||
Source File | Conditionals | Statements | Methods | TOTAL | |||||||||||||
Seasar.Dao.Tests.Interceptors\IEmployeeDao.cs | - | - | - | - |
|
1 | #region Copyright | |
2 | /* | |
3 | * Copyright 2005 the Seasar Foundation and the Others. | |
4 | * | |
5 | * Licensed under the Apache License, Version 2.0 (the "License"); | |
6 | * you may not use this file except in compliance with the License. | |
7 | * You may obtain a copy of the License at | |
8 | * | |
9 | * http://www.apache.org/licenses/LICENSE-2.0 | |
10 | * | |
11 | * Unless required by applicable law or agreed to in writing, software | |
12 | * distributed under the License is distributed on an "AS IS" BASIS, | |
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, | |
14 | * either express or implied. See the License for the specific language | |
15 | * governing permissions and limitations under the License. | |
16 | */ | |
17 | #endregion | |
18 | ||
19 | using System; | |
20 | using System.Collections; | |
21 | using Seasar.Dao.Attrs; | |
22 | ||
23 | namespace Seasar.Dao.Tests.Interceptors | |
24 | { | |
25 | [Bean(typeof(Employee))] | |
26 | public interface IEmployeeDao | |
27 | { | |
28 | /// <summary> | |
29 | /// 全ての従業員を取得する | |
30 | /// </summary> | |
31 | /// <returns>Employeeのリスト</returns> | |
32 | IList GetAllEmployees(); | |
33 | ||
34 | /// <summary> | |
35 | /// 従業員番号から従業員を取得する | |
36 | /// </summary> | |
37 | /// <param name="empno">従業員番号</param> | |
38 | /// <returns>従業員</returns> | |
39 | [Query("empno=/*empno*/")] | |
40 | Employee GetEmployee(int empno); | |
41 | // | |
42 | // /// <summary> | |
43 | // /// | |
44 | // /// </summary> | |
45 | // /// <param name="deptno"></param> | |
46 | // /// <returns></returns> | |
47 | // Employee[] GetEmployeesByDeptno(int deptno); | |
48 | ||
49 | /// <summary> | |
50 | /// 従業員の件数を取得する | |
51 | /// </summary> | |
52 | /// <returns>従業員数</returns> | |
53 | [Sql("select count(*) from EMP")] | |
54 | int GetCount(); | |
55 | ||
56 | /// <summary> | |
57 | /// 従業員を追加する | |
58 | /// </summary> | |
59 | /// <param name="empno">従業員番号</param> | |
60 | /// <param name="ename">従業員名</param> | |
61 | /// <returns>追加件数</returns> | |
62 | int Insert(int empno, String ename); | |
63 | ||
64 | /// <summary> | |
65 | /// 従業員を更新する | |
66 | /// </summary> | |
67 | /// <param name="employee">従業員</param> | |
68 | /// <returns>更新件数</returns> | |
69 | int Update(Employee employee); | |
70 | } | |
71 | } | |
72 |
|