/**
  * Create a new session for game gid.
  *
  * @param gamePersistenceManagerServer the persistent manager currently valid
  * @param creator the account that creates the session and is the owner of the session
  * @param gid the game to play
  * @throws JDOObjectNotFoundException
  */
 public SessionServer(
     GamePersistenceManagerServer gamePersistenceManagerServer, String creator, Gid gid)
     throws JDOObjectNotFoundException {
   super(gamePersistenceManagerServer, SessionId.getNext(gamePersistenceManagerServer));
   this.gid = gid.getGid();
 }
示例#2
0
 public Giid(Sid sid, Gid gid) {
   this.giid = sid.getSid() + DELIMITER + gid.getGid();
 }