1 package org.apache.ojb.broker.prevayler; 2 3 17 18 import java.io.Serializable ; 19 20 import org.prevayler.Command; 21 import org.prevayler.PrevalentSystem; 22 23 27 public class CommandStore implements Command 28 { 29 private final Object objectToStore; 30 31 public CommandStore(Object toStore) 32 { 33 this.objectToStore = toStore; 34 } 35 36 39 public Serializable execute(PrevalentSystem ps) throws Exception  40 { 41 ((Database) ps).store(objectToStore); 42 return null; 43 } 44 45 } 46 | Popular Tags |