com.hack23.cia.model.application.impl.common
Class Player

Package class diagram package Player
java.lang.Object
  extended by com.hack23.cia.model.common.impl.BaseEntity
      extended by com.hack23.cia.model.application.impl.common.Player
All Implemented Interfaces:
UserRole, ModelObject, PersistedModelObject, Role, Serializable

@Entity
public class Player
extends BaseEntity
implements UserRole

The Class Player.

See Also:
Serialized Form

Constructor Summary
Player()
          Instantiates a new player.
 
Method Summary
 Actor getActor()
          Gets the actor.
 Long getId()
          Gets the id.
 ParliamentMember getShadowParliamentMember()
          Gets the shadow parliament member.
 User getUser()
          Gets the user.
 Long getVersion()
          Gets the version.
 void setActor(Actor actor)
          Sets the actor.
 void setId(Long id)
          Sets the id.
 void setShadowParliamentMember(ParliamentMember shadowParliamentMember)
          Sets the shadow parliament member.
 void setUser(User user)
          Sets the user.
 void setVersion(Long version)
          Sets the version.
 
Methods inherited from class com.hack23.cia.model.common.impl.BaseEntity
equals, hashCode, isNew
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.hack23.cia.model.common.api.PersistedModelObject
isNew
 

Constructor Detail

Player

public Player()
Instantiates a new player.

Method Detail

getActor

public Actor getActor()
Description copied from interface: Role
Gets the actor.

Specified by:
getActor in interface Role
Returns:
the actor

getId

public Long getId()
Description copied from class: BaseEntity
Gets the id.

Specified by:
getId in interface PersistedModelObject
Specified by:
getId in class BaseEntity
Returns:
the id

getShadowParliamentMember

public ParliamentMember getShadowParliamentMember()
Gets the shadow parliament member.

Returns:
the shadow parliament member

getUser

public User getUser()
Gets the user.

Returns:
the user

getVersion

public Long getVersion()
Description copied from class: BaseEntity
Gets the version.

Specified by:
getVersion in interface PersistedModelObject
Specified by:
getVersion in class BaseEntity
Returns:
the version

setActor

public void setActor(Actor actor)
Description copied from interface: Role
Sets the actor.

Specified by:
setActor in interface Role
Parameters:
actor - the new actor

setId

public void setId(Long id)
Description copied from interface: PersistedModelObject
Sets the id.

Specified by:
setId in interface PersistedModelObject
Parameters:
id - the new id

setShadowParliamentMember

public void setShadowParliamentMember(ParliamentMember shadowParliamentMember)
Sets the shadow parliament member.

Parameters:
shadowParliamentMember - the new shadow parliament member

setUser

public void setUser(User user)
Sets the user.

Parameters:
user - the new user

setVersion

public void setVersion(Long version)
Description copied from interface: PersistedModelObject
Sets the version.

Specified by:
setVersion in interface PersistedModelObject
Parameters:
version - the new version


Copyright © 2008-2009 www.hack23.com. All Rights Reserved.