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