Class TandemUtility

java.lang.Object
com.softwaremining.vendors.tandem.TandemUtility

public class TandemUtility extends Object
  • Constructor Details

    • TandemUtility

      public TandemUtility()
  • Method Details

    • getConverttimestamp

      public static long getConverttimestamp(double julianTimestamp)
    • getConverttimestamp

      public static long getConverttimestamp(long julianTimestamp, int direction, int node)
    • getInterprettimestamp

      public static long getInterprettimestamp(double julianTimestamp, CBLBean wrapper)
    • getInterprettimestamp

      public static long getInterprettimestamp(double julianTimestamp, String datetime)
    • getInterprettimestamp

      public static long getInterprettimestamp(long julianTimestamp, int[] dateAndTime)
    • getInterprettimestamp

      public static long getInterprettimestamp(long julianTimestamp)
    • getJuliantimestamp

      public static long getJuliantimestamp(int tuid, int error, int node)
    • getJuliantimestamp

      public static long getJuliantimestamp()
    • getJuliantimestamp

      public static long getJuliantimestamp(int type, int tuid, int error, int node)
    • getComputetimestamp

      public static long getComputetimestamp(int[] dateAndTime, int errorMask)
      Converts a Gregorian date and time into a 64-bit Julian timestamp. Limitations: The Java Gregorian calendar has no microseconds precision so the last 3 digits will be always 000.
      Parameters:
      dateAndTime - - an array containing a date and time of day
      errorMask - - is a bit array that indicates any error in the dateAndTime parameter
      Returns:
      returns a 64-bit Julian timestamp, computed from dateAndTime.
    • getComputetimestamp

      public static long getComputetimestamp(int[] dateAndTime)
    • getComputetimestamp

      public static long getComputetimestamp(CBLBean wrapper)
      Shortcut version to confirm to usual call patterns used everywhere else in the framework. Error mask of 0 is passed behind the scenes as a parameter.
      Parameters:
      wrapper - The actual parameter as supplied by original COBOL call
      Returns:
      returns the result of calling next method in polymorphic chain
    • getComputetimestamp

      public static long getComputetimestamp(CBLBean wrapper, int errorMask)