Skip to content

Commit b8a6c63

Browse files
checkpoint - migrate to using long/Long to represent any integer ID value (rowId, objectId, etc).
1 parent 088552f commit b8a6c63

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+121
-119
lines changed

SequenceAnalysis/api-src/org/labkey/api/sequenceanalysis/RefNtSequenceModel.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public class RefNtSequenceModel implements Serializable
6262
//deprecated
6363
private String _sequence;
6464
private Long _sequenceFile;
65-
private Integer _jobId;
65+
private Long _jobId;
6666
private String _category;
6767
private String _subset;
6868
private String _locus;
@@ -361,12 +361,12 @@ public void setModified(Date modified)
361361
_modified = modified;
362362
}
363363

364-
public Integer getJobId()
364+
public Long getJobId()
365365
{
366366
return _jobId;
367367
}
368368

369-
public void setJobId(Integer jobId)
369+
public void setJobId(Long jobId)
370370
{
371371
_jobId = jobId;
372372
}

SequenceAnalysis/api-src/org/labkey/api/sequenceanalysis/SequenceAnalysisService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ static public void setInstance(SequenceAnalysisService instance)
8787

8888
abstract public String getUnzippedBaseName(String filename);
8989

90-
abstract public Integer getExpRunIdForJob(PipelineJob job, boolean throwUnlessFound) throws PipelineJobException;
90+
abstract public Long getExpRunIdForJob(PipelineJob job, boolean throwUnlessFound) throws PipelineJobException;
9191

9292
abstract public List<PedigreeRecord> generatePedigree(Collection<String> sampleNames, Container c, User u, DemographicsProvider d);
9393

SequenceAnalysis/api-src/org/labkey/api/sequenceanalysis/SequenceOutputFile.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ public class SequenceOutputFile implements Serializable
3737
private Integer _rowid;
3838
private String _name;
3939
private String _description;
40-
private Integer _dataId;
40+
private Long _dataId;
4141
private Integer _library_id;
4242
private Integer _readset;
4343
private Integer _analysis_id;
44-
private Integer _runid;
44+
private Long _runid;
4545
private String _category;
4646
private Boolean _intermediate;
4747
private String _container;
@@ -86,12 +86,12 @@ public void setDescription(String description)
8686
_description = description;
8787
}
8888

89-
public Integer getDataId()
89+
public Long getDataId()
9090
{
9191
return _dataId;
9292
}
9393

94-
public void setDataId(Integer dataId)
94+
public void setDataId(Long dataId)
9595
{
9696
_dataId = dataId;
9797
}
@@ -126,12 +126,12 @@ public void setAnalysis_id(Integer analysis_id)
126126
_analysis_id = analysis_id;
127127
}
128128

129-
public Integer getRunId()
129+
public Long getRunId()
130130
{
131131
return _runid;
132132
}
133133

134-
public void setRunId(Integer runid)
134+
public void setRunId(Long runid)
135135
{
136136
_runid = runid;
137137
}

