Class Connection

    • Constructor Detail

      • Connection

        public Connection()
        Create instance of Connection.
      • Connection

        public Connection​(Version version,
                          java.lang.String stack)
        Create instance of Connection.
        Parameters:
        version - version
        stack - protocol stack
      • Connection

        public Connection​(Version version,
                          java.lang.String stack,
                          ConnectionType conntype)
        Create instance of Connection.
        Parameters:
        version - version
        stack - protocol stack
        conntype - connection type
    • Method Detail

      • getStack

        public java.lang.String getStack()
        Get protocol stack.
        Returns:
        protocol stack.
      • setStack

        public void setStack​(java.lang.String stack)
        Set protocol stack.
        Parameters:
        stack - protocol stack
      • getConntype

        public ConnectionType getConntype()
        Get connection type.
        Returns:
        connection type
      • setId

        public void setId​(java.lang.String id)
        Set ID.
        Parameters:
        id - id
      • setId

        public void setId​(int id)
        Set ID.
        Parameters:
        id - id
      • duplicate

        public Connection duplicate()
        Description copied from interface: Duplicatable
        Duplicate object. The result will have the same characteristics as the original but may not be equal to it.
        Specified by:
        duplicate in interface Duplicatable
        Returns:
        duplicate
      • getId

        public java.lang.String getId()
        Description copied from interface: Persistable
        Get id identifying object.
        Specified by:
        getId in interface Persistable
        Returns:
        id
      • getType

        public java.lang.String getType()
        Description copied from interface: Persistable
        Get type (XML element name / database table name not Java class name).
        Specified by:
        getType in interface Persistable
        Returns:
        type
      • getChildren

        public java.util.List<java.util.List<Persistable>> getChildren()
        Description copied from interface: Persistable
        Get all multi value fields.
        Specified by:
        getChildren in interface Persistable
        Returns:
        list of list of persistable objects
      • setChildren

        public void setChildren​(java.util.List<java.util.List<Persistable>> childs)
        Description copied from interface: Persistable
        Set all multi value fields.
        Specified by:
        setChildren in interface Persistable
        Parameters:
        childs - list of list of persistable objects
      • equals

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

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

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