Class VsamDetailAttributes

    • Method Detail

      • hasAlternateKeys

        public final boolean hasAlternateKeys()
        For responses, this returns true if the service returned a value for the AlternateKeys property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
      • alternateKeys

        public final List<AlternateKey> alternateKeys()

        The alternate key definitions, if any. A legacy dataset might not have any alternate key defined, but if those alternate keys definitions exist, provide them as some applications will make use of them.

        Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

        This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasAlternateKeys() method.

        Returns:
        The alternate key definitions, if any. A legacy dataset might not have any alternate key defined, but if those alternate keys definitions exist, provide them as some applications will make use of them.
      • cacheAtStartup

        public final Boolean cacheAtStartup()

        If set to True, enforces loading the data set into cache before it’s used by the application.

        Returns:
        If set to True, enforces loading the data set into cache before it’s used by the application.
      • compressed

        public final Boolean compressed()

        Indicates whether indexes for this dataset are stored as compressed values. If you have a large data set (typically > 100 Mb), consider setting this flag to True.

        Returns:
        Indicates whether indexes for this dataset are stored as compressed values. If you have a large data set (typically > 100 Mb), consider setting this flag to True.
      • encoding

        public final String encoding()

        The character set used by the data set. Can be ASCII, EBCDIC, or unknown.

        Returns:
        The character set used by the data set. Can be ASCII, EBCDIC, or unknown.
      • primaryKey

        public final PrimaryKey primaryKey()

        The primary key of the data set.

        Returns:
        The primary key of the data set.
      • recordFormat

        public final String recordFormat()

        The record format of the data set.

        Returns:
        The record format of the data set.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)