Class Reference


  • public class Reference
    extends Object
    Representation of a Snowflake object reference.

    Read more about object references at Snowflake here and here.

    • Method Detail

      • of

        public static Reference of​(String reference)
        Creates a new reference instance from the provided String.
        Parameters:
        reference - reference String
        Returns:
        new reference instance
      • from

        public static Reference from​(String referenceName)
        Creates a new reference instance from the provided reference name.

        The provided name is wrapped in the reference('%s') String before the instance creation.

        Parameters:
        referenceName - reference name
        Returns:
        new reference instance
      • isValid

        public static boolean isValid​(String reference)
        Returns whether the provided String is a valid reference.
        Parameters:
        reference - String to check
        Returns:
        whether the provided String is a valid reference
      • getName

        public String getName()
        Returns the reference name.
        Returns:
        reference name
      • getValue

        public String getValue()
        Returns the reference value.

        The returned value has the reference('name') form.

        Returns:
        reference value
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object