@Entity
public class Batch
extends java.lang.Object
Defines the constraints regarding workers for a batch of a study, e.g. which worker types are allowed, how many workers, which Workers etc.
Constructor and Description |
---|
Batch() |
Modifier and Type | Method and Description |
---|---|
void |
addAllowedWorkerType(java.lang.String workerType) |
void |
addAllWorkers(java.util.List<Worker> workerList) |
void |
addWorker(Worker worker) |
boolean |
equals(java.lang.Object obj) |
java.util.Set<java.lang.String> |
getAllowedWorkerTypes() |
java.lang.String |
getBatchSessionData() |
java.lang.Long |
getBatchSessionVersion() |
java.lang.String |
getComments() |
java.lang.Long |
getId() |
java.lang.String |
getJsonData() |
java.lang.Integer |
getMaxActiveMembers() |
java.lang.Integer |
getMaxTotalMembers() |
java.lang.Integer |
getMaxTotalWorkers() |
Study |
getStudy() |
java.lang.String |
getTitle() |
java.lang.String |
getUuid() |
java.util.Set<Worker> |
getWorkerList() |
boolean |
hasAllowedWorkerType(java.lang.String workerType) |
int |
hashCode() |
boolean |
isActive() |
void |
removeAllowedWorkerType(java.lang.String workerType) |
void |
removeAllWorkers(java.util.List<Worker> workerList) |
void |
removeWorker(Worker worker) |
void |
setActive(boolean active) |
void |
setAllowedWorkerTypes(java.util.Set<java.lang.String> allowedWorkerTypes) |
void |
setBatchSessionData(java.lang.String batchSessionData) |
void |
setBatchSessionVersion(java.lang.Long batchSessionVersion) |
void |
setComments(java.lang.String comments) |
void |
setId(java.lang.Long id) |
void |
setJsonData(java.lang.String jsonData) |
void |
setMaxActiveMembers(java.lang.Integer maxActiveMembers) |
void |
setMaxTotalMembers(java.lang.Integer maxTotalMembers) |
void |
setMaxTotalWorkers(java.lang.Integer maxTotalWorkers) |
void |
setStudy(Study study) |
void |
setTitle(java.lang.String title) |
void |
setUuid(java.lang.String uuid) |
void |
setWorkerList(java.util.Set<Worker> workerList) |
java.lang.String |
toString() |
public void setId(java.lang.Long id)
public java.lang.Long getId()
public void setUuid(java.lang.String uuid)
public java.lang.String getUuid()
public void setStudy(Study study)
public Study getStudy()
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
public boolean isActive()
public void setActive(boolean active)
public java.lang.Integer getMaxActiveMembers()
public void setMaxActiveMembers(java.lang.Integer maxActiveMembers)
public java.lang.Integer getMaxTotalMembers()
public void setMaxTotalMembers(java.lang.Integer maxTotalMembers)
public java.lang.Integer getMaxTotalWorkers()
public void setMaxTotalWorkers(java.lang.Integer maxTotalWorkers)
public void setAllowedWorkerTypes(java.util.Set<java.lang.String> allowedWorkerTypes)
public java.util.Set<java.lang.String> getAllowedWorkerTypes()
public void addAllowedWorkerType(java.lang.String workerType)
public void removeAllowedWorkerType(java.lang.String workerType)
public boolean hasAllowedWorkerType(java.lang.String workerType)
public void setWorkerList(java.util.Set<Worker> workerList)
public java.util.Set<Worker> getWorkerList()
public void addWorker(Worker worker)
public void addAllWorkers(java.util.List<Worker> workerList)
public void removeWorker(Worker worker)
public void removeAllWorkers(java.util.List<Worker> workerList)
public java.lang.String getComments()
public void setComments(java.lang.String comments)
public java.lang.String getJsonData()
public void setJsonData(java.lang.String jsonData)
public java.lang.String getBatchSessionData()
public void setBatchSessionData(java.lang.String batchSessionData)
public java.lang.Long getBatchSessionVersion()
public void setBatchSessionVersion(java.lang.Long batchSessionVersion)
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object