001/*
002 * Created on 19-Apr-2004
003 */
004package ca.uhn.hl7v2.protocol.impl;
005
006import ca.uhn.hl7v2.HL7Exception;
007import ca.uhn.hl7v2.protocol.SafeStorage;
008import ca.uhn.hl7v2.protocol.Transportable;
009
010/**
011 * A non-functional implementation of <code>SafeStorage</code>.  This is 
012 * intended as a placeholder pending release of UHN's Simple Record Store
013 * project.   
014 * 
015 * @author <a href="mailto:bryan.tripp@uhn.on.ca">Bryan Tripp</a>
016 * @version $Revision: 1.1 $ updated on $Date: 2007-02-19 02:24:26 $ by $Author: jamesagnew $
017 */
018public class NullSafeStorage implements SafeStorage {
019
020    /** 
021     * Does nothing. 
022     */
023    public void store(Transportable theMessage) throws HL7Exception {
024    }
025
026    /** 
027     * Does nothing. 
028     */
029    public void discard(Transportable theMessage) throws HL7Exception {
030     }
031
032    /** 
033     * Returns an empty array. 
034     */
035    public Transportable[] restore() throws HL7Exception {
036        return new Transportable[0];
037    }
038
039}