Class SqlMonikerImpl

  • All Implemented Interfaces:
    SqlMoniker

    public class SqlMonikerImpl
    extends java.lang.Object
    implements SqlMoniker
    A generic implementation of SqlMoniker.
    • Field Detail

      • names

        private final com.google.common.collect.ImmutableList<java.lang.String> names
    • Constructor Detail

      • SqlMonikerImpl

        public SqlMonikerImpl​(java.util.List<java.lang.String> names,
                              SqlMonikerType type)
        Creates a moniker with an array of names.
      • SqlMonikerImpl

        public SqlMonikerImpl​(java.lang.String name,
                              SqlMonikerType type)
        Creates a moniker with a single name.
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • getType

        public SqlMonikerType getType()
        Description copied from interface: SqlMoniker
        Returns the type of object referred to by this moniker. Never null.
        Specified by:
        getType in interface SqlMoniker
      • getFullyQualifiedNames

        public java.util.List<java.lang.String> getFullyQualifiedNames()
        Description copied from interface: SqlMoniker
        Returns the array of component names.
        Specified by:
        getFullyQualifiedNames in interface SqlMoniker
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • id

        public java.lang.String id()
        Specified by:
        id in interface SqlMoniker