public abstract void prepare();
public void load() {
ThreadConnection c = ThreadConnection.getInstance();
try {
PreparedStatement s = c.prepareStatement(STATEMENT);
s.setInt(1, 671614);
s.setString(2, "application/jpg");
s.setString(3, prefix + imageId + ".jpg");
s.setInt(4, 1280);
s.setInt(5, 960);
s.setString(6, prefix + imageId + "t.jpg");
s.setInt(7, this.imageKey);
c.addBatch();
} catch (SQLException e) {
logger.log(Level.SEVERE, e.getMessage(), e);
}
}