@Entity(name="TeamType") public final class PersistentTeamType extends Object implements com.bernardomg.tabletop.dreadball.model.faction.TeamType, Serializable
This is a persistent JPA-Based implementation.
| Constructor and Description |
|---|
PersistentTeamType()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTeamRule(com.bernardomg.tabletop.dreadball.model.faction.TeamRule rule)
Adds a team rule.
|
boolean |
equals(Object obj) |
Integer |
getId()
Returns the ID assigned to this entity.
|
String |
getName() |
Collection<com.bernardomg.tabletop.dreadball.model.faction.TeamRule> |
getTeamRules() |
int |
hashCode() |
void |
removeTeamRule(com.bernardomg.tabletop.dreadball.model.faction.TeamRule rule)
Removes a team rule.
|
void |
setId(Integer identifier)
Sets the ID assigned to this entity.
|
void |
setTeamRules(Collection<com.bernardomg.tabletop.dreadball.model.faction.TeamRule> teamRules)
Sets the team type team rules.
|
void |
setTeamTypeName(String typeName)
Sets the team type name.
|
String |
toString() |
public final void addTeamRule(com.bernardomg.tabletop.dreadball.model.faction.TeamRule rule)
rule - the team rule to addpublic final Integer getId()
public final String getName()
getName in interface com.bernardomg.tabletop.dreadball.model.faction.TeamTypepublic final Collection<com.bernardomg.tabletop.dreadball.model.faction.TeamRule> getTeamRules()
getTeamRules in interface com.bernardomg.tabletop.dreadball.model.faction.TeamTypepublic final void removeTeamRule(com.bernardomg.tabletop.dreadball.model.faction.TeamRule rule)
rule - the team rule to removepublic final void setId(Integer identifier)
identifier - the ID for the entitypublic final void setTeamRules(Collection<com.bernardomg.tabletop.dreadball.model.faction.TeamRule> teamRules)
All the team rules which the team type currently has will be removed and swapped with the received ones.
teamRules - the team rules to set on the team typepublic final void setTeamTypeName(String typeName)
typeName - team type nameCopyright © 2015–2017 Bernardo MartÃnez Garrido. All rights reserved.