/*
 * CODENVY CONFIDENTIAL
 * __________________
 *
 * [2013] - [2014] Codenvy, S.A.
 * All Rights Reserved.
 *
 * NOTICE:  All information contained herein is, and remains
 * the property of Codenvy S.A. and its suppliers,
 * if any.  The intellectual and technical concepts contained
 * herein are proprietary to Codenvy S.A.
 * and its suppliers and may be covered by U.S. and Foreign Patents,
 * patents in process, and are protected by trade secret or copyright law.
 * Dissemination of this information or reproduction of this material
 * is strictly forbidden unless prior written permission is obtained
 * from Codenvy S.A..
 */
package com.codenvy.ide.ext.datasource.shared;

import com.codenvy.dto.shared.DTO;

@DTO
public interface DatabaseConfigurationDTO {

    String getHostname();

    int getPort();

    String getDatabaseName();

    String getUsername();

    String getPassword();

    DatabaseType getDatabaseType();


    DatabaseConfigurationDTO withDatabaseName(String databaseName);

    DatabaseConfigurationDTO withHostname(String hostname);

    DatabaseConfigurationDTO withPort(int port);

    DatabaseConfigurationDTO withUsername(String username);

    DatabaseConfigurationDTO withPassword(String password);

    DatabaseConfigurationDTO withDatabaseType(DatabaseType type);


    void setDatabaseName(String databaseName);

    void setHostname(String hostname);

    void setPort(int port);

    void setUsername(String username);

    void setPassword(String password);

    void setDatabaseType(DatabaseType type);

}

@@ -764,16 +764,47 @@
 nDTO %7B%0A%0A
+    String getDatasourceId();%0A%0A
     Stri
@@ -961,24 +961,85 @@
 seType();%0A%0A%0A
+    DatabaseConfigurationDTO withDatasourceId(String type);%0A%0A
     Database
@@ -1392,24 +1392,62 @@
 pe type);%0A%0A%0A
+    void setDatasourceId(String id);%0A%0A
     void set

Add id property to datasource