パッケージ org.postgresql.xa

クラス PGXADataSource

すべての実装されたインタフェース:
Referenceable, CommonDataSource, XADataSource

public class PGXADataSource extends BaseDataSource implements XADataSource
XA-enabled DataSource implementation.
  • コンストラクタの詳細

    • PGXADataSource

      public PGXADataSource()
  • メソッドの詳細

    • getXAConnection

      public XAConnection getXAConnection() throws SQLException
      Gets a connection to the PostgreSQL database. The database is identified by the DataSource properties serverName, databaseName, and portNumber. The user to connect as is identified by the DataSource properties user and password.
      定義:
      getXAConnection インタフェース内 XADataSource
      戻り値:
      A valid database connection.
      例外:
      SQLException - Occurs when the database connection cannot be established.
    • getXAConnection

      public XAConnection getXAConnection(@Nullable String user, @Nullable String password) throws SQLException
      Gets a XA-enabled connection to the PostgreSQL database. The database is identified by the DataSource properties serverName, databaseName, and portNumber. The user to connect as is identified by the arguments user and password, which override the DataSource properties by the same name.
      定義:
      getXAConnection インタフェース内 XADataSource
      戻り値:
      A valid database connection.
      例外:
      SQLException - Occurs when the database connection cannot be established.
    • getDescription

      public String getDescription()
      クラスからコピーされた説明: BaseDataSource
      Gets a description of this DataSource-ish thing. Must be customized by subclasses.
      定義:
      getDescription クラス内 BaseDataSource
      戻り値:
      description of this DataSource-ish thing
    • createReference

      protected Reference createReference()
      Generates a reference using the appropriate object factory.
      オーバーライド:
      createReference クラス内 BaseDataSource
      戻り値:
      reference using the appropriate object factory