}
}
public static void putAsyncRequestVMDeployment(AsyncRequest asyncRequest, int binding_index, Connection c) throws SQLException {
VirtualMachine binding = asyncRequest.getBindings()[binding_index];
VirtualMachineDeployment dep = binding.getDeployment();
if (dep == null) {
return;
}
PreparedStatement pstmt = c.prepareStatement(SQL_INSERT_ASYNC_REQUESTS_VM_DEPLOYMENT);
pstmt.setString(1, asyncRequest.getId());
pstmt.setInt(2, binding_index);
pstmt.setInt(3, binding.getID());
pstmt.setInt(4, dep.getRequestedState());
pstmt.setInt(5, dep.getRequestedShutdown());
pstmt.setInt(6, dep.getMinDuration());
pstmt.setInt(7, dep.getIndividualPhysicalMemory());
pstmt.setInt(8, dep.getIndividualCPUCount());