@Entity public class Player extends Object implements Serializable
| Modifier | Constructor and Description |
|---|---|
protected |
Player()
Default empty constructor (required by JPA).
|
protected |
Player(Long id,
String nick,
String name,
String lastName,
String email,
String city,
String province,
String interests,
String favouriteSports,
String favouriteTeams,
boolean publicPlayer,
Date deleted,
User owner,
byte[] avatar) |
|
Player(String nick,
String email,
String name,
String lastName,
User owner)
Utility constructor with basic profile data and the owner of this player
profile
|
|
Player(User owner)
Utility constructor with the owner of this player profile
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Set the logical deleted state of the player, setting the deletion date to
current timestamp
|
boolean |
equals(Object obj)
equals method for the player, based on id (autogenerated field by JPA engine) |
byte[] |
getAvatar()
Get the avatar content of the player
|
String |
getCity()
Get the city of the player.
|
Date |
getDeleted()
Get the deletion time of the player.
|
String |
getEmail()
Get the email of the player.
|
String |
getFavouriteSports()
Get the favourite sports for the player
|
String |
getFavouriteTeams()
Get the favourite teams for the player
|
Long |
getId()
Get the unique identifier of the player (autogenerated field by JPA engine)
|
String |
getInterests()
Get the description of interests for the player
|
String |
getLastName()
Get the last name of the player.
|
String |
getName()
Get the name of the player.
|
String |
getNick()
Get the nick name of the player.
|
User |
getOwner()
Get the user who manages this player profile
|
String |
getProvince()
Get the province/state of the player.
|
int |
hashCode() |
boolean |
isDeleted()
Get the deletion state of the player
|
boolean |
isPublicPlayer()
Get the public visibility of the player
|
void |
setAvatar(byte[] avatar)
Set the avatar content of the player.
|
void |
setCity(String city)
Set the city of the player.
|
void |
setDeleted(Date deleted)
Set the deletion date of the player
|
void |
setEmail(String email)
Set the email of the player.
|
void |
setFavouriteSports(String favouriteSports)
Set the favourite sports for the player.
|
void |
setFavouriteTeams(String favouriteTeams)
Set the favourite teams for the player.
|
void |
setId(Long id)
Set the unique identifier of the player (autogenerated field by JPA engine)
|
void |
setInterests(String interests)
Set the description of interests for the player.
|
void |
setLastName(String lastName)
Set the last name of the player.
|
void |
setName(String name)
Set the name of the player.
|
void |
setNick(String nick)
Set the nick name of the player.
|
void |
setOwner(User owner)
Set the user who manages this player profile
|
void |
setProvince(String province)
Set the province or state of the player.
|
void |
setPublicPlayer(boolean publicPlayer)
Set the public visibility of the player.
|
String |
toString()
toString method for the player, based on id field
|
void |
undelete()
Set the logical undeleted state of the player, setting the deletion date to
null
|
protected Player()
public Player(User owner)
owner - the user who manages this playerpublic Player(String nick, String email, String name, String lastName, User owner)
nick - nick name of the playeremail - email of the playername - name of the playerlastName - last name of the playerowner - the user who manages this playerpublic Long getId()
public void setId(Long id)
id - ths identifier to be setpublic boolean isDeleted()
public void delete()
public void undelete()
public String getNick()
public void setNick(String nick)
nick - nick name to be setpublic String getEmail()
public void setEmail(String email)
email - email to be setpublic String getName()
public void setName(String name)
name - name to be setpublic String getLastName()
public void setLastName(String lastName)
lastName - last name to be setpublic boolean isPublicPlayer()
public void setPublicPlayer(boolean publicPlayer)
publicPlayer - player public visitibility to be set, true for a public profile,
flase for a private profilepublic String getCity()
public void setCity(String city)
city - city to be setpublic String getProvince()
public void setProvince(String province)
province - province/state to be setpublic byte[] getAvatar()
public void setAvatar(byte[] avatar)
avatar - avatar content to be setpublic String getInterests()
public void setInterests(String interests)
interests - interests description to be setpublic String getFavouriteSports()
public void setFavouriteSports(String favouriteSports)
favouriteSports - favourite sports to be setpublic String getFavouriteTeams()
public void setFavouriteTeams(String favouriteTeams)
favouriteTeams - favourite teams to be setpublic Date getDeleted()
public void setDeleted(Date deleted)
deleted - date when the player was deletedpublic User getOwner()
public void setOwner(User owner)
owner - user managing this playerpublic boolean equals(Object obj)
equals method for the player, based on id (autogenerated field by JPA engine)Copyright © 2018. All rights reserved.