Package model

Examples of model.Stat


            pstmt.setInt(3, activityStartDay);
            pstmt.setInt(4, activityEndDay);
            ResultSet rs = pstmt.executeQuery();

            while (rs.next()) {
              Stat stats = new Stat();
              stats.setActivityDay(rs.getInt("activity_day"));
              int plantTypeID = rs.getInt("plant_type_id");
              stats.setPlantTypeId(plantTypeID);
              stats.setActivityType(rs.getString("activity_type"));
              stats.setCount(rs.getInt("plant_count"));
              //stats.setEnvironmentScore(rs.getInt("env_score"));
              //stats.setActivityMessage(rs.getString("activity_message"));
            
              String plantName= GameServer.getPlantName(plantTypeID);
              stats.setPlantName(plantName);
              statsList.add(stats);
            }

            rs.close();
            pstmt.close();
View Full Code Here


            pstmt.setInt(3, activityStartDay);
            pstmt.setInt(4, activityEndDay);
            ResultSet rs = pstmt.executeQuery();

            while (rs.next()) {
              Stat stats = new Stat();
              stats.setActivityDay(rs.getInt("activity_day"));
              int animalTypeID = rs.getInt("animal_type_id");
              stats.setAnimalTypeId(animalTypeID);
              stats.setActivityType(rs.getString("activity_type"));
              stats.setCount(rs.getInt("animal_count"));
              //stats.setEnvironmentScore(rs.getInt("env_score"));
              //stats.setActivityMessage(rs.getString("activity_message"));
            
              String animalName= GameServer.getAnimalName(animalTypeID);
              stats.setAnimalName(animalName);
              statsList.add(stats);
            }

            rs.close();
            pstmt.close();
View Full Code Here

TOP

Related Classes of model.Stat

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.