Line | |
---|
1 |
/** |
---|
2 |
* |
---|
3 |
*/ |
---|
4 |
package org.springframework.samples.kyuriboard.dao.ibatis; |
---|
5 |
|
---|
6 |
import java.io.Serializable; |
---|
7 |
|
---|
8 |
/** |
---|
9 |
* @author DAMI(archy712@naver.com) |
---|
10 |
* |
---|
11 |
*/ |
---|
12 |
public class Sequence implements Serializable { |
---|
13 |
|
---|
14 |
/** |
---|
15 |
* 직렬화 ID |
---|
16 |
*/ |
---|
17 |
private static final long serialVersionUID = 1L; |
---|
18 |
|
---|
19 |
/** |
---|
20 |
* 씨퀀스 이름(PK) |
---|
21 |
*/ |
---|
22 |
private String name; |
---|
23 |
|
---|
24 |
/** |
---|
25 |
* 씨퀀스 번호 |
---|
26 |
*/ |
---|
27 |
private int nextId; |
---|
28 |
|
---|
29 |
/** |
---|
30 |
* Default 생성자 |
---|
31 |
* |
---|
32 |
*/ |
---|
33 |
public Sequence() { |
---|
34 |
} |
---|
35 |
|
---|
36 |
/** |
---|
37 |
* 인자 생성자 |
---|
38 |
* @param name 씨퀀스 이름 |
---|
39 |
* @param nextId 씨퀀스 ID |
---|
40 |
*/ |
---|
41 |
public Sequence(String name, int nextId) { |
---|
42 |
this.name = name; |
---|
43 |
this.nextId = nextId; |
---|
44 |
} |
---|
45 |
|
---|
46 |
/** |
---|
47 |
* @return the name |
---|
48 |
*/ |
---|
49 |
public String getName() { |
---|
50 |
return name; |
---|
51 |
} |
---|
52 |
|
---|
53 |
/** |
---|
54 |
* @param name the name to set |
---|
55 |
*/ |
---|
56 |
public void setName(String name) { |
---|
57 |
this.name = name; |
---|
58 |
} |
---|
59 |
|
---|
60 |
/** |
---|
61 |
* @return the nextId |
---|
62 |
*/ |
---|
63 |
public int getNextId() { |
---|
64 |
return nextId; |
---|
65 |
} |
---|
66 |
|
---|
67 |
/** |
---|
68 |
* @param nextId the nextId to set |
---|
69 |
*/ |
---|
70 |
public void setNextId(int nextId) { |
---|
71 |
this.nextId = nextId; |
---|
72 |
} |
---|
73 |
|
---|
74 |
|
---|
75 |
|
---|
76 |
} |
---|