パッケージ org.postgresql.util

クラス PGPropertyUtil

java.lang.Object
org.postgresql.util.PGPropertyUtil

public class PGPropertyUtil extends Object
routines to support PG properties
  • コンストラクタの詳細

    • PGPropertyUtil

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

    • propertiesConsistencyCheck

      public static boolean propertiesConsistencyCheck(Properties properties)
      Validate properties. Goal is to detect inconsistencies and report understandable messages
      パラメータ:
      properties - properties
      戻り値:
      false if errors found
    • translatePGServiceToPGProperty

      public static String translatePGServiceToPGProperty(String serviceKey)
      translate PGSERVICEFILE keys host, port, dbname Example: "host" becomes "PGHOST"
      パラメータ:
      serviceKey - key in pg_service.conf
      戻り値:
      translated property or the same value if translation is not needed
    • translatePGPropertyToPGService

      public static String translatePGPropertyToPGService(String propertyKey)
      translate PGSERVICEFILE keys host, port, dbname Example: "PGHOST" becomes "host"
      パラメータ:
      propertyKey - postgres property
      戻り値:
      translated property or the same value if translation is not needed