Class SubstringFormatEntry


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 20181201")
    public final class SubstringFormatEntry
    extends FormatEntry
    The Substring masking format extracts a portion of the original column value and uses it to replace the original value.

    It internally uses the Oracle SUBSTR function. It takes the start position and length as input, extracts substring from the original value using SUBSTR, and uses the substring to replace the original value. To learn more, check Substring in the Data Safe documentation.
    Note: Objects should always be created or deserialized using the SubstringFormatEntry.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of the SubstringFormatEntry.Builder, which maintain a set of all explicitly set fields called SubstringFormatEntry.Builder.__explicitlySet__. The hashCode() and equals(Object) methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).

    • Method Detail

      • getStartPosition

        public Integer getStartPosition()
        The starting position in the original string from where the substring should be extracted.

        It can be either a positive or a negative integer. If It’s negative, the counting starts from the end of the string.

        Returns:
        the value
      • getLength

        public Integer getLength()
        The number of characters that should be there in the substring.

        It should be an integer and greater than zero.

        Returns:
        the value
      • toString

        public String toString​(boolean includeByteArrayContents)
        Return a string representation of the object.
        Overrides:
        toString in class FormatEntry
        Parameters:
        includeByteArrayContents - true to include the full contents of byte arrays
        Returns:
        string representation