View Javadoc
1 /* 2 * WeaponDAOImpl.java 3 * 4 * Created on February 11, 2003, 10:37 AM 5 */ 6 7 package com.mlw.fps.model.business.dao.hibernate; 8 9 import java.util.Collection; 10 11 import com.mlw.fps.model.business.dao.WeaponDAO; 12 import com.mlw.fps.model.business.vo.Weapon; 13 /*** 14 * 15 * @author Matthew Wilson 16 */ 17 public class WeaponDAOImpl implements WeaponDAO 18 { 19 20 /*** Creates a new instance of WeaponDAOImpl 21 */ 22 public WeaponDAOImpl() 23 { 24 } 25 26 public Weapon getWeaponByPk(String pk) 27 { 28 return (Weapon)Config.load(Weapon.class, pk); 29 } 30 31 public Collection getWeapons() 32 { 33 return Config.query("weapon.findAll", null); 34 } 35 36 public Weapon getWeaponByName(String name) 37 { 38 return (Weapon)Config.findByName("weapon.findByName", name); 39 } 40 41 public void insert(Weapon weapon) 42 { 43 Config.save(weapon); 44 } 45 46 }

This page was automatically generated by Maven