KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > ibatis > jpetstore > domain > Sequence


1 package com.ibatis.jpetstore.domain;
2
3 import java.io.Serializable JavaDoc;
4
5 public class Sequence implements Serializable JavaDoc {
6
7   /* Private Fields */
8
9   private String JavaDoc name;
10   private int nextId;
11
12   /* Constructors */
13
14   public Sequence() {
15   }
16
17   public Sequence(String JavaDoc name, int nextId) {
18     this.name = name;
19     this.nextId = nextId;
20   }
21
22   /* JavaBeans Properties */
23
24   public String JavaDoc getName() {
25     return name;
26   }
27
28   public void setName(String JavaDoc name) {
29     this.name = name;
30   }
31
32   public int getNextId() {
33     return nextId;
34   }
35
36   public void setNextId(int nextId) {
37     this.nextId = nextId;
38   }
39
40 }
41
Popular Tags