1 16 package com.buchuki.ensmer.prevayler.queries; 17 18 import java.io.Serializable ; 19 import java.util.Date ; 20 import com.buchuki.ensmer.prevayler.*; 21 import org.prevayler.*; 22 23 28 public class SetObjectDataTransaction implements Transaction { 29 30 34 static final long serialVersionUID = 20050328L; 35 36 43 public SetObjectDataTransaction(long id, Serializable data) { 44 this.id = id; 45 this.data = data; 46 } 47 48 55 public void executeOn(Object system, Date ignored) { 56 ((EnsmerPrevayler) system).getObjectPrevayler().setData(id, data); 57 } 58 59 62 private long id; 63 64 67 private Serializable data; 68 } 69 70 | Popular Tags |