I think maybe you are giving your hamster human emotions and ways of thinking that they don't actually have as far as I am aware.
A hamster seeking a mate does so by acting on instinct. It smells a female and it seeks it out to mate. If it never encounters the smell it won't worry about mating!
They won't react unless the stimulus appears so as long as their other needs are being met with food, water and some stimulation with things to do and space to exercise theysimply carry on as normal with daily activities.
Should you have a hamster of the opposite sex they will certainly try and get to it, following instincts but in my experience of keeping both sexes they soon get used to it and it does not upset their normal routine of sleeping and eating.
They don't experience sadness and happiness in the same way as we do I don't think. I'm not sure I've explained that very well but you have to remember they are hamsters and we are people and we don't think the same way