Replaced CrestTable ResultSet deleteRow with removeCrest method.
This commit is contained in:
parent
ac07bd6d8a
commit
fcc9de1b6d
@ -78,7 +78,6 @@ public class CrestTable
|
||||
while (rs.next())
|
||||
{
|
||||
final int id = rs.getInt("crest_id");
|
||||
|
||||
if (_nextId.get() <= id)
|
||||
{
|
||||
_nextId.set(id + 1);
|
||||
@ -88,7 +87,7 @@ public class CrestTable
|
||||
// a crest id because client will display wrong crest if its reused
|
||||
if (!crestsInUse.contains(id) && (id != (_nextId.get() - 1)))
|
||||
{
|
||||
rs.deleteRow();
|
||||
removeCrest(id);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -78,7 +78,6 @@ public class CrestTable
|
||||
while (rs.next())
|
||||
{
|
||||
final int id = rs.getInt("crest_id");
|
||||
|
||||
if (_nextId.get() <= id)
|
||||
{
|
||||
_nextId.set(id + 1);
|
||||
@ -88,7 +87,7 @@ public class CrestTable
|
||||
// a crest id because client will display wrong crest if its reused
|
||||
if (!crestsInUse.contains(id) && (id != (_nextId.get() - 1)))
|
||||
{
|
||||
rs.deleteRow();
|
||||
removeCrest(id);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -78,7 +78,6 @@ public class CrestTable
|
||||
while (rs.next())
|
||||
{
|
||||
final int id = rs.getInt("crest_id");
|
||||
|
||||
if (_nextId.get() <= id)
|
||||
{
|
||||
_nextId.set(id + 1);
|
||||
@ -88,7 +87,7 @@ public class CrestTable
|
||||
// a crest id because client will display wrong crest if its reused
|
||||
if (!crestsInUse.contains(id) && (id != (_nextId.get() - 1)))
|
||||
{
|
||||
rs.deleteRow();
|
||||
removeCrest(id);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -78,7 +78,6 @@ public class CrestTable
|
||||
while (rs.next())
|
||||
{
|
||||
final int id = rs.getInt("crest_id");
|
||||
|
||||
if (_nextId.get() <= id)
|
||||
{
|
||||
_nextId.set(id + 1);
|
||||
@ -88,7 +87,7 @@ public class CrestTable
|
||||
// a crest id because client will display wrong crest if its reused
|
||||
if (!crestsInUse.contains(id) && (id != (_nextId.get() - 1)))
|
||||
{
|
||||
rs.deleteRow();
|
||||
removeCrest(id);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -78,7 +78,6 @@ public class CrestTable
|
||||
while (rs.next())
|
||||
{
|
||||
final int id = rs.getInt("crest_id");
|
||||
|
||||
if (_nextId.get() <= id)
|
||||
{
|
||||
_nextId.set(id + 1);
|
||||
@ -88,7 +87,7 @@ public class CrestTable
|
||||
// a crest id because client will display wrong crest if its reused
|
||||
if (!crestsInUse.contains(id) && (id != (_nextId.get() - 1)))
|
||||
{
|
||||
rs.deleteRow();
|
||||
removeCrest(id);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -78,7 +78,6 @@ public class CrestTable
|
||||
while (rs.next())
|
||||
{
|
||||
final int id = rs.getInt("crest_id");
|
||||
|
||||
if (_nextId.get() <= id)
|
||||
{
|
||||
_nextId.set(id + 1);
|
||||
@ -88,7 +87,7 @@ public class CrestTable
|
||||
// a crest id because client will display wrong crest if its reused
|
||||
if (!crestsInUse.contains(id) && (id != (_nextId.get() - 1)))
|
||||
{
|
||||
rs.deleteRow();
|
||||
removeCrest(id);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -78,7 +78,6 @@ public class CrestTable
|
||||
while (rs.next())
|
||||
{
|
||||
final int id = rs.getInt("crest_id");
|
||||
|
||||
if (_nextId.get() <= id)
|
||||
{
|
||||
_nextId.set(id + 1);
|
||||
@ -88,7 +87,7 @@ public class CrestTable
|
||||
// a crest id because client will display wrong crest if its reused
|
||||
if (!crestsInUse.contains(id) && (id != (_nextId.get() - 1)))
|
||||
{
|
||||
rs.deleteRow();
|
||||
removeCrest(id);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -78,7 +78,6 @@ public class CrestTable
|
||||
while (rs.next())
|
||||
{
|
||||
final int id = rs.getInt("crest_id");
|
||||
|
||||
if (_nextId.get() <= id)
|
||||
{
|
||||
_nextId.set(id + 1);
|
||||
@ -88,7 +87,7 @@ public class CrestTable
|
||||
// a crest id because client will display wrong crest if its reused
|
||||
if (!crestsInUse.contains(id) && (id != (_nextId.get() - 1)))
|
||||
{
|
||||
rs.deleteRow();
|
||||
removeCrest(id);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -78,7 +78,6 @@ public class CrestTable
|
||||
while (rs.next())
|
||||
{
|
||||
final int id = rs.getInt("crest_id");
|
||||
|
||||
if (_nextId.get() <= id)
|
||||
{
|
||||
_nextId.set(id + 1);
|
||||
@ -88,7 +87,7 @@ public class CrestTable
|
||||
// a crest id because client will display wrong crest if its reused
|
||||
if (!crestsInUse.contains(id) && (id != (_nextId.get() - 1)))
|
||||
{
|
||||
rs.deleteRow();
|
||||
removeCrest(id);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -78,7 +78,6 @@ public class CrestTable
|
||||
while (rs.next())
|
||||
{
|
||||
final int id = rs.getInt("crest_id");
|
||||
|
||||
if (_nextId.get() <= id)
|
||||
{
|
||||
_nextId.set(id + 1);
|
||||
@ -88,7 +87,7 @@ public class CrestTable
|
||||
// a crest id because client will display wrong crest if its reused
|
||||
if (!crestsInUse.contains(id) && (id != (_nextId.get() - 1)))
|
||||
{
|
||||
rs.deleteRow();
|
||||
removeCrest(id);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -78,7 +78,6 @@ public class CrestTable
|
||||
while (rs.next())
|
||||
{
|
||||
final int id = rs.getInt("crest_id");
|
||||
|
||||
if (_nextId.get() <= id)
|
||||
{
|
||||
_nextId.set(id + 1);
|
||||
@ -88,7 +87,7 @@ public class CrestTable
|
||||
// a crest id because client will display wrong crest if its reused
|
||||
if (!crestsInUse.contains(id) && (id != (_nextId.get() - 1)))
|
||||
{
|
||||
rs.deleteRow();
|
||||
removeCrest(id);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -78,7 +78,6 @@ public class CrestTable
|
||||
while (rs.next())
|
||||
{
|
||||
final int id = rs.getInt("crest_id");
|
||||
|
||||
if (_nextId.get() <= id)
|
||||
{
|
||||
_nextId.set(id + 1);
|
||||
@ -88,7 +87,7 @@ public class CrestTable
|
||||
// a crest id because client will display wrong crest if its reused
|
||||
if (!crestsInUse.contains(id) && (id != (_nextId.get() - 1)))
|
||||
{
|
||||
rs.deleteRow();
|
||||
removeCrest(id);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -78,7 +78,6 @@ public class CrestTable
|
||||
while (rs.next())
|
||||
{
|
||||
final int id = rs.getInt("crest_id");
|
||||
|
||||
if (_nextId.get() <= id)
|
||||
{
|
||||
_nextId.set(id + 1);
|
||||
@ -88,7 +87,7 @@ public class CrestTable
|
||||
// a crest id because client will display wrong crest if its reused
|
||||
if (!crestsInUse.contains(id) && (id != (_nextId.get() - 1)))
|
||||
{
|
||||
rs.deleteRow();
|
||||
removeCrest(id);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -78,7 +78,6 @@ public class CrestTable
|
||||
while (rs.next())
|
||||
{
|
||||
final int id = rs.getInt("crest_id");
|
||||
|
||||
if (_nextId.get() <= id)
|
||||
{
|
||||
_nextId.set(id + 1);
|
||||
@ -88,7 +87,7 @@ public class CrestTable
|
||||
// a crest id because client will display wrong crest if its reused
|
||||
if (!crestsInUse.contains(id) && (id != (_nextId.get() - 1)))
|
||||
{
|
||||
rs.deleteRow();
|
||||
removeCrest(id);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -78,7 +78,6 @@ public class CrestTable
|
||||
while (rs.next())
|
||||
{
|
||||
final int id = rs.getInt("crest_id");
|
||||
|
||||
if (_nextId.get() <= id)
|
||||
{
|
||||
_nextId.set(id + 1);
|
||||
@ -88,7 +87,7 @@ public class CrestTable
|
||||
// a crest id because client will display wrong crest if its reused
|
||||
if (!crestsInUse.contains(id) && (id != (_nextId.get() - 1)))
|
||||
{
|
||||
rs.deleteRow();
|
||||
removeCrest(id);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -78,7 +78,6 @@ public class CrestTable
|
||||
while (rs.next())
|
||||
{
|
||||
final int id = rs.getInt("crest_id");
|
||||
|
||||
if (_nextId.get() <= id)
|
||||
{
|
||||
_nextId.set(id + 1);
|
||||
@ -88,7 +87,7 @@ public class CrestTable
|
||||
// a crest id because client will display wrong crest if its reused
|
||||
if (!crestsInUse.contains(id) && (id != (_nextId.get() - 1)))
|
||||
{
|
||||
rs.deleteRow();
|
||||
removeCrest(id);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -78,7 +78,6 @@ public class CrestTable
|
||||
while (rs.next())
|
||||
{
|
||||
final int id = rs.getInt("crest_id");
|
||||
|
||||
if (_nextId.get() <= id)
|
||||
{
|
||||
_nextId.set(id + 1);
|
||||
@ -88,7 +87,7 @@ public class CrestTable
|
||||
// a crest id because client will display wrong crest if its reused
|
||||
if (!crestsInUse.contains(id) && (id != (_nextId.get() - 1)))
|
||||
{
|
||||
rs.deleteRow();
|
||||
removeCrest(id);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -78,7 +78,6 @@ public class CrestTable
|
||||
while (rs.next())
|
||||
{
|
||||
final int id = rs.getInt("crest_id");
|
||||
|
||||
if (_nextId.get() <= id)
|
||||
{
|
||||
_nextId.set(id + 1);
|
||||
@ -88,7 +87,7 @@ public class CrestTable
|
||||
// a crest id because client will display wrong crest if its reused
|
||||
if (!crestsInUse.contains(id) && (id != (_nextId.get() - 1)))
|
||||
{
|
||||
rs.deleteRow();
|
||||
removeCrest(id);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -78,7 +78,6 @@ public class CrestTable
|
||||
while (rs.next())
|
||||
{
|
||||
final int id = rs.getInt("crest_id");
|
||||
|
||||
if (_nextId.get() <= id)
|
||||
{
|
||||
_nextId.set(id + 1);
|
||||
@ -88,7 +87,7 @@ public class CrestTable
|
||||
// a crest id because client will display wrong crest if its reused
|
||||
if (!crestsInUse.contains(id) && (id != (_nextId.get() - 1)))
|
||||
{
|
||||
rs.deleteRow();
|
||||
removeCrest(id);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -78,7 +78,6 @@ public class CrestTable
|
||||
while (rs.next())
|
||||
{
|
||||
final int id = rs.getInt("crest_id");
|
||||
|
||||
if (_nextId.get() <= id)
|
||||
{
|
||||
_nextId.set(id + 1);
|
||||
@ -88,7 +87,7 @@ public class CrestTable
|
||||
// a crest id because client will display wrong crest if its reused
|
||||
if (!crestsInUse.contains(id) && (id != (_nextId.get() - 1)))
|
||||
{
|
||||
rs.deleteRow();
|
||||
removeCrest(id);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -78,7 +78,6 @@ public class CrestTable
|
||||
while (rs.next())
|
||||
{
|
||||
final int id = rs.getInt("crest_id");
|
||||
|
||||
if (_nextId.get() <= id)
|
||||
{
|
||||
_nextId.set(id + 1);
|
||||
@ -88,7 +87,7 @@ public class CrestTable
|
||||
// a crest id because client will display wrong crest if its reused
|
||||
if (!crestsInUse.contains(id) && (id != (_nextId.get() - 1)))
|
||||
{
|
||||
rs.deleteRow();
|
||||
removeCrest(id);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -78,7 +78,6 @@ public class CrestTable
|
||||
while (rs.next())
|
||||
{
|
||||
final int id = rs.getInt("crest_id");
|
||||
|
||||
if (_nextId.get() <= id)
|
||||
{
|
||||
_nextId.set(id + 1);
|
||||
@ -88,7 +87,7 @@ public class CrestTable
|
||||
// a crest id because client will display wrong crest if its reused
|
||||
if (!crestsInUse.contains(id) && (id != (_nextId.get() - 1)))
|
||||
{
|
||||
rs.deleteRow();
|
||||
removeCrest(id);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -78,7 +78,6 @@ public class CrestTable
|
||||
while (rs.next())
|
||||
{
|
||||
final int id = rs.getInt("crest_id");
|
||||
|
||||
if (_nextId.get() <= id)
|
||||
{
|
||||
_nextId.set(id + 1);
|
||||
@ -88,7 +87,7 @@ public class CrestTable
|
||||
// a crest id because client will display wrong crest if its reused
|
||||
if (!crestsInUse.contains(id) && (id != (_nextId.get() - 1)))
|
||||
{
|
||||
rs.deleteRow();
|
||||
removeCrest(id);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -78,7 +78,6 @@ public class CrestTable
|
||||
while (rs.next())
|
||||
{
|
||||
final int id = rs.getInt("crest_id");
|
||||
|
||||
if (_nextId.get() <= id)
|
||||
{
|
||||
_nextId.set(id + 1);
|
||||
@ -88,7 +87,7 @@ public class CrestTable
|
||||
// a crest id because client will display wrong crest if its reused
|
||||
if (!crestsInUse.contains(id) && (id != (_nextId.get() - 1)))
|
||||
{
|
||||
rs.deleteRow();
|
||||
removeCrest(id);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -78,7 +78,6 @@ public class CrestTable
|
||||
while (rs.next())
|
||||
{
|
||||
final int id = rs.getInt("crest_id");
|
||||
|
||||
if (_nextId.get() <= id)
|
||||
{
|
||||
_nextId.set(id + 1);
|
||||
@ -88,7 +87,7 @@ public class CrestTable
|
||||
// a crest id because client will display wrong crest if its reused
|
||||
if (!crestsInUse.contains(id) && (id != (_nextId.get() - 1)))
|
||||
{
|
||||
rs.deleteRow();
|
||||
removeCrest(id);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user