Merge pull request #14 from quonic/master

Forgot to include DelayedReinforcements.class
This commit is contained in:
Justin
2012-03-18 17:07:25 -07:00

View File

@@ -0,0 +1,26 @@
package com.untamedears.Citadel;
import java.sql.PreparedStatement;
import java.sql.SQLException;
public class DelayedReinforcement implements Runnable
{
private PreparedStatement addReinforcedBlockStatement;
public DelayedReinforcement(PreparedStatement ps)
{
this.addReinforcedBlockStatement = ps;
}
public void run()
{
try
{
this.addReinforcedBlockStatement.execute();
this.addReinforcedBlockStatement.close();
} catch (SQLException e) {
System.err.println("Error in protecting block. Details:");
System.err.println(e.toString());
}
}
}