Skip to content

Commit

Permalink
Make DAO contant that hold SQL private
Browse files Browse the repository at this point in the history
increase incapsulation
  • Loading branch information
forus committed Jul 11, 2024
1 parent 990218d commit 2bbe3c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/mskcc/cbio/portal/dao/DaoMutation.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@
public final class DaoMutation {
public static final String NAN = "NaN";
private static final String MUTATION_COUNT_ATTR_ID = "MUTATION_COUNT";
public static final String DELETE_ALTERATION_DRIVER_ANNOTATION = "DELETE from alteration_driver_annotation WHERE GENETIC_PROFILE_ID=? and SAMPLE_ID=?";
public static final String DELETE_MUTATION = "DELETE from mutation WHERE GENETIC_PROFILE_ID=? and SAMPLE_ID=?";
private static final String DELETE_ALTERATION_DRIVER_ANNOTATION = "DELETE from alteration_driver_annotation WHERE GENETIC_PROFILE_ID=? and SAMPLE_ID=?";
private static final String DELETE_MUTATION = "DELETE from mutation WHERE GENETIC_PROFILE_ID=? and SAMPLE_ID=?";

public static int addMutation(ExtendedMutation mutation, boolean newMutationEvent) throws DaoException {
if (!MySQLbulkLoader.isBulkLoad()) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/mskcc/cbio/portal/dao/DaoSampleList.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
*/
public class DaoSampleList {

public static final String DELETE_SAMPLE_LIST_LIST = "DELETE FROM sample_list_list WHERE `LIST_ID` = ?";
private static final String DELETE_SAMPLE_LIST_LIST = "DELETE FROM sample_list_list WHERE `LIST_ID` = ?";

/**
* Adds record to sample_list table.
Expand Down

0 comments on commit 2bbe3c5

Please sign in to comment.