public class GetModelsTask extends Task
It is used as a data transfer object and hold the model name with its getter and setter method.
_isUpdateTask
Constructor and Description |
---|
GetModelsTask(java.lang.String modelName)
Construct an instance of the object and set the model name to be fetched
from the database.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getModelName()
Return the model name that is needed to be fetched from the database.
|
void |
setModelName(java.lang.String modelName)
Set the model name to be fetched from the database.
|
isUpdateTask, setIsUpdateTask
public GetModelsTask(java.lang.String modelName)
modelName
- the model name to be fetched from the database.public java.lang.String getModelName()
setModelName(java.lang.String)
public void setModelName(java.lang.String modelName)
modelName
- the name of the model to be fetched from the database.getModelName()