KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > efs > openreports > objects > ReportDataSource


1 /*
2  * Copyright (C) 2002 Erik Swenson - eswenson@opensourcesoft.net
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License
6  * as published by the Free Software Foundation; either version 2
7  * of the License, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17  *
18  */

19
20 package org.efs.openreports.objects;
21
22 import java.io.Serializable JavaDoc;
23
24 import org.apache.commons.dbcp.BasicDataSource;
25
26 public class ReportDataSource extends BasicDataSource implements Serializable JavaDoc
27 {
28     private static final long serialVersionUID = 7990031344563814988L;
29     
30     private Integer JavaDoc id;
31     private String JavaDoc name;
32     private boolean jndi;
33     
34     public ReportDataSource() {}
35      
36     public boolean isJndi()
37     {
38         return jndi;
39     }
40
41     public void setJndi(boolean jndi)
42     {
43         this.jndi = jndi;
44     }
45     
46     public void setId(Integer JavaDoc id)
47     {
48         this.id = id;
49     }
50
51     public String JavaDoc toString()
52     {
53         return name;
54     }
55
56     public Integer JavaDoc getId()
57     {
58         return id;
59     }
60
61     public String JavaDoc getName()
62     {
63         return name;
64     }
65
66     public void setName(String JavaDoc name)
67     {
68         this.name = name;
69     }
70
71 }
Popular Tags