View Javadoc
1 /* 2 * GameDAOImpl.java 3 * 4 * Created on February 11, 2003, 10:36 AM 5 */ 6 7 package com.mlw.fps.model.business.dao.memmory; 8 9 import com.mlw.fps.model.business.dao.GameDAO; 10 import com.mlw.fps.model.business.vo.Game; 11 /*** 12 * 13 * @author Matthew Wilson 14 */ 15 public class GameDAOImpl implements GameDAO 16 { 17 18 /*** Creates a new instance of RoundDAOImpl 19 */ 20 public GameDAOImpl() 21 { 22 } 23 24 public void insert(Game game) 25 { 26 if( game.getPk()==null) game.setPk(StaticData.instance().next()); 27 28 StaticData.instance().getGames().put(game.getPk(), game); 29 } 30 31 public void update(Game game) 32 { 33 } 34 35 /* (non-Javadoc) 36 * @see com.mlw.fps.model.business.dao.GameDAO#delete(com.mlw.fps.model.business.vo.Game) 37 */ 38 public void delete(Game game) 39 { 40 StaticData.instance().getGames().remove(game.getPk()); 41 } 42 43 }

This page was automatically generated by Maven