|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpl.edu.agh.cast.model.mapper.AbstractMappable
pl.edu.agh.cast.model.base.Model
@Mapping public class Model
Default implementation of the IModel interface. It is mapped to the base model.
IModel,
Mapping,
Serialized Form| Field Summary |
|---|
| Fields inherited from class pl.edu.agh.cast.model.mapper.AbstractMappable |
|---|
id |
| Constructor Summary | |
|---|---|
Model()
The default constructor. |
|
Model(String newName)
Parametrized constructor. |
|
| Method Summary | |
|---|---|
boolean |
addDataSet(IDataSet dataSet)
Add data set to the model. |
boolean |
equals(Object other)
|
List<IDataSet> |
getDataSets()
The data sets getter. |
Collection<IEntity> |
getEntities()
Return all entities which are present in this model. |
static Collection<IEntity> |
getEntities(Collection<IDataSet> dataSets)
Create collection of entities which are present in given data sets. |
String |
getName()
Model name getter. |
List<IRelation> |
getRelations()
Return all relations which belong to this model. |
int |
hashCode()
|
void |
setDataSets(List<IDataSet> dataSets)
The data sets setter. |
void |
setName(String newName)
The name setter. |
| Methods inherited from class pl.edu.agh.cast.model.mapper.AbstractMappable |
|---|
clone, getAttribute, getAttributeNames, getAttributeType, getId, getMid, getType, setAttribute, setId, setMid, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface pl.edu.agh.cast.model.mapper.Mappable |
|---|
clone, getAttribute, getAttributeNames, getAttributeType, getId, getMid, getType, setAttribute, setId, setMid |
| Constructor Detail |
|---|
public Model()
public Model(String newName)
newName - The name of the model| Method Detail |
|---|
public int hashCode()
hashCode in class ObjectObject.hashCode()
@MapLink(name="modelDataSet",
direction=DST)
public List<IDataSet> getDataSets()
getDataSets in interface IModelpublic void setDataSets(List<IDataSet> dataSets)
setDataSets in interface IModeldataSets - The data sets to set.@MapAttribute(typeName="modelName") public String getName()
getName in interface IModelIModel.getName()public void setName(String newName)
setName in interface IModelnewName - the name to setpublic boolean equals(Object other)
equals in class ObjectObject.equals(java.lang.Object)public boolean addDataSet(IDataSet dataSet)
addDataSet in interface IModeldataSet - The data set to add
public List<IRelation> getRelations()
getRelations in interface IModelIModel.getRelations()public Collection<IEntity> getEntities()
getEntities in interface IModelIModel.getEntities()public static Collection<IEntity> getEntities(Collection<IDataSet> dataSets)
dataSets - The data sets in which the entities are looked for.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||