public class XMLDBModelWithReferenceChanges
extends java.lang.Object
The Data Transfer Object pattern is used here.
Modifier and Type | Field and Description |
---|---|
(package private) XMLDBModel |
_modelToBeSaved
The model to be saved in the database.
|
(package private) java.util.ArrayList<java.lang.String> |
_parentsList
The list of parents being affected by the changes made on the model.
|
(package private) java.lang.String |
_versionName
The new model name that will be stored in the database.
|
Constructor and Description |
---|
XMLDBModelWithReferenceChanges(XMLDBModel modelToBeSaved,
java.util.ArrayList<java.lang.String> parentsList,
java.lang.String versionName)
Construct a new instance of this class and set the member variables.
|
Modifier and Type | Method and Description |
---|---|
XMLDBModel |
getModelToBeSaved()
Return the model to be saved in the database.
|
java.util.ArrayList<java.lang.String> |
getParentsList()
Return The list of parents being affected by the changes made on the
model.
|
java.lang.String |
getVersionName()
Return The new model name that will be stored in the database.
|
void |
setModelToBeSaved(XMLDBModel modelToBeSaved)
Set The model to be saved in the database.
|
void |
setParentsList(java.util.ArrayList<java.lang.String> parentsList)
Set The list of parents being affected by the changes made on the model.
|
void |
setVersionName(java.lang.String versionName)
Set The new model name that will be stored in the database.
|
XMLDBModel _modelToBeSaved
java.util.ArrayList<java.lang.String> _parentsList
java.lang.String _versionName
public XMLDBModelWithReferenceChanges(XMLDBModel modelToBeSaved, java.util.ArrayList<java.lang.String> parentsList, java.lang.String versionName)
modelToBeSaved
- The model to be saved in the database with no
changes.parentsList
- List of parents that should have the new model name as
the reference inside them with the old content.versionName
- A new name of the model which will be converted into a
model that contains the content of the modelToBeSaved before saving it.public XMLDBModel getModelToBeSaved()
setModelToBeSaved(ptdb.common.dto.XMLDBModel)
public java.util.ArrayList<java.lang.String> getParentsList()
setParentsList(java.util.ArrayList<java.lang.String>)
public java.lang.String getVersionName()
setVersionName(java.lang.String)
public void setModelToBeSaved(XMLDBModel modelToBeSaved)
modelToBeSaved
- The model to be saved in the database.getModelToBeSaved()
public void setParentsList(java.util.ArrayList<java.lang.String> parentsList)
parentsList
- The list of parents being affected by the changes made
on the model.getParentsList()
public void setVersionName(java.lang.String versionName)
versionName
- The new model name that will be stored in the
database.getVersionName()