@Override
   synchronized public void addOrder(final Order order) {
         Connection conn = null;
        PreparedStatement stmt = null;
       
        try {
            conn = dataSource.getConnection();
            stmt = conn.prepareStatement("INSERT INTO \"ORDER\" (ORDER_DATE,USER_ID) VALUES(?,?)");
            stmt.setTimestamp(1,new Timestamp(new Date().getTime()));
            stmt.setString(2, order.getUser_ID());
            stmt.executeUpdate();
        } catch (SQLException ex1) {
            throw new RuntimeException(ex1);
        } finally {
              if (stmt != null) {
                try {
                    stmt.close();
                } catch (SQLException ex1) {
                    Logger.getLogger(BookDAO.class.getName()).log(Level.SEVERE, null, ex1);
                }
            }
            if (conn != null) {
                try {
                    conn.close();
                } catch (SQLException ex1) {
                    Logger.getLogger(BookDAO.class.getName()).log(Level.SEVERE, null, ex1);
                }
            }
        }
    }