Skip to content

Commit

Permalink
Deprecate ActionBase.getUsedDatabaseConnections method apache#2041
Browse files Browse the repository at this point in the history
  • Loading branch information
nadment committed Jul 25, 2024
1 parent a0ffc25 commit 7eb638d
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 56 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,7 @@ public String getRealFilename() {
*
* @return an empty (non-null) array
*/
@Deprecated(since = "2.10")
public DatabaseMeta[] getUsedDatabaseConnections() {
return new DatabaseMeta[] {};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,17 +195,6 @@ public boolean isEvaluation() {
return true;
}

@Override
public DatabaseMeta[] getUsedDatabaseConnections() {
List<DatabaseMeta> used = new ArrayList<>();
for (CDConnection connection : connections) {
if (connection.getDatabaseMeta() != null) {
used.add(connection.getDatabaseMeta());
}
}
return used.toArray(new DatabaseMeta[0]);
}

@Override
public List<ResourceReference> getResourceDependencies(
IVariables variables, WorkflowMeta workflowMeta) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,13 +226,6 @@ public Result execute(Result previousResult, int nr) {
return result;
}

@Override
public DatabaseMeta[] getUsedDatabaseConnections() {
return new DatabaseMeta[] {
databaseMeta,
};
}

@Override
public List<ResourceReference> getResourceDependencies(
IVariables variables, WorkflowMeta workflowMeta) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -405,13 +405,6 @@ public Result execute(Result previousResult, int nr) {
return result;
}

@Override
public DatabaseMeta[] getUsedDatabaseConnections() {
return new DatabaseMeta[] {
connection,
};
}

@Override
public List<ResourceReference> getResourceDependencies(
IVariables variables, WorkflowMeta workflowMeta) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -559,13 +559,6 @@ public Result execute(Result previousResult, int nr) {
return result;
}

@Override
public DatabaseMeta[] getUsedDatabaseConnections() {
return new DatabaseMeta[] {
connection,
};
}

public void setFilename(String filename) {
this.filename = filename;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -424,13 +424,6 @@ public Result execute(Result previousResult, int nr) {
return result;
}

@Override
public DatabaseMeta[] getUsedDatabaseConnections() {
return new DatabaseMeta[] {
connection,
};
}

public void setHighPriority(boolean highpriority) {
this.highPriority = highpriority;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -431,13 +431,6 @@ public Result execute(Result previousResult, int nr) {
return result;
}

@Override
public DatabaseMeta[] getUsedDatabaseConnections() {
return new DatabaseMeta[] {
connection,
};
}

public boolean isReplacedata() {
return replacedata;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,11 +254,6 @@ public boolean isUnconditional() {
return true;
}

@Override
public DatabaseMeta[] getUsedDatabaseConnections() {
return new DatabaseMeta[0];
}

@Override
public List<ResourceReference> getResourceDependencies(
IVariables variables, WorkflowMeta workflowMeta) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -471,11 +471,6 @@ protected boolean sqlDataOK(
return successOK;
}

@Override
public DatabaseMeta[] getUsedDatabaseConnections() {
return new DatabaseMeta[0];
}

@Override
public List<ResourceReference> getResourceDependencies(
IVariables variables, WorkflowMeta workflowMeta) {
Expand Down

0 comments on commit 7eb638d

Please sign in to comment.