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 SetAreaUserPositionTransaction implements Transaction { 29 30 34 static final long serialVersionUID = 20050328L; 35 36 43 public SetAreaUserPositionTransaction(Long id, Matrix4f position) { 44 this.id = id; 45 this.position = position; 46 } 47 48 55 public void executeOn(Object system, Date ignored) { 56 ((EnsmerPrevayler) system).getAreaPrevayler().setUserPosition(id, position); 57 } 58 59 62 private Long id; 63 64 67 private Matrix4f position; 68 } 69 70 | Popular Tags |