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

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

@Entity
public class GameBoard
extends BaseEntity
implements ApplicationEnvironment

The Class GameBoard.

See Also:
Serialized Form

Constructor Summary
GameBoard()
          Instantiates a new game board.
 
Method Summary
 Long getId()
          Gets the id.
 Set<Player> getPlayers()
          Gets the players.
 Long getVersion()
          Gets the version.
 void setId(Long id)
          Sets the id.
 void setPlayers(Set<Player> players)
          Sets the players.
 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

GameBoard

public GameBoard()
Instantiates a new game board.

Method Detail

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

getPlayers

public Set<Player> getPlayers()
Gets the players.

Returns:
the players

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

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

setPlayers

public void setPlayers(Set<Player> players)
Sets the players.

Parameters:
players - the new players

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.