|
|
@ -51,11 +51,9 @@ public class EdgeEventInsertRepository { |
|
|
protected void doInTransactionWithoutResult(TransactionStatus status) { |
|
|
protected void doInTransactionWithoutResult(TransactionStatus status) { |
|
|
jdbcTemplate.batchUpdate(INSERT, new BatchPreparedStatementSetter() { |
|
|
jdbcTemplate.batchUpdate(INSERT, new BatchPreparedStatementSetter() { |
|
|
@Override |
|
|
@Override |
|
|
|
|
|
|
|
|
public void setValues(PreparedStatement ps, int i) throws SQLException { |
|
|
public void setValues(PreparedStatement ps, int i) throws SQLException { |
|
|
EdgeEventEntity edgeEvent = entities.get(i); |
|
|
EdgeEventEntity edgeEvent = entities.get(i); |
|
|
ps.setObject(1, edgeEvent.getId()); |
|
|
ps.setObject(1, edgeEvent.getId()); |
|
|
|
|
|
|
|
|
ps.setLong(2, edgeEvent.getCreatedTime()); |
|
|
ps.setLong(2, edgeEvent.getCreatedTime()); |
|
|
ps.setObject(3, edgeEvent.getEdgeId()); |
|
|
ps.setObject(3, edgeEvent.getEdgeId()); |
|
|
ps.setString(4, edgeEvent.getEdgeEventType().name()); |
|
|
ps.setString(4, edgeEvent.getEdgeEventType().name()); |
|
|
|