コード例 #1
0
 @SuppressWarnings("unchecked")
 protected LockedBlock(ResultSet r, String typeId)
     throws SQLException, ClassNotFoundException, IOException {
   this.lockId = r.getLong("ID");
   this.l =
       new Location(
           Bukkit.getWorld(r.getString("World")), r.getLong("X"), r.getLong("Y"), r.getLong("Z"));
   this.ownerId = r.getLong("Owner");
   this.guests = (ArrayList<Long>) Serializer.deserialize(r.getString("Guests"));
   this.level = LockLevel.getLevel(r.getInt("AccessLevel"));
   this.typeId = typeId;
 }