Skip to content
This repository has been archived by the owner on Nov 22, 2019. It is now read-only.

Commit

Permalink
Updates the associated connection of komodo model source
Browse files Browse the repository at this point in the history
* Due to change in naming of associated connection to origin connection in
  komodo's model source, update references accordingly.
  • Loading branch information
phantomjinx committed Apr 3, 2018
1 parent 7041554 commit 060290a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions ngapp/src/app/dataservices/shared/vdb-model-source.model.ts
Expand Up @@ -25,7 +25,7 @@ export class VdbModelSource {
private keng__kType = "VdbModelSource";
private vdb__sourceJndiName: string;
private vdb__sourceTranslator: string;
private tko__associatedConnection: string;
private vdb__originConnection: string;

/**
* @param {Object} json the JSON representation of a VdbModelSource
Expand Down Expand Up @@ -79,8 +79,8 @@ export class VdbModelSource {
/**
* @returns {string} the associated connection path (can be null)
*/
public getAssociatedConnection(): string {
return this.tko__associatedConnection;
public getOriginConnection(): string {
return this.vdb__originConnection;
}

/**
Expand Down Expand Up @@ -114,8 +114,8 @@ export class VdbModelSource {
/**
* @param {string} connectionPath the path to the associated connection (optional)
*/
public setAssociatedConnection( connectionPath?: string ): void {
this.tko__associatedConnection = connectionPath ? connectionPath : null;
public setOriginConnection( connectionPath?: string ): void {
this.vdb__originConnection = connectionPath ? connectionPath : null;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion ngapp/src/app/dataservices/shared/vdb.service.ts
Expand Up @@ -377,7 +377,7 @@ export class VdbService extends ApiService {
vdbModelSource.setDataPath(vdbPath + "/" + vdbModelName + "/vdb:sources/" + vdbModelSourceName);
vdbModelSource.setJndiName(connection.getJndiName());
vdbModelSource.setTranslatorName(connection.getDriverName());
vdbModelSource.setAssociatedConnection(connection.getDataPath());
vdbModelSource.setOriginConnection(connection.getDataPath());

// Chain the individual calls together in series to build the Vdb and deploy it
return this.deleteVdbIfFound(vdb.getId())
Expand Down

0 comments on commit 060290a

Please sign in to comment.