|
||||||||||
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 FormField 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 modelMethod Detail |
---|
public int hashCode()
hashCode
in class Object
Object.hashCode()
@MapLink(name="modelDataSet", direction=DST) public List<IDataSet> getDataSets()
getDataSets
in interface IModel
public void setDataSets(List<IDataSet> dataSets)
setDataSets
in interface IModel
dataSets
- The data sets to set.@MapAttribute(typeName="modelName") public String getName()
getName
in interface IModel
IModel.getName()
public void setName(String newName)
setName
in interface IModel
newName
- the name to setpublic boolean equals(Object other)
equals
in class Object
Object.equals(java.lang.Object)
public boolean addDataSet(IDataSet dataSet)
addDataSet
in interface IModel
dataSet
- The data set to add
public List<IRelation> getRelations()
getRelations
in interface IModel
IModel.getRelations()
public Collection<IEntity> getEntities()
getEntities
in interface IModel
IModel.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 |