Package org.postgresql
Enum PGEnvironment
- All Implemented Interfaces:
Serializable
,Comparable<PGEnvironment>
,java.lang.constant.Constable
Some environment variables are intended to have same meaning as libpq describes here:
https://www.postgresql.org/docs/current/libpq-envars.html
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionSpecified location of password file.The connection service resource (file, url) allows connection parameters to be associated with a single service name.Specified location of password file.The connection service resource (file, url) allows connection parameters to be associated with a single service name.sets the directory containing the PGSERVICEFILE file and possibly other system-wide configuration files. -
Method Summary
Modifier and TypeMethodDescription@Nullable String
Returns the default value for this parameter.Returns the description for this parameter.getName()
Returns the name of the parameter.static PGEnvironment
Returns the enum constant of this type with the specified name.static PGEnvironment[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ORG_POSTGRESQL_PGPASSFILE
Specified location of password file. -
PGPASSFILE
Specified location of password file. -
ORG_POSTGRESQL_PGSERVICEFILE
The connection service resource (file, url) allows connection parameters to be associated with a single service name. -
PGSERVICEFILE
The connection service resource (file, url) allows connection parameters to be associated with a single service name. -
PGSYSCONFDIR
sets the directory containing the PGSERVICEFILE file and possibly other system-wide configuration files.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getName
Returns the name of the parameter.- Returns:
- the name of the parameter
-
getDefaultValue
Returns the default value for this parameter.- Returns:
- the default value for this parameter or null
-
getDescription
Returns the description for this parameter.- Returns:
- the description for this parameter
-