/* * Copyright 2002-2006 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.openuap.cms.ds.model; import java.io.Serializable; /** * * <p> * 数据源实体. * </p> * * * <p> * $Id: DataSourceModel.java 3924 2010-10-26 11:53:36Z orangeforjava $ * </p> * * * @preserve private * @author Joseph * @version 1.0 */ public class DataSourceModel implements Serializable { /** * */ private static final long serialVersionUID = 7179147479846688743L; private Long id; /** 数据源名.*/ private String name; /** 驱动类名.*/ private String driverClassName; /** JDBC URL. */ private String url; /** 用户名. */ private String userName; /** 用户密码. */ private String password; private String properties; /** 数据源描述. */ private String description; private int status; private String type; public String getType() { return type; } public void setType(String type) { this.type = type; } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((id == null) ? 0 : id.hashCode()); return result; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; final DataSourceModel other = (DataSourceModel) obj; if (id == null) { if (other.id != null) return false; } else if (!id.equals(other.id)) return false; return true; } public DataSourceModel() { } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getDriverClassName() { return driverClassName; } public void setDriverClassName(String driverClassName) { this.driverClassName = driverClassName; } public String getUrl() { return url; } public void setUrl(String url) { this.url = url; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public String getProperties() { return properties; } public void setProperties(String properties) { this.properties = properties; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public int getStatus() { return status; } public void setStatus(int status) { this.status = status; } public String getUserName() { return userName; } public void setUserName(String userName) { this.userName = userName; } }