public class SqlMonikerImpl extends java.lang.Object implements SqlMoniker
SqlMoniker
.Modifier and Type | Field and Description |
---|---|
private com.google.common.collect.ImmutableList<java.lang.String> |
names |
private SqlMonikerType |
type |
COMPARATOR
Constructor and Description |
---|
SqlMonikerImpl(java.util.List<java.lang.String> names,
SqlMonikerType type)
Creates a moniker with an array of names.
|
SqlMonikerImpl(java.lang.String name,
SqlMonikerType type)
Creates a moniker with a single name.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.String> |
getFullyQualifiedNames()
Returns the array of component names.
|
SqlMonikerType |
getType()
Returns the type of object referred to by this moniker.
|
int |
hashCode() |
java.lang.String |
id() |
SqlIdentifier |
toIdentifier()
Creates a
SqlIdentifier containing the fully-qualified name. |
java.lang.String |
toString() |
private final com.google.common.collect.ImmutableList<java.lang.String> names
private final SqlMonikerType type
public SqlMonikerImpl(java.util.List<java.lang.String> names, SqlMonikerType type)
public SqlMonikerImpl(java.lang.String name, SqlMonikerType type)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public SqlMonikerType getType()
SqlMoniker
getType
in interface SqlMoniker
public java.util.List<java.lang.String> getFullyQualifiedNames()
SqlMoniker
getFullyQualifiedNames
in interface SqlMoniker
public SqlIdentifier toIdentifier()
SqlMoniker
SqlIdentifier
containing the fully-qualified name.toIdentifier
in interface SqlMoniker
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String id()
id
in interface SqlMoniker
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.