123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- package com.sysmodel.datamodel.xmlmodel.impl;
- import com.sysmodel.datamodel.xmlmodel.able.MdpDataSource;
- public class MdpDataSourceImpl implements MdpDataSource{
- private int dataSourceid;
- private String description;
- private String dataBase;
- private String URL;
- private String user;
- private String password;
- private String JNDI;
- // private String dataSourceType;
- public boolean compare(Object obj) {
- if (obj instanceof MdpDataSourceImpl) {
- if (((MdpDataSourceImpl) obj).description.equals(this.description))
- return true;
- }
- return false;
- }
- public boolean equals(Object obj) {
- if (obj instanceof MdpDataSourceImpl) {
- if (((MdpDataSourceImpl) obj).getDataSourceid() == this.dataSourceid)
- return true;
- }
- return false;
- }
- public String toString() {
- return this.description;
- }
- public int getDataSourceid() {
- return dataSourceid;
- }
- public void setDataSourceid(int dataSourceid) {
- this.dataSourceid = dataSourceid;
- }
- public String getDescription() {
- return description;
- }
- public void setDescription(String description) {
- this.description = description;
- }
- public String getJNDI() {
- return JNDI;
- }
- public void setJNDI(String jndi) {
- JNDI = jndi;
- }
- public String getPassword() {
- return password;
- }
- public void setPassword(String password) {
- this.password = password;
- }
- public String getURL() {
- return URL;
- }
- public void setURL(String url) {
- URL = url;
- }
- public String getUser() {
- return user;
- }
- public void setUser(String user) {
- this.user = user;
- }
- // public String getDataSourceType() {
- // return dataSourceType;
- // }
- //
- // public void setDataSourceType(String dataSourceType) {
- // this.dataSourceType = dataSourceType;
- // }
- public String getDataBase() {
- return dataBase;
- }
- public void setDataBase(String dataBase) {
- this.dataBase = dataBase;
- }
- }
|