SequenceAnalysis/api-src/org/labkey/api/sequenceanalysis/model/AnalysisModel.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,22 +33,22 @@ public interface AnalysisModel extends Serializable
3333
{
3434
Integer getAnalysisId();
3535

36-
Integer getRunId();
36+
Long getRunId();
3737

3838
String getContainer();
3939

4040
Integer getReadset();
4141

42-
Integer getAlignmentFile();
42+
Long getAlignmentFile();
4343

4444
File getAlignmentFileObject();
4545

4646
ExpData getAlignmentData();
4747

4848
@Deprecated
49-
Integer getReferenceLibrary();
49+
Long getReferenceLibrary();
5050

51-
void setReferenceLibrary(Integer libraryId);
51+
void setReferenceLibrary(Long libraryId);
5252

5353
ExpData getReferenceLibraryData(User u) throws PipelineJobException;
5454

SequenceAnalysis/api-src/org/labkey/api/sequenceanalysis/model/ReadData.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,17 @@ public interface ReadData extends Serializable
3434

3535
Date getDate();
3636

37-
Integer getFileId1();
37+
Long getFileId1();
3838

39-
Integer getFileId2();
39+
Long getFileId2();
4040

4141
File getFile1();
4242

4343
File getFile2();
4444

4545
String getDescription();
4646

47-
Integer getRunId();
47+
Long getRunId();
4848

4949
String getContainer();
5050

SequenceAnalysis/api-src/org/labkey/api/sequenceanalysis/model/Readset.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public interface Readset extends Serializable
7272

7373
String getStatus();
7474

75-
Integer getRunId();
75+
Long getRunId();
7676

7777
boolean hasPairedData();
7878

SequenceAnalysis/api-src/org/labkey/api/sequenceanalysis/pipeline/ReferenceGenome.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public interface ReferenceGenome extends Serializable
7575
* this will correspond to the permanent FASTA, as opposed to the copy used in this job. If this FASTA was created specifically for
7676
* this job then the FASTA will be in the analysis directory.
7777
*/
78-
Integer getFastaExpDataId();
78+
Long getFastaExpDataId();
7979

8080
/**
8181
* @param name The name used by the aligner to identify its cached directory

SequenceAnalysis/api-src/org/labkey/api/sequenceanalysis/pipeline/SequenceAnalysisJobSupport.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ public interface SequenceAnalysisJobSupport extends Serializable
3535
{
3636
void cacheExpData(ExpData data);
3737

38-
File getCachedData(int dataId);
38+
File getCachedData(long dataId);
3939

40-
Map<Integer, File> getAllCachedData();
40+
Map<Long, File> getAllCachedData();
4141

4242
Readset getCachedReadset(Integer rowId);
4343

SequenceAnalysis/api-src/org/labkey/api/sequenceanalysis/pipeline/SequencePipelineService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ static public void setInstance(SequencePipelineService instance)
115115
/**
116116
* Throws exception if no run is found
117117
*/
118-
abstract public Integer getExpRunIdForJob(PipelineJob job) throws PipelineJobException;
118+
abstract public Long getExpRunIdForJob(PipelineJob job) throws PipelineJobException;
119119

120120
abstract public long getLineCount(File f) throws PipelineJobException;
121121

@@ -140,7 +140,7 @@ static public void setInstance(SequencePipelineService instance)
140140

141141
abstract public boolean hasMinLineCount(File f, long minLines) throws PipelineJobException;
142142

143-
abstract public void updateOutputFile(SequenceOutputFile o, PipelineJob job, Integer runId, Integer analysisId);
143+
abstract public void updateOutputFile(SequenceOutputFile o, PipelineJob job, Long runId, Integer analysisId);
144144

145145
abstract public PreprocessingStep.Output simpleTrimFastqPair(File fq1, File fq2, List<String> params, File outDir, Logger log) throws PipelineJobException;
146146

SequenceAnalysis/src/org/labkey/sequenceanalysis/ReadDataImpl.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ public class ReadDataImpl implements ReadData
2828
private String _platformUnit;
2929
private String _centerName;
3030
private Date _date;
31-
private Integer _fileId1;
32-
private Integer _fileId2;
31+
private Long _fileId1;
32+
private Long _fileId2;
3333
private String _description;
3434
private String _container;
3535
private Date _created;
3636
private Integer _createdBy;
3737
private Date _modified;
3838
private Integer _modifiedBy;
39-
private Integer _runId;
39+
private Long _runId;
4040
private boolean _archived = false;
4141
private String sra_accession;
4242

@@ -103,23 +103,23 @@ public void setDate(Date date)
103103
}
104104

105105
@Override
106-
public Integer getFileId1()
106+
public Long getFileId1()
107107
{
108108
return _fileId1;
109109
}
110110

111-
public void setFileId1(Integer fileId1)
111+
public void setFileId1(Long fileId1)
112112
{
113113
_fileId1 = fileId1;
114114
}
115115

116116
@Override
117-
public Integer getFileId2()
117+
public Long getFileId2()
118118
{
119119
return _fileId2;
120120
}
121121

122-
public void setFileId2(Integer fileId2)
122+
public void setFileId2(Long fileId2)
123123
{
124124
_fileId2 = fileId2;
125125
}
@@ -131,12 +131,12 @@ public String getDescription()
131131
}
132132

133133
@Override
134-
public Integer getRunId()
134+
public Long getRunId()
135135
{
136136
return _runId;
137137
}
138138

139-
public void setRunId(Integer runId)
139+
public void setRunId(Long runId)
140140
{
141141
_runId = runId;
142142
}
@@ -258,7 +258,7 @@ public Integer getTotalReads()
258258
}
259259

260260
@Transient
261-
private File getFile(int fileIdx, Integer fileId, boolean allowArchived)
261+
private File getFile(int fileIdx, Long fileId, boolean allowArchived)
262262
{
263263
if (isArchived() && !allowArchived)
264264
{

0 commit comments

Comments
 (0)