ProgramixGenericLib v5.0.1

com.programix.da2.bridge
Class DABridgeResponse

java.lang.Object
  extended by com.programix.da2.bridge.DABridgeResponse
All Implemented Interfaces:
Serializable

public class DABridgeResponse
extends Object
implements Serializable

This part of the Data Access Bridge system is used to encapsulate a response from the invocation of a method on a Data Access interface (both a normal response and exceptions). See DABridgeProcessor and DABridgeRequest.

Author:
Paul Hyde
See Also:
Serialized Form

Constructor Summary
DABridgeResponse(DABridgeExceptionTransport exceptionWrapper, byte[] sessionId)
           
DABridgeResponse(Exception exception, byte[] sessionId)
           
DABridgeResponse(Object result, byte[] sessionId)
           
 
Method Summary
 Exception getException()
           
 Object getResult()
           
 byte[] getSessionId()
           
 boolean isException()
           
 boolean isResult()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DABridgeResponse

public DABridgeResponse(Object result,
                        byte[] sessionId)

DABridgeResponse

public DABridgeResponse(DABridgeExceptionTransport exceptionWrapper,
                        byte[] sessionId)

DABridgeResponse

public DABridgeResponse(Exception exception,
                        byte[] sessionId)
Method Detail

isResult

public boolean isResult()

isException

public boolean isException()

getResult

public Object getResult()
                 throws DAException
Throws:
DAException

getException

public Exception getException()
                       throws DAException
Throws:
DAException

getSessionId

public byte[] getSessionId()

ProgramixGenericLib v5.0.1

Copyright © 2001-2009 Programix Incorporated. All rights reserved. ProgramixGenericLib is free and is OSI Certified Open Source Software under the BSD license.