4361 update comments to reflect changes from device id to ds obj id dependence

This commit is contained in:
William Schaefer 2018-11-20 11:16:08 -05:00
parent 8e31b65934
commit 82104e1235
2 changed files with 18 additions and 16 deletions

View File

@ -647,7 +647,7 @@ abstract class AbstractSqlEamDb implements EamDb {
* *
* @param correlationCase the current CorrelationCase used for ensuring * @param correlationCase the current CorrelationCase used for ensuring
* uniqueness of DataSource * uniqueness of DataSource
* @param dataSourceObjectId the data source device ID number * @param dataSourceObjectId the object id of the data source
* *
* @return The data source * @return The data source
* *
@ -675,7 +675,7 @@ abstract class AbstractSqlEamDb implements EamDb {
* *
* @param correlationCase the current CorrelationCase used for ensuring * @param correlationCase the current CorrelationCase used for ensuring
* uniqueness of DataSource * uniqueness of DataSource
* @param dataSourceDeviceId the data source device ID number * @param dataSourceDeviceId the object id of the data source
* *
* @return The data source * @return The data source
* *

View File

@ -44,14 +44,15 @@ public class CorrelationDataSource implements Serializable {
* Create a CorrelationDataSource object, the object will not have the data * Create a CorrelationDataSource object, the object will not have the data
* source id for the row in the central repository. * source id for the row in the central repository.
* *
* @param correlationCase CorrelationCase object data source is associated * @param correlationCase CorrelationCase object data source is
* with. Must have been created by EamDB and have a * associated with. Must have been created by
* valid ID. * EamDB and have a valid ID.
* @param deviceId User specified case-specific ID * @param deviceId User specified case-specific ID
* @param name Display name of data source * @param name Display name of data source
* @param dataSourceObjectId The object ID for the datasource
*/ */
public CorrelationDataSource(CorrelationCase correlationCase, String deviceId, String name, long caseDataSourceId) { public CorrelationDataSource(CorrelationCase correlationCase, String deviceId, String name, long dataSourceObjectId) {
this(correlationCase.getID(), -1, deviceId, name, caseDataSourceId); this(correlationCase.getID(), -1, deviceId, name, dataSourceObjectId);
} }
/** /**
@ -61,17 +62,18 @@ public class CorrelationDataSource implements Serializable {
* @param dataSourceId Row ID for this data source in DB (or -1) * @param dataSourceId Row ID for this data source in DB (or -1)
* @param deviceId User specified ID for device (unique per case) * @param deviceId User specified ID for device (unique per case)
* @param name User specified name * @param name User specified name
* @param dataSourceObjectId The object ID for the datasource
*/ */
CorrelationDataSource(int caseId, CorrelationDataSource(int caseId,
int dataSourceId, int dataSourceId,
String deviceId, String deviceId,
String name, String name,
Long caseDataSourceId) { Long dataSourceObjectId) {
this.caseID = caseId; this.caseID = caseId;
this.dataSourceID = dataSourceId; this.dataSourceID = dataSourceId;
this.deviceID = deviceId; this.deviceID = deviceId;
this.name = name; this.name = name;
this.dataSourceObjectID = caseDataSourceId; this.dataSourceObjectID = dataSourceObjectId;
} }
/** /**
@ -157,7 +159,7 @@ public class CorrelationDataSource implements Serializable {
} }
/** /**
* Get the id for the data source in the case db * Get the object id for the data source in the case db
* *
* @return dataSourceObjectID or NULL if not available * @return dataSourceObjectID or NULL if not available
*/ */