Examples of BBPlayerInfo


Examples of me.taylorkelly.bigbrother.BBPlayerInfo

            rs=ps.executeQuery();
            conn.commit();
            if(!rs.next())
                return null;
           
            return new BBPlayerInfo(rs.getInt("id"), rs.getString("name"), rs.getInt("flags"));
           
        } catch (SQLException e) {
            BBLogging.severe("Can't find user #"+id+".", e);
        } finally {
            ConnectionManager.cleanup( "BBUsersMySQL.getUserFromDB(int)",conn, ps, rs );
View Full Code Here

Examples of me.taylorkelly.bigbrother.BBPlayerInfo

            conn.commit();
           
            if(!rs.next())
                return null;
           
            return new BBPlayerInfo(rs.getInt("id"), rs.getString("name"), rs.getInt("flags"));
           
        } catch (SQLException e) {
            BBLogging.severe("Error trying to find the user `"+name+"`.", e);
        } finally {
            ConnectionManager.cleanup( "BBUsersMySQL.getUserFromDB(string)",conn, ps, rs );
View Full Code Here

Examples of me.taylorkelly.bigbrother.BBPlayerInfo

            rs=ps.executeQuery();
            conn.commit();
            if(!rs.next())
                return null;
           
            return new BBPlayerInfo(rs.getInt("id"), rs.getString("name"), rs.getInt("flags"));
           
        } catch (SQLException e) {
            BBLogging.severe("Can't find user #"+id+".", e);
        } finally {
            ConnectionManager.cleanup( "BBUsersMySQL.getUserFromDB(int)",conn, ps, rs );
View Full Code Here

Examples of me.taylorkelly.bigbrother.BBPlayerInfo

                    if(conn==null) return false;
                    ps = conn.prepareStatement("SELECT DISTINCT playerName FROM "+bbdata);
                    rs=ps.executeQuery();
                   
                    while(rs.next()) {
                        BBPlayerInfo pi = getUserByName(rs.getString("playerName"));
                       
                        String desc = String.format("Player %s -> %d",pi.getName(),pi.getID());
                        BBLogging.info("Converting "+desc+"...");
                        if(!executeUpdate(desc,
                                "UPDATE "+bbdata+" SET `player`=? WHERE playerName=?", new Object[]{
                                pi.getID(),
                                pi.getName()
                        }
                        ))
                            return false;
                    }
                   
View Full Code Here

Examples of me.taylorkelly.bigbrother.BBPlayerInfo

            BBLogging.debug(sql);
            ps = conn.prepareStatement(sql);
            rs=ps.executeQuery();
           
            while(rs.next()){
                BBPlayerInfo pi = new BBPlayerInfo(rs.getInt("id"), rs.getString("name"), rs.getInt("flags"));
                this.knownPlayers.put(pi.getID(), pi);
                this.knownNames.put(pi.getName(),pi.getID());
            }
        } catch (SQLException e) {
            BBLogging.severe("Error trying to load the user/name cache.", e);
        } finally {
            ConnectionManager.cleanup( "BBUsersMySQL.getUserFromDB(string)",conn, ps, rs );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.