ca.uhn.hl7v2.protocol.impl
Class NullSafeStorage

java.lang.Object
  extended by ca.uhn.hl7v2.protocol.impl.NullSafeStorage
All Implemented Interfaces:
SafeStorage

public class NullSafeStorage
extends java.lang.Object
implements SafeStorage

A non-functional implementation of SafeStorage. This is intended as a placeholder pending release of UHN's Simple Record Store project.

Version:
$Revision: 1.1 $ updated on $Date: 2007/02/19 02:24:26 $ by $Author: jamesagnew $
Author:
Bryan Tripp

Constructor Summary
NullSafeStorage()
           
 
Method Summary
 void discard(Transportable theMessage)
          Does nothing.
 Transportable[] restore()
          Returns an empty array.
 void store(Transportable theMessage)
          Does nothing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullSafeStorage

public NullSafeStorage()
Method Detail

store

public void store(Transportable theMessage)
           throws HL7Exception
Does nothing.

Specified by:
store in interface SafeStorage
Parameters:
theMessage - the message to store
Throws:
HL7Exception - if there is some problem accessing the store

discard

public void discard(Transportable theMessage)
             throws HL7Exception
Does nothing.

Specified by:
discard in interface SafeStorage
Parameters:
theMessage - the message to discard
Throws:
HL7Exception - if there is some problem accessing the store

restore

public Transportable[] restore()
                        throws HL7Exception
Returns an empty array.

Specified by:
restore in interface SafeStorage
Returns:
all messages in the store
Throws:
HL7Exception - if there is some problem accessing the store


Copyright © 2001-2011 University Health Network. All Rights Reserved.