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