/**
 * Copyright (C) 2000 - 2009 Silverpeas
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * As a special exception to the terms and conditions of version 3.0 of
 * the GPL, you may redistribute this Program in connection with Free/Libre
 * Open Source Software ("FLOSS") applications as described in Silverpeas's
 * FLOSS exception.  You should have recieved a copy of the text describing
 * the FLOSS exception, and it is also available here:
 * "http://repository.silverpeas.com/legal/licensing"
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package com.stratelia.silverpeas.connecteurJDBC.model;

import com.stratelia.webactiv.persistence.SilverpeasBean;

public class ConnecteurJDBCConnectionInfoDetail extends SilverpeasBean {

  private String JDBCdriverName = "";
  private String JDBCurl = "";
  private String login = "";
  private String password = "";
  private String SQLreq = "";
  private int rowLimit;

  // getters
  public String getJDBCdriverName() {
    return JDBCdriverName;
  }

  public String getJDBCurl() {
    return JDBCurl;
  }

  public String getLogin() {
    return login;
  }

  public String getPassword() {
    return password;
  }

  public String getSQLreq() {
    return SQLreq;
  }

  public int getRowLimit() {
    return rowLimit;
  }

  public String getInstanceId() {
    return getPK().getComponentName();
  }

  // setters
  public void setJDBCdriverName(String JDBCdriverName) {
    this.JDBCdriverName = JDBCdriverName;
  }

  public void setJDBCurl(String JDBCurl) {
    this.JDBCurl = JDBCurl;
  }

  public void setLogin(String login) {
    this.login = login;
  }

  public void setPassword(String password) {
    this.password = password;
  }

  public void setSQLreq(String SQLreq) {
    this.SQLreq = SQLreq;
  }

  public void setRowLimit(int rowLimit) {
    this.rowLimit = rowLimit;
  }
}
@@ -1498,32 +1498,67 @@
 g SQLreq = %22%22;%0D%0A
+  private String instanceId = %22%22;%0D%0A
   private int ro
@@ -2546,9 +2546,107 @@
 ;%0D%0A  %7D%0D%0A
+  %0D%0A  public void setInstanceId(String componentId) %7B%0D%0A    this.instanceId = componentId;%0D%0A    %7D%0D%0A
 %7D

fix bug #119