001 package com.sptci.prevayler.transaction;
002
003 import com.sptci.prevayler.PrevalentObject;
004
005 /**
006 * The transaction object for deleting a prevalent object from the prevalent
007 * system. This is purely a convenience class that makes invocation easier
008 * than directly using {@link Transaction}.
009 *
010 * <p>© Copyright 2008 <a href='http://sptci.com/' target='_top'>Sans Pareil
011 * Technologies, Inc.</a></p>
012 * @author Rakesh Vidyadharan 2008-05-24
013 * @version $Id: Delete.java 4345 2008-06-30 21:22:03Z rakesh $
014 */
015 public class Delete<P extends PrevalentObject> extends Transaction<P>
016 {
017 private static final long serialVersionUID = 1l;
018
019 /**
020 * The name of the method on {@link com.sptci.prevayler.PrevalentSystem}
021 * that is invoked.
022 */
023 private static final String METHOD = "delete";
024
025 /**
026 * Create a new instance of the transaction using the specified prevalent
027 * object.
028 *
029 * @param object The prevalent object to be deleted from the system.
030 */
031 public Delete( final P object )
032 {
033 super( METHOD, new Parameter( PrevalentObject.class, object ) );
034 }
035 }