Skip to content

Commit

Permalink
Use american english for method names
Browse files Browse the repository at this point in the history
  • Loading branch information
forus committed Jul 12, 2024
1 parent e40fb26 commit 641450c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,12 @@ private void ensureNumberOfValuesIsCorrect(int valuesNumber) {
}


public void initialise() {
public void initialize() {
try {
storeOrderedSampleList();
} catch (DaoException e) {
throw new RuntimeException(e);
}
}
public void finalise() { }
public void finalize() { }
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public boolean store(int geneticEntityId, String[] values) throws DaoException {
}

@Override
public void initialise() {
public void initialize() {
try {
this.geneticAlterationMap = daoGeneticAlteration.getGeneticAlterationMapForEntityIds(geneticProfileId, null);
ArrayList <Integer> savedOrderedSampleList = DaoGeneticProfileSamples.getOrderedSampleList(this.geneticProfileId);
Expand All @@ -66,13 +66,13 @@ public void initialise() {
} catch (DaoException e) {
throw new RuntimeException(e);
}
super.initialise();
super.initialize();
}

@Override
public void finalise() {
public void finalize() {
expandRemainingGeneticEntityTabDelimitedRowsWithBlankValue();
super.finalise();
super.finalize();
}

private String[] extendValues(int geneticEntityId, String[] values) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ private void doImportData() throws Exception {
orderedSampleList = newArrayList(toImport.eventsTable.columnKeySet());
this.geneticAlterationGeneImporter = isIncrementalUpdateMode ? new GeneticAlterationIncrementalImporter(geneticProfileId, orderedSampleList)
: new GeneticAlterationImporter(geneticProfileId, orderedSampleList);
geneticAlterationGeneImporter.initialise();
geneticAlterationGeneImporter.initialize();
DaoSampleProfile.upsertSampleToProfileMapping(orderedSampleList, geneticProfileId, genePanelId);

for (Long entrezId : toImport.eventsTable.rowKeySet()) {
Expand All @@ -171,7 +171,7 @@ private void doImportData() throws Exception {

ProgressMonitor.setCurrentMessage(" --> total number of samples skipped (normal samples): " + getSamplesSkipped());
buf.close();
geneticAlterationGeneImporter.finalise();
geneticAlterationGeneImporter.finalize();
MySQLbulkLoader.flushAll();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ private void doImportData() throws IOException, DaoException {
this.geneticAlterationImporter = isIncrementalUpdateMode ? new GeneticAlterationIncrementalImporter(geneticProfileId, orderedSampleList)
: new GeneticAlterationImporter(geneticProfileId, orderedSampleList);

geneticAlterationImporter.initialise();
geneticAlterationImporter.initialize();

//cache for data found in cna_event' table:
Set<CnaEvent.Event> existingCnaEvents = new HashSet<>();
Expand Down Expand Up @@ -389,7 +389,7 @@ private void doImportData() throws IOException, DaoException {
line = buf.readLine();
}
DaoSampleProfile.upsertSampleToProfileMapping(orderedSampleList, geneticProfileId, genePanelId);
geneticAlterationImporter.finalise();
geneticAlterationImporter.finalize();
if (MySQLbulkLoader.isBulkLoad()) {
MySQLbulkLoader.flushAll();
}
Expand Down

0 comments on commit 641450c

Please sign in to comment.