KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > jaspersoft > jasperserver > war > dto > OlapDataSourceWrapper


1 /*
2  * Copyright (C) 2006 JasperSoft http://www.jaspersoft.com
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed WITHOUT ANY WARRANTY; and without the
10  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11  * See the GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program; if not, see http://www.gnu.org/licenses/gpl.txt
15  * or write to:
16  *
17  * Free Software Foundation, Inc.,
18  * 59 Temple Place - Suite 330,
19  * Boston, MA USA 02111-1307
20  */

21 package com.jaspersoft.jasperserver.war.dto;
22
23 import java.io.Serializable JavaDoc;
24 import java.util.ArrayList JavaDoc;
25 import java.util.List JavaDoc;
26
27 import com.jaspersoft.jasperserver.api.metadata.jasperreports.domain.ReportDataSource;
28 import com.jaspersoft.jasperserver.war.common.JasperServerConstImpl;
29
30 /**
31  *
32  * OlapDataSourceWrapper provides the wrapper for the
33  * OlapDataSourceAction object
34  *
35  * @author jshih
36  */

37 public class OlapDataSourceWrapper extends BaseDTO implements Serializable JavaDoc {
38     private ReportDataSource olapDataSource;
39     private List JavaDoc allDatasources;
40     private List JavaDoc allTypes;
41     private boolean lookup;
42     private String JavaDoc type;
43     private String JavaDoc source;
44     private String JavaDoc selectedUri;
45     private byte parentMode;
46     
47     public boolean isLookup() {
48         return lookup;
49     }
50     public void setLookup(boolean lookup) {
51         this.lookup = lookup;
52     }
53     public String JavaDoc getSource() {
54         return source;
55     }
56     public void setSource(String JavaDoc source) {
57         this.source = source;
58     }
59     public String JavaDoc getType() {
60         return type;
61     }
62     public void setType(String JavaDoc type) {
63         this.type = type;
64     }
65     public List JavaDoc getAllDatasources() {
66         return allDatasources;
67     }
68     public void setAllDatasources(List JavaDoc allDatasources) {
69         this.allDatasources = allDatasources;
70     }
71     public List JavaDoc getAllTypes() {
72         if(allTypes==null){
73             allTypes=new ArrayList JavaDoc();
74             allTypes.add(JasperServerConstImpl.getJDBCDatasourceType());
75             allTypes.add(JasperServerConstImpl.getJNDIDatasourceType());
76         }
77         return allTypes;
78     }
79     public void setAllTypes(List JavaDoc allTypes) {
80         this.allTypes = allTypes;
81     }
82     public ReportDataSource getOlapDataSource() {
83         return olapDataSource;
84     }
85     public void setOlapDataSource(ReportDataSource olapDataSource) {
86         this.olapDataSource = olapDataSource;
87     }
88     public String JavaDoc getSelectedUri() {
89         return selectedUri;
90     }
91     public void setSelectedUri(String JavaDoc selectedUri) {
92         this.selectedUri = selectedUri;
93     }
94
95     public byte getParentMode() {
96         return parentMode;
97     }
98
99     public void setParentMode(byte parentMode) {
100         this.parentMode = parentMode;
101     }
102 }
103
Popular Tags