| |||||||||||||||||
Source File | Conditionals | Statements | Methods | TOTAL | |||||||||||||
Seasar.Dao.Tests.Impl\EmployeeAutoDao.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.Impl | |
24 | { | |
25 | /// <summary> | |
26 | /// EmployeeAutoDao の概要の説明です。 | |
27 | /// </summary> | |
28 | [Bean(typeof(Employee))] | |
29 | public interface EmployeeAutoDao | |
30 | { | |
31 | //public object BEAN = typeof(Employee); | |
32 | ||
33 | // public String GetEmployeeByDeptno_ARGS = "deptno"; | |
34 | // public String GetEmployeeByDeptno_ORDER = "deptno asc, empno desc"; | |
35 | //TODO:QueryAttributeはAllowMultiple = trueにすべき? | |
36 | //[Query("order by deptno asc, empno desc")] | |
37 | [Query("deptno=/*deptno*/")] | |
38 | IList GetEmployeeByDeptno(int deptno); | |
39 | ||
40 | // String GetEmployeesBySal_QUERY = "sal BETWEEN ? AND ? ORDER BY empno"; | |
41 | [Query("sal BETWEEN ? AND ? ORDER BY empno")] | |
42 | IList GetEmployeesBySal(float minSal, float maxSal); | |
43 | ||
44 | // String GetEmployeesByEnameJob_ARGS = "enames, jobs"; | |
45 | // String GetEmployeesByEnameJob_QUERY = "ename IN /*enames*/('SCOTT','MARY') AND job IN /*jobs*/('ANALYST', 'FREE')"; | |
46 | [Query("ename IN /*enames*/('SCOTT','MARY') AND job IN /*jobs*/('ANALYST', 'FREE')")] | |
47 | IList GetEmployeesByEnameJob(IList enames, IList jobs); | |
48 | ||
49 | //TODO: | |
50 | //IList GetEmployeesBySearchCondition(EmployeeSearchCondition dto); | |
51 | ||
52 | //IList GetEmployeesByEmployee(Employee dto); | |
53 | ||
54 | // String GetEmployee_ARGS = "empno"; | |
55 | [Query("empno=/*empno*/")] | |
56 | Employee GetEmployee(int empno); | |
57 | ||
58 | void Insert(Employee employee); | |
59 | ||
60 | // String Insert2_NO_PERSISTENT_PROPS = "job, mgr, hiredate, sal, comm, deptno"; | |
61 | [NoPersistentProps("job, mgr, hiredate, sal, comm, deptno")] | |
62 | void Insert2(Employee employee); | |
63 | ||
64 | // String Insert3_PERSISTENT_PROPS = "deptno"; | |
65 | [PersistentProps("deptno")] | |
66 | void Insert3(Employee employee); | |
67 | ||
68 | //NotSupported | |
69 | //void InsertBatch(Employee[] employees); | |
70 | ||
71 | void Update(Employee employee); | |
72 | ||
73 | // String Update2_NO_PERSISTENT_PROPS = "job, mgr, hiredate, sal, comm, deptno"; | |
74 | [NoPersistentProps("job, mgr, hiredate, sal, comm, deptno")] | |
75 | void Update2(Employee employee); | |
76 | ||
77 | // String Update3_PERSISTENT_PROPS = "deptno"; | |
78 | [PersistentProps("deptno")] | |
79 | void Update3(Employee employee); | |
80 | ||
81 | //NotSupported | |
82 | //void UpdateBatch(Employee[] employees); | |
83 | ||
84 | void Delete(Employee employee); | |
85 | ||
86 | //NotSupported | |
87 | //void DeleteBatch(Employee[] employees); | |
88 | } | |
89 | } | |
90 |
|