blob: 98cc24b8c4054d60aaf12a4fa3881013fb06086d [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2010-2013 Oracle. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0
* which accompanies this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
* and the Eclipse Distribution License is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* Contributors:
* dclarke - EclipseLink 2.4 - MySports Demo Bug 344608
******************************************************************************/
package eclipselink.example.mysports.admin.model;
/**
* Represents an application's datasource. Within the admin application each
* data source is managed with both the name in host container as well as the
* detailed JDBC information to support schema provisioning.
*
* @author dclarke
* @since EclipseLink 2.4
*/
public class Datasource {
/**
* Data source JNDI name
*/
private String name;
private String description;
private String driver;
private String url;
private String user;
private String password;
private long version;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getDriver() {
return driver;
}
public void setDriver(String driver) {
this.driver = driver;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public String getUser() {
return user;
}
public void setUser(String user) {
this.user = user;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public long getVersion() {
return version;
}
public String toString() {
return "DataSource[" + getName() + "]";
}
}