Class MxStatuses

java.lang.Object
com.zb.mom.ww.mxgateway.client.MxStatuses

public final class MxStatuses extends Object
Helpers for inspecting MxaccessGateway.MxStatusProxy values returned by the gateway.

An MxStatusProxy mirrors the MXAccess COM MXSTATUS_PROXY struct. The success flag uses the MXAccess convention where any non-zero value indicates success.

  • Method Details

    • succeeded

      public static boolean succeeded(MxaccessGateway.MxStatusProxy status)
      Returns whether the supplied status proxy reports success.
      Parameters:
      status - the status proxy, may be null
      Returns:
      true if status is null or its success flag is non-zero, false otherwise
    • view

      Wraps a raw MxaccessGateway.MxStatusProxy in an accessor view that exposes its fields with idiomatic Java getters.
      Parameters:
      status - the raw status proxy
      Returns:
      a view backed by status