Class ImmutableSqlView

    • Method Detail

      • getId

        public String getId()
        Unique id for this object.

        This id is unique for the entire lifetime of this Content object and persists across renames. Two content objects with the same key will have different id.

        Overrides:
        getId in class Content
      • getSqlText

        public String getSqlText()
        Specified by:
        getSqlText in class SqlView
        Returns:
        The value of the sqlText attribute
      • withId

        public final ImmutableSqlView withId​(String value)
        Copy the current immutable object by setting a value for the id attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for id
        Returns:
        A modified copy of the this object
      • withSqlText

        public final ImmutableSqlView withSqlText​(String value)
        Copy the current immutable object by setting a value for the sqlText attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for sqlText
        Returns:
        A modified copy of the this object
      • withDialect

        public final ImmutableSqlView withDialect​(SqlView.Dialect value)
        Copy the current immutable object by setting a value for the dialect attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for dialect
        Returns:
        A modified copy of the this object
      • equals

        public boolean equals​(@Nullable
                              Object another)
        This instance is equal to all instances of ImmutableSqlView that have equal attribute values.
        Overrides:
        equals in class Object
        Returns:
        true if this is equal to another instance
      • hashCode

        public int hashCode()
        Computes a hash code from attributes: id, sqlText, dialect.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

        public String toString()
        Prints the immutable value SqlView with attribute values.
        Overrides:
        toString in class Object
        Returns:
        A string representation of the value
      • copyOf

        public static ImmutableSqlView copyOf​(SqlView instance)
        Creates an immutable copy of a SqlView value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.
        Parameters:
        instance - The instance to copy
        Returns:
        A copied immutable SqlView instance
      • builder

        public static ImmutableSqlView.Builder builder()
        Creates a builder for ImmutableSqlView.
         ImmutableSqlView.builder()
            .id(String) // optional id
            .sqlText(String) // required sqlText
            .dialect(org.projectnessie.model.SqlView.Dialect) // required dialect
            .build();
         
        Returns:
        A new ImmutableSqlView builder