I know, how to convert a Timestamp to a long, with the getTime() method.
Timestamp
Is there a method that convert a long to a TimeStamp?
long
TimeStamp
See: Timestamp.Timestamp(long):
new Timestamp(someLong)