|
|
@ -60,9 +60,11 @@ public abstract class dbHandlerBase { |
|
|
|
if (DbManager.inCache(localObjectType, id)) { |
|
|
|
if (DbManager.inCache(localObjectType, id)) { |
|
|
|
objectList.add((T) DbManager.getFromCache(localObjectType, id)); |
|
|
|
objectList.add((T) DbManager.getFromCache(localObjectType, id)); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
int mineLiveHour = rs.getInt("mineLiveHour"); |
|
|
|
try{ |
|
|
|
if (!rs.wasNull() && mineLiveHour == 1) { |
|
|
|
if(rs.getInt("mineLiveHour") == 1) |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
|
|
|
|
}catch(Exception e){ |
|
|
|
|
|
|
|
//not a mine
|
|
|
|
} |
|
|
|
} |
|
|
|
AbstractGameObject toAdd = localClass.getConstructor(ResultSet.class).newInstance(rs); |
|
|
|
AbstractGameObject toAdd = localClass.getConstructor(ResultSet.class).newInstance(rs); |
|
|
|
DbManager.addToCache(toAdd); |
|
|
|
DbManager.addToCache(toAdd); |
|
|
|