Class Reference
- java.lang.Object
-
- com.snowflake.connectors.common.object.Reference
-
public class Reference extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static Reference
from(String referenceName)
Creates a new reference instance from the provided reference name.String
getName()
Returns the reference name.String
getValue()
Returns the reference value.int
hashCode()
static boolean
isValid(String reference)
Returns whether the provided String is a valid reference.static Reference
of(String reference)
Creates a new reference instance from the provided String.String
toString()
-
-
-
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
-
-