Class PgConnectionImpl

    • Method Detail

      • getDataSource

        @Nonnull
        public javax.sql.DataSource getDataSource()
        Description copied from interface: PgConnection
        Gets a standard DataSource object to access the database.
        Specified by:
        getDataSource in interface PgConnection
        Returns:
        DataSource
      • getHost

        @Nonnull
        public PgHost getHost()
        Description copied from interface: HostAware
        Gets information about host in the cluster.
        Specified by:
        getHost in interface HostAware
        Returns:
        PgHost
        See Also:
        PgHost
      • ofMaster

        @Nonnull
        public static PgConnection ofMaster​(@Nonnull
                                            javax.sql.DataSource dataSource)
      • of

        @Nonnull
        public static PgConnection of​(@Nonnull
                                      javax.sql.DataSource dataSource,
                                      @Nonnull
                                      PgHost host)
      • 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