@Entity(name="TeamType")
public final class PersistentTeamType
extends java.lang.Object
implements com.bernardomg.tabletop.dreadball.model.faction.TeamType, java.io.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(java.lang.Object obj) |
java.lang.Integer |
getId()
Returns the ID assigned to this entity.
|
java.lang.String |
getName() |
java.util.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(java.lang.Integer identifier)
Sets the ID assigned to this entity.
|
void |
setTeamRules(java.util.Collection<com.bernardomg.tabletop.dreadball.model.faction.TeamRule> teamRules)
Sets the team type team rules.
|
void |
setTeamTypeName(java.lang.String typeName)
Sets the team type name.
|
java.lang.String |
toString() |
public final void addTeamRule(com.bernardomg.tabletop.dreadball.model.faction.TeamRule rule)
rule - the team rule to addpublic final boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic final java.lang.Integer getId()
public final java.lang.String getName()
getName in interface com.bernardomg.tabletop.dreadball.model.faction.TeamTypepublic final java.util.Collection<com.bernardomg.tabletop.dreadball.model.faction.TeamRule> getTeamRules()
getTeamRules in interface com.bernardomg.tabletop.dreadball.model.faction.TeamTypepublic final int hashCode()
hashCode in class java.lang.Objectpublic final void removeTeamRule(com.bernardomg.tabletop.dreadball.model.faction.TeamRule rule)
rule - the team rule to removepublic final void setId(java.lang.Integer identifier)
identifier - the ID for the entitypublic final void setTeamRules(java.util.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(java.lang.String typeName)
typeName - team type namepublic final java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2015–2018 Bernardo MartÃnez Garrido. All rights reserved.