1 16 package com.buchuki.ensmer.prevayler.queries; 17 18 import org.prevayler.*; 19 import com.buchuki.ensmer.prevayler.*; 20 import java.util.Date ; 21 22 28 public class SetConfigPropertiesTransaction implements Transaction { 29 30 34 static final long serialVersionUID = 20050328L; 35 36 42 public SetConfigPropertiesTransaction(Long objectID, Long configObjectID) { 43 this.object = objectID; 44 this.config = configObjectID; 45 } 46 47 54 public void executeOn(Object system, Date ignored) { 55 ((EnsmerPrevayler) system).getConfiguratorMap().put(object, config); 56 } 57 58 61 private Long object; 62 63 66 private Long config; 67 } 68 | Popular Tags |