01: /*
02: * Copyright (C) 2002 Erik Swenson - erik@oreports.com
03: *
04: * This program is free software; you can redistribute it and/or
05: * modify it under the terms of the GNU General Public License
06: * as published by the Free Software Foundation; either version 2
07: * of the License, or (at your option) any later version.
08: *
09: * 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;
23:
24: import org.apache.commons.dbcp.BasicDataSource;
25:
26: public class ReportDataSource extends BasicDataSource implements
27: Serializable {
28: private static final long serialVersionUID = 7990031344563814988L;
29:
30: private Integer id;
31: private String name;
32: private boolean jndi;
33:
34: public ReportDataSource() {
35: }
36:
37: public boolean isJndi() {
38: return jndi;
39: }
40:
41: public void setJndi(boolean jndi) {
42: this .jndi = jndi;
43: }
44:
45: public void setId(Integer id) {
46: this .id = id;
47: }
48:
49: public String toString() {
50: return name;
51: }
52:
53: public Integer getId() {
54: return id;
55: }
56:
57: public String getName() {
58: return name;
59: }
60:
61: public void setName(String name) {
62: this.name = name;
63: }
64:
65: }
|