1 5 package org.prevayler.implementation; 6 7 import java.io.Serializable ; 8 import java.util.Date ; 9 10 import org.prevayler.Transaction; 11 12 public class TransactionTimestamp implements Serializable { 13 14 static final long serialVersionUID = 0L; 15 16 private final Transaction transaction; 17 private final long timestamp; 18 19 public TransactionTimestamp(Transaction transaction, Date timestamp) { 20 this.transaction = transaction; 21 this.timestamp = timestamp.getTime(); 22 } 23 24 public Transaction transaction() { 25 return this.transaction; 26 } 27 28 public Date timestamp() { 29 return new Date (this.timestamp); 30 } 31 32 } 33 | Popular Tags |