| |||||||||||||||||
Source File | Conditionals | Statements | Methods | TOTAL | |||||||||||||
Seasar.Dao.Tests.Dbms\Department.cs | - | 0.0% | 0.0% | 0.0% |
|
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.Text; | |
21 | using Seasar.Dao.Attrs; | |
22 | ||
23 | namespace Seasar.Dao.Tests.Dbms | |
24 | { | |
25 | ||
26 | [Table("DEPT")] | |
27 | public class Department { | |
28 | ||
29 | private int deptno; | |
30 | private String dname; | |
31 | private String loc; | |
32 | private int versionNo; | |
33 | ||
34 | 0 | public Department() |
35 | { | |
36 | } | |
37 | ||
38 | 0 | public int Deptno |
39 | { | |
40 | set { deptno = value; } | |
41 | get { return deptno; } | |
42 | } | |
43 | ||
44 | 0 | public string Dname |
45 | { | |
46 | set { dname = value; } | |
47 | get { return dname; } | |
48 | } | |
49 | ||
50 | 0 | public string Loc |
51 | { | |
52 | set { loc = value; } | |
53 | get { return loc; } | |
54 | } | |
55 | ||
56 | 0 | public int VersionNo |
57 | { | |
58 | set { versionNo = value; } | |
59 | get { return versionNo; } | |
60 | } | |
61 | ||
62 | // public boolean equals(Object other) { | |
63 | // if ( !(other instanceof Department) ) return false; | |
64 | // Department castOther = (Department) other; | |
65 | // return this.getDeptno() == castOther.getDeptno(); | |
66 | // } | |
67 | // | |
68 | // public int hashCode() { | |
69 | // return this.getDeptno(); | |
70 | // } | |
71 | ||
72 | 0 | public String toString() |
73 | { | |
74 | StringBuilder buf = new StringBuilder(); | |
75 | buf.Append(deptno).Append(", "); | |
76 | buf.Append(dname).Append(", "); | |
77 | buf.Append(loc).Append(", "); | |
78 | buf.Append(versionNo); | |
79 | return buf.ToString(); | |
80 | } | |
81 | } | |
82 | } |
|