パッケージ org.postgresql.ds.common

クラス BaseDataSource

java.lang.Object
org.postgresql.ds.common.BaseDataSource
すべての実装されたインタフェース:
Referenceable, CommonDataSource
直系の既知のサブクラス:
PGConnectionPoolDataSource, PGPoolingDataSource, PGSimpleDataSource, PGXADataSource

public abstract class BaseDataSource extends Object implements CommonDataSource, Referenceable
Base class for data sources and related classes.
  • コンストラクタの詳細

    • BaseDataSource

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

    • getConnection

      public Connection getConnection() 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.
      戻り値:
      A valid database connection.
      例外:
      SQLException - Occurs when the database connection cannot be established.
    • getConnection

      public Connection getConnection(@Nullable String user, @Nullable String password) 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 arguments user and password, which override the DataSource properties by the same name.
      パラメータ:
      user - user
      password - password
      戻り値:
      A valid database connection.
      例外:
      SQLException - Occurs when the database connection cannot be established.
    • getLogWriter

      public @Nullable PrintWriter getLogWriter()
      This implementation don't use a LogWriter.
      定義:
      getLogWriter インタフェース内 CommonDataSource
    • setLogWriter

      public void setLogWriter(@Nullable PrintWriter printWriter)
      This implementation don't use a LogWriter.
      定義:
      setLogWriter インタフェース内 CommonDataSource
      パラメータ:
      printWriter - Not used
    • getServerName

      @Deprecated public String getServerName()
      推奨されていません。
      Gets the name of the host the PostgreSQL database is running on.
      戻り値:
      name of the host the PostgreSQL database is running on
    • getServerNames

      public String[] getServerNames()
      Gets the name of the host(s) the PostgreSQL database is running on.
      戻り値:
      name of the host(s) the PostgreSQL database is running on
    • setServerName

      @Deprecated public void setServerName(String serverName)
      推奨されていません。
      Sets the name of the host the PostgreSQL database is running on. If this is changed, it will only affect future calls to getConnection. The default value is localhost.
      パラメータ:
      serverName - name of the host the PostgreSQL database is running on
    • setServerNames

      public void setServerNames(@Nullable String @Nullable [] serverNames)
      Sets the name of the host(s) the PostgreSQL database is running on. If this is changed, it will only affect future calls to getConnection. The default value is localhost.
      パラメータ:
      serverNames - name of the host(s) the PostgreSQL database is running on
    • getDatabaseName

      public @Nullable String getDatabaseName()
      Gets the name of the PostgreSQL database, running on the server identified by the serverName property.
      戻り値:
      name of the PostgreSQL database
    • setDatabaseName

      public void setDatabaseName(@Nullable String databaseName)
      Sets the name of the PostgreSQL database, running on the server identified by the serverName property. If this is changed, it will only affect future calls to getConnection.
      パラメータ:
      databaseName - name of the PostgreSQL database
    • getDescription

      public abstract String getDescription()
      Gets a description of this DataSource-ish thing. Must be customized by subclasses.
      戻り値:
      description of this DataSource-ish thing
    • getUser

      public @Nullable String getUser()
      Gets the user to connect as by default. If this is not specified, you must use the getConnection method which takes a user and password as parameters.
      戻り値:
      user to connect as by default
    • setUser

      public void setUser(@Nullable String user)
      Sets the user to connect as by default. If this is not specified, you must use the getConnection method which takes a user and password as parameters. If this is changed, it will only affect future calls to getConnection.
      パラメータ:
      user - user to connect as by default
    • getPassword

      public @Nullable String getPassword()
      Gets the password to connect with by default. If this is not specified but a password is needed to log in, you must use the getConnection method which takes a user and password as parameters.
      戻り値:
      password to connect with by default
    • setPassword

      public void setPassword(@Nullable String password)
      Sets the password to connect with by default. If this is not specified but a password is needed to log in, you must use the getConnection method which takes a user and password as parameters. If this is changed, it will only affect future calls to getConnection.
      パラメータ:
      password - password to connect with by default
    • getPortNumber

      @Deprecated public int getPortNumber()
      推奨されていません。
      Gets the port which the PostgreSQL server is listening on for TCP/IP connections.
      戻り値:
      The port, or 0 if the default port will be used.
    • getPortNumbers

      public int[] getPortNumbers()
      Gets the port(s) which the PostgreSQL server is listening on for TCP/IP connections.
      戻り値:
      The port(s), or 0 if the default port will be used.
    • setPortNumber

      @Deprecated public void setPortNumber(int portNumber)
      推奨されていません。
      Sets the port which the PostgreSQL server is listening on for TCP/IP connections. Be sure the -i flag is passed to postmaster when PostgreSQL is started. If this is not set, or set to 0, the default port will be used.
      パラメータ:
      portNumber - port which the PostgreSQL server is listening on for TCP/IP
    • setPortNumbers

      public void setPortNumbers(int @Nullable [] portNumbers)
      Sets the port(s) which the PostgreSQL server is listening on for TCP/IP connections. Be sure the -i flag is passed to postmaster when PostgreSQL is started. If this is not set, or set to 0, the default port will be used.
      パラメータ:
      portNumbers - port(s) which the PostgreSQL server is listening on for TCP/IP
    • getOptions

      public @Nullable String getOptions()
      戻り値:
      command line options for this connection
    • setOptions

      public void setOptions(@Nullable String options)
      Set command line options for this connection
      パラメータ:
      options - string to set options to
    • getLoginTimeout

      public int getLoginTimeout()
      定義:
      getLoginTimeout インタフェース内 CommonDataSource
      戻り値:
      login timeout
      関連項目:
    • setLoginTimeout

      public void setLoginTimeout(int loginTimeout)
      定義:
      setLoginTimeout インタフェース内 CommonDataSource
      パラメータ:
      loginTimeout - login timeout
      関連項目:
    • getConnectTimeout

      public int getConnectTimeout()
      戻り値:
      connect timeout
      関連項目:
    • setConnectTimeout

      public void setConnectTimeout(int connectTimeout)
      パラメータ:
      connectTimeout - connect timeout
      関連項目:
    • getGssResponseTimeout

      public int getGssResponseTimeout()
      戻り値:
      GSS ResponseTimeout
      関連項目:
    • setGssResponseTimeout

      public void setGssResponseTimeout(int gssResponseTimeout)
      パラメータ:
      gssResponseTimeout - gss response timeout
      関連項目:
    • getSslResponseTimeout

      public int getSslResponseTimeout()
      戻り値:
      SSL ResponseTimeout
      関連項目:
    • setSslResponseTimeout

      public void setSslResponseTimeout(int sslResponseTimeout)
      パラメータ:
      sslResponseTimeout - ssl response timeout
      関連項目:
    • getProtocolVersion

      public int getProtocolVersion()
      戻り値:
      protocol version
      関連項目:
    • setProtocolVersion

      public void setProtocolVersion(int protocolVersion)
      パラメータ:
      protocolVersion - protocol version
      関連項目:
    • getQuoteReturningIdentifiers

      public boolean getQuoteReturningIdentifiers()
      戻り値:
      quoteReturningIdentifiers
      関連項目:
    • setQuoteReturningIdentifiers

      public void setQuoteReturningIdentifiers(boolean quoteIdentifiers)
      パラメータ:
      quoteIdentifiers - indicate whether to quote identifiers
      関連項目:
    • getReceiveBufferSize

      public int getReceiveBufferSize()
      戻り値:
      receive buffer size
      関連項目:
    • setReceiveBufferSize

      public void setReceiveBufferSize(int nbytes)
      パラメータ:
      nbytes - receive buffer size
      関連項目:
    • getSendBufferSize

      public int getSendBufferSize()
      戻り値:
      send buffer size
      関連項目:
    • setSendBufferSize

      public void setSendBufferSize(int nbytes)
      パラメータ:
      nbytes - send buffer size
      関連項目:
    • setPrepareThreshold

      public void setPrepareThreshold(int count)
      パラメータ:
      count - prepare threshold
      関連項目:
    • getPrepareThreshold

      public int getPrepareThreshold()
      戻り値:
      prepare threshold
      関連項目:
    • getPreparedStatementCacheQueries

      public int getPreparedStatementCacheQueries()
      戻り値:
      prepared statement cache size (number of statements per connection)
      関連項目:
    • setPreparedStatementCacheQueries

      public void setPreparedStatementCacheQueries(int cacheSize)
      パラメータ:
      cacheSize - prepared statement cache size (number of statements per connection)
      関連項目:
    • getPreparedStatementCacheSizeMiB

      public int getPreparedStatementCacheSizeMiB()
      戻り値:
      prepared statement cache size (number of megabytes per connection)
      関連項目:
    • setPreparedStatementCacheSizeMiB

      public void setPreparedStatementCacheSizeMiB(int cacheSize)
      パラメータ:
      cacheSize - statement cache size (number of megabytes per connection)
      関連項目:
    • getDatabaseMetadataCacheFields

      public int getDatabaseMetadataCacheFields()
      戻り値:
      database metadata cache fields size (number of fields cached per connection)
      関連項目:
    • setDatabaseMetadataCacheFields

      public void setDatabaseMetadataCacheFields(int cacheSize)
      パラメータ:
      cacheSize - database metadata cache fields size (number of fields cached per connection)
      関連項目:
    • getDatabaseMetadataCacheFieldsMiB

      public int getDatabaseMetadataCacheFieldsMiB()
      戻り値:
      database metadata cache fields size (number of megabytes per connection)
      関連項目:
    • setDatabaseMetadataCacheFieldsMiB

      public void setDatabaseMetadataCacheFieldsMiB(int cacheSize)
      パラメータ:
      cacheSize - database metadata cache fields size (number of megabytes per connection)
      関連項目:
    • setDefaultRowFetchSize

      public void setDefaultRowFetchSize(int fetchSize)
      パラメータ:
      fetchSize - default fetch size
      関連項目:
    • getDefaultRowFetchSize

      public int getDefaultRowFetchSize()
      戻り値:
      default fetch size
      関連項目:
    • setUnknownLength

      public void setUnknownLength(int unknownLength)
      パラメータ:
      unknownLength - unknown length
      関連項目:
    • getUnknownLength

      public int getUnknownLength()
      戻り値:
      unknown length
      関連項目:
    • setSocketTimeout

      public void setSocketTimeout(int seconds)
      パラメータ:
      seconds - socket timeout
      関連項目:
    • getSocketTimeout

      public int getSocketTimeout()
      戻り値:
      socket timeout
      関連項目:
    • setCancelSignalTimeout

      public void setCancelSignalTimeout(int seconds)
      パラメータ:
      seconds - timeout that is used for sending cancel command
      関連項目:
    • getCancelSignalTimeout

      public int getCancelSignalTimeout()
      戻り値:
      timeout that is used for sending cancel command in seconds
      関連項目:
    • setSsl

      public void setSsl(boolean enabled)
      パラメータ:
      enabled - if SSL is enabled
      関連項目:
    • getSsl

      public boolean getSsl()
      戻り値:
      true if SSL is enabled
      関連項目:
    • setSslfactory

      public void setSslfactory(String classname)
      パラメータ:
      classname - SSL factory class name
      関連項目:
    • getSslfactory

      public @Nullable String getSslfactory()
      戻り値:
      SSL factory class name
      関連項目:
    • getSslMode

      public @Nullable String getSslMode()
      戻り値:
      SSL mode
      関連項目:
    • setSslMode

      public void setSslMode(@Nullable String mode)
      パラメータ:
      mode - SSL mode
      関連項目:
    • getSslFactoryArg

      public @Nullable String getSslFactoryArg()
      戻り値:
      SSL mode
      関連項目:
    • setSslFactoryArg

      public void setSslFactoryArg(@Nullable String arg)
      パラメータ:
      arg - argument forwarded to SSL factory
      関連項目:
    • getSslHostnameVerifier

      public @Nullable String getSslHostnameVerifier()
      戻り値:
      argument forwarded to SSL factory
      関連項目:
    • setSslHostnameVerifier

      public void setSslHostnameVerifier(@Nullable String className)
      パラメータ:
      className - SSL hostname verifier
      関連項目:
    • getSslCert

      public @Nullable String getSslCert()
      戻り値:
      className SSL hostname verifier
      関連項目:
    • setSslCert

      public void setSslCert(@Nullable String file)
      パラメータ:
      file - SSL certificate
      関連項目:
    • getSslKey

      public @Nullable String getSslKey()
      戻り値:
      SSL certificate
      関連項目:
    • setSslKey

      public void setSslKey(@Nullable String file)
      パラメータ:
      file - SSL key
      関連項目:
    • getSslRootCert

      public @Nullable String getSslRootCert()
      戻り値:
      SSL root certificate
      関連項目:
    • setSslRootCert

      public void setSslRootCert(@Nullable String file)
      パラメータ:
      file - SSL root certificate
      関連項目:
    • getSslPassword

      public @Nullable String getSslPassword()
      戻り値:
      SSL password
      関連項目:
    • setSslPassword

      public void setSslPassword(@Nullable String password)
      パラメータ:
      password - SSL password
      関連項目:
    • getSslPasswordCallback

      public @Nullable String getSslPasswordCallback()
      戻り値:
      SSL password callback
      関連項目:
    • setSslPasswordCallback

      public void setSslPasswordCallback(@Nullable String className)
      パラメータ:
      className - SSL password callback class name
      関連項目:
    • getSslServerCertCn

      public String getSslServerCertCn()
      戻り値:
      CN (Common Name) of the server certificate
      関連項目:
    • setSslServerCertCn

      public void setSslServerCertCn(String file)
      パラメータ:
      file - CN (Common Name) of the server certificate
      関連項目:
    • setApplicationName

      public void setApplicationName(@Nullable String applicationName)
      パラメータ:
      applicationName - application name
      関連項目:
    • getApplicationName

      public String getApplicationName()
      戻り値:
      application name
      関連項目:
    • setTargetServerType

      public void setTargetServerType(@Nullable String targetServerType)
      パラメータ:
      targetServerType - target server type
      関連項目:
    • getTargetServerType

      public String getTargetServerType()
      戻り値:
      target server type
      関連項目:
    • setLoadBalanceHosts

      public void setLoadBalanceHosts(boolean loadBalanceHosts)
      パラメータ:
      loadBalanceHosts - load balance hosts
      関連項目:
    • getLoadBalanceHosts

      public boolean getLoadBalanceHosts()
      戻り値:
      load balance hosts
      関連項目:
    • setHostRecheckSeconds

      public void setHostRecheckSeconds(int hostRecheckSeconds)
      パラメータ:
      hostRecheckSeconds - host recheck seconds
      関連項目:
    • getHostRecheckSeconds

      public int getHostRecheckSeconds()
      戻り値:
      host recheck seconds
      関連項目:
    • setTcpKeepAlive

      public void setTcpKeepAlive(boolean enabled)
      パラメータ:
      enabled - if TCP keep alive should be enabled
      関連項目:
    • getTcpKeepAlive

      public boolean getTcpKeepAlive()
      戻り値:
      true if TCP keep alive is enabled
      関連項目:
    • setTcpNoDelay

      public void setTcpNoDelay(boolean enabled)
      パラメータ:
      enabled - if TCP no delay should be enabled
      関連項目:
    • getTcpNoDelay

      public boolean getTcpNoDelay()
      戻り値:
      true if TCP no delay is enabled
      関連項目:
    • setBinaryTransfer

      public void setBinaryTransfer(boolean enabled)
      パラメータ:
      enabled - if binary transfer should be enabled
      関連項目:
    • getBinaryTransfer

      public boolean getBinaryTransfer()
      戻り値:
      true if binary transfer is enabled
      関連項目:
    • setBinaryTransferEnable

      public void setBinaryTransferEnable(@Nullable String oidList)
      パラメータ:
      oidList - list of OIDs that are allowed to use binary transfer
      関連項目:
    • getBinaryTransferEnable

      public String getBinaryTransferEnable()
      戻り値:
      list of OIDs that are allowed to use binary transfer
      関連項目:
    • setBinaryTransferDisable

      public void setBinaryTransferDisable(@Nullable String oidList)
      パラメータ:
      oidList - list of OIDs that are not allowed to use binary transfer
      関連項目:
    • getBinaryTransferDisable

      public String getBinaryTransferDisable()
      戻り値:
      list of OIDs that are not allowed to use binary transfer
      関連項目:
    • getStringType

      public @Nullable String getStringType()
      戻り値:
      string type
      関連項目:
    • setStringType

      public void setStringType(@Nullable String stringType)
      パラメータ:
      stringType - string type
      関連項目:
    • isColumnSanitiserDisabled

      public boolean isColumnSanitiserDisabled()
      戻り値:
      true if column sanitizer is disabled
      関連項目:
    • getDisableColumnSanitiser

      public boolean getDisableColumnSanitiser()
      戻り値:
      true if column sanitizer is disabled
      関連項目:
    • setDisableColumnSanitiser

      public void setDisableColumnSanitiser(boolean disableColumnSanitiser)
      パラメータ:
      disableColumnSanitiser - if column sanitizer should be disabled
      関連項目:
    • getCurrentSchema

      public @Nullable String getCurrentSchema()
      戻り値:
      current schema
      関連項目:
    • setCurrentSchema

      public void setCurrentSchema(@Nullable String currentSchema)
      パラメータ:
      currentSchema - current schema
      関連項目:
    • getReadOnly

      public boolean getReadOnly()
      戻り値:
      true if connection is readonly
      関連項目:
    • setReadOnly

      public void setReadOnly(boolean readOnly)
      パラメータ:
      readOnly - if connection should be readonly
      関連項目:
    • getReadOnlyMode

      public String getReadOnlyMode()
      戻り値:
      The behavior when set read only
      関連項目:
    • setReadOnlyMode

      public void setReadOnlyMode(@Nullable String mode)
      パラメータ:
      mode - the behavior when set read only
      関連項目:
    • getLogUnclosedConnections

      public boolean getLogUnclosedConnections()
      戻り値:
      true if driver should log unclosed connections
      関連項目:
    • setLogUnclosedConnections

      public void setLogUnclosedConnections(boolean enabled)
      パラメータ:
      enabled - true if driver should log unclosed connections
      関連項目:
    • getLogServerErrorDetail

      public boolean getLogServerErrorDetail()
      戻り値:
      true if driver should log include detail in server error messages
      関連項目:
    • setLogServerErrorDetail

      public void setLogServerErrorDetail(boolean enabled)
      パラメータ:
      enabled - true if driver should include detail in server error messages
      関連項目:
    • getAssumeMinServerVersion

      public @Nullable String getAssumeMinServerVersion()
      戻り値:
      assumed minimal server version
      関連項目:
    • setAssumeMinServerVersion

      public void setAssumeMinServerVersion(@Nullable String minVersion)
      パラメータ:
      minVersion - assumed minimal server version
      関連項目:
    • getGroupStartupParameters

      public boolean getGroupStartupParameters()
      This is important in pool-by-transaction scenarios in order to make sure that all the statements reaches the same connection that is being initialized. If set then we will group the startup parameters in a transaction
      戻り値:
      whether to group startup parameters or not
      関連項目:
    • setGroupStartupParameters

      public void setGroupStartupParameters(boolean groupStartupParameters)
      パラメータ:
      groupStartupParameters - whether to group startup Parameters in a transaction or not
      関連項目:
    • getJaasApplicationName

      public @Nullable String getJaasApplicationName()
      戻り値:
      JAAS application name
      関連項目:
    • setJaasApplicationName

      public void setJaasApplicationName(@Nullable String name)
      パラメータ:
      name - JAAS application name
      関連項目:
    • getJaasLogin

      public boolean getJaasLogin()
      戻り値:
      true if perform JAAS login before GSS authentication
      関連項目:
    • setJaasLogin

      public void setJaasLogin(boolean doLogin)
      パラメータ:
      doLogin - true if perform JAAS login before GSS authentication
      関連項目:
    • getKerberosServerName

      public @Nullable String getKerberosServerName()
      戻り値:
      Kerberos server name
      関連項目:
    • setKerberosServerName

      public void setKerberosServerName(@Nullable String serverName)
      パラメータ:
      serverName - Kerberos server name
      関連項目:
    • getUseSpNego

      public boolean getUseSpNego()
      戻り値:
      true if use SPNEGO
      関連項目:
    • setUseSpNego

      public void setUseSpNego(boolean use)
      パラメータ:
      use - true if use SPNEGO
      関連項目:
    • getGssLib

      public @Nullable String getGssLib()
      戻り値:
      GSS mode: auto, sspi, or gssapi
      関連項目:
    • setGssLib

      public void setGssLib(@Nullable String lib)
      パラメータ:
      lib - GSS mode: auto, sspi, or gssapi
      関連項目:
    • getGssEncMode

      public String getGssEncMode()
      戻り値:
      GSS encryption mode: disable, prefer or require
    • setGssEncMode

      public void setGssEncMode(@Nullable String mode)
      パラメータ:
      mode - encryption mode: disable, prefer or require
    • getSspiServiceClass

      public @Nullable String getSspiServiceClass()
      戻り値:
      SSPI service class
      関連項目:
    • setSspiServiceClass

      public void setSspiServiceClass(@Nullable String serviceClass)
      パラメータ:
      serviceClass - SSPI service class
      関連項目:
    • getAllowEncodingChanges

      public boolean getAllowEncodingChanges()
      戻り値:
      if connection allows encoding changes
      関連項目:
    • setAllowEncodingChanges

      public void setAllowEncodingChanges(boolean allow)
      パラメータ:
      allow - if connection allows encoding changes
      関連項目:
    • getSocketFactory

      public @Nullable String getSocketFactory()
      戻り値:
      socket factory class name
      関連項目:
    • setSocketFactory

      public void setSocketFactory(@Nullable String socketFactoryClassName)
      パラメータ:
      socketFactoryClassName - socket factory class name
      関連項目:
    • getSocketFactoryArg

      public @Nullable String getSocketFactoryArg()
      戻り値:
      socket factory argument
      関連項目:
    • setSocketFactoryArg

      public void setSocketFactoryArg(@Nullable String socketFactoryArg)
      パラメータ:
      socketFactoryArg - socket factory argument
      関連項目:
    • setReplication

      public void setReplication(@Nullable String replication)
      パラメータ:
      replication - set to 'database' for logical replication or 'true' for physical replication
      関連項目:
    • getEscapeSyntaxCallMode

      public String getEscapeSyntaxCallMode()
      戻り値:
      'select', "callIfNoReturn', or 'call'
      関連項目:
    • setEscapeSyntaxCallMode

      public void setEscapeSyntaxCallMode(@Nullable String callMode)
      パラメータ:
      callMode - the call mode to use for JDBC escape call syntax
      関連項目:
    • getReplication

      public @Nullable String getReplication()
      戻り値:
      null, 'database', or 'true
      関連項目:
    • getLocalSocketAddress

      public @Nullable String getLocalSocketAddress()
      戻り値:
      the localSocketAddress
      関連項目:
    • setLocalSocketAddress

      public void setLocalSocketAddress(String localSocketAddress)
      パラメータ:
      localSocketAddress - local address to bind client side to
      関連項目:
    • getLoggerLevel

      @Deprecated public @Nullable String getLoggerLevel()
      推奨されていません。
      Configure via java.util.logging
      This property is no longer used by the driver and will be ignored.
      戻り値:
      loggerLevel in properties
    • setLoggerLevel

      @Deprecated public void setLoggerLevel(@Nullable String loggerLevel)
      推奨されていません。
      Configure via java.util.logging
      This property is no longer used by the driver and will be ignored.
      パラメータ:
      loggerLevel - loggerLevel to set, will be ignored
    • getLoggerFile

      @Deprecated public @Nullable String getLoggerFile()
      推奨されていません。
      Configure via java.util.logging
      This property is no longer used by the driver and will be ignored.
      戻り値:
      loggerFile in properties
    • setLoggerFile

      @Deprecated public void setLoggerFile(@Nullable String loggerFile)
      推奨されていません。
      Configure via java.util.logging
      This property is no longer used by the driver and will be ignored.
      パラメータ:
      loggerFile - will be ignored
    • getUrl

      public String getUrl()
      Generates a DriverManager URL from the other properties supplied.
      戻り値:
      DriverManager URL from the other properties supplied
    • getURL

      public String getURL()
      Generates a DriverManager URL from the other properties supplied.
      戻り値:
      DriverManager URL from the other properties supplied
    • setUrl

      public void setUrl(String url)
      Sets properties from a DriverManager URL.
      パラメータ:
      url - properties to set
    • setURL

      public void setURL(String url)
      Sets properties from a DriverManager URL. Added to follow convention used in other DBMS.
      パラメータ:
      url - properties to set
    • getAuthenticationPluginClassName

      public @Nullable String getAuthenticationPluginClassName()
      戻り値:
      the class name to use for the Authentication Plugin. This can be null in which case the default password authentication plugin will be used
    • setAuthenticationPluginClassName

      public void setAuthenticationPluginClassName(String className)
      パラメータ:
      className - name of a class which implements AuthenticationPlugin This class will be used to get the encoded bytes to be sent to the server as the password to authenticate the user.
    • getProperty

      public @Nullable String getProperty(String name) throws SQLException
      例外:
      SQLException
    • setProperty

      public void setProperty(String name, @Nullable String value) throws SQLException
      例外:
      SQLException
    • getProperty

      public @Nullable String getProperty(PGProperty property)
    • setProperty

      public void setProperty(PGProperty property, @Nullable String value)
    • createReference

      protected Reference createReference()
      Generates a reference using the appropriate object factory.
      戻り値:
      reference using the appropriate object factory
    • getReference

      public Reference getReference() throws NamingException
      定義:
      getReference インタフェース内 Referenceable
      例外:
      NamingException
    • setFromReference

      public void setFromReference(Reference ref)
    • writeBaseObject

      protected void writeBaseObject(ObjectOutputStream out) throws IOException
      例外:
      IOException
    • readBaseObject

      protected void readBaseObject(ObjectInputStream in) throws IOException, ClassNotFoundException
      例外:
      IOException
      ClassNotFoundException
    • initializeFrom

      public void initializeFrom(BaseDataSource source) throws IOException, ClassNotFoundException
      例外:
      IOException
      ClassNotFoundException
    • getPreferQueryMode

      public PreferQueryMode getPreferQueryMode()
      戻り値:
      preferred query execution mode
      関連項目:
    • setPreferQueryMode

      public void setPreferQueryMode(PreferQueryMode preferQueryMode)
      パラメータ:
      preferQueryMode - extended, simple, extendedForPrepared, or extendedCacheEverything
      関連項目:
    • getAutosave

      public AutoSave getAutosave()
      戻り値:
      connection configuration regarding automatic per-query savepoints
      関連項目:
    • setAutosave

      public void setAutosave(AutoSave autoSave)
      パラメータ:
      autoSave - connection configuration regarding automatic per-query savepoints
      関連項目:
    • getCleanupSavepoints

      public boolean getCleanupSavepoints()
      see PGProperty#CLEANUP_SAVEPOINTS
      戻り値:
      boolean indicating property set
    • setCleanupSavepoints

      public void setCleanupSavepoints(boolean cleanupSavepoints)
      see PGProperty#CLEANUP_SAVEPOINTS
      パラメータ:
      cleanupSavepoints - will cleanup savepoints after a successful transaction
    • getReWriteBatchedInserts

      public boolean getReWriteBatchedInserts()
      戻り値:
      boolean indicating property is enabled or not.
      関連項目:
    • setReWriteBatchedInserts

      public void setReWriteBatchedInserts(boolean reWrite)
      パラメータ:
      reWrite - boolean value to set the property in the properties collection
      関連項目:
    • getHideUnprivilegedObjects

      public boolean getHideUnprivilegedObjects()
      戻り値:
      boolean indicating property is enabled or not.
      関連項目:
    • setHideUnprivilegedObjects

      public void setHideUnprivilegedObjects(boolean hideUnprivileged)
      パラメータ:
      hideUnprivileged - boolean value to set the property in the properties collection
      関連項目:
    • getMaxResultBuffer

      public @Nullable String getMaxResultBuffer()
    • setMaxResultBuffer

      public void setMaxResultBuffer(@Nullable String maxResultBuffer)
    • getAdaptiveFetch

      public boolean getAdaptiveFetch()
    • setAdaptiveFetch

      public void setAdaptiveFetch(boolean adaptiveFetch)
    • getAdaptiveFetchMaximum

      public int getAdaptiveFetchMaximum()
    • setAdaptiveFetchMaximum

      public void setAdaptiveFetchMaximum(int adaptiveFetchMaximum)
    • getAdaptiveFetchMinimum

      public int getAdaptiveFetchMinimum()
    • setAdaptiveFetchMinimum

      public void setAdaptiveFetchMinimum(int adaptiveFetchMinimum)
    • getParentLogger

      public Logger getParentLogger()
      定義:
      getParentLogger インタフェース内 CommonDataSource
    • getXmlFactoryFactory

      public String getXmlFactoryFactory()
    • setXmlFactoryFactory

      public void setXmlFactoryFactory(@Nullable String xmlFactoryFactory)
    • setEnableFdwAcs

      public void setEnableFdwAcs(@Nullable String enableFdwAcs)
      パラメータ:
      enableFdwAcs - enable_fdw_acs
      関連項目:
    • getEnableFdwAcs

      public String getEnableFdwAcs()
      戻り値:
      enable_fdw_acs
      関連項目:
    • setShardName

      public void setShardName(@Nullable String shardName)
      パラメータ:
      shardName - shard name
      関連項目:
    • getShardName

      public @Nullable String getShardName()
      戻り値:
      shard name
      関連項目:
    • setCmStatusMode

      public void setCmStatusMode(@Nullable String cmStatusMode)
      パラメータ:
      cmStatusMode - cm status mode
      関連項目:
    • getCmStatusMode

      public String getCmStatusMode()
      戻り値:
      cm status mode
      関連項目:
    • isSsl

      public boolean isSsl()
    • getSslfactoryarg

      public @Nullable String getSslfactoryarg()
    • setSslfactoryarg

      public void setSslfactoryarg(@Nullable String arg)
    • getSslcert

      public @Nullable String getSslcert()
    • setSslcert

      public void setSslcert(@Nullable String file)
    • getSslmode

      public @Nullable String getSslmode()
    • setSslmode

      public void setSslmode(@Nullable String mode)
    • getSslhostnameverifier

      public @Nullable String getSslhostnameverifier()
    • setSslhostnameverifier

      public void setSslhostnameverifier(@Nullable String className)
    • getSslkey

      public @Nullable String getSslkey()
    • setSslkey

      public void setSslkey(@Nullable String file)
    • getSslrootcert

      public @Nullable String getSslrootcert()
    • setSslrootcert

      public void setSslrootcert(@Nullable String file)
    • getSslpasswordcallback

      public @Nullable String getSslpasswordcallback()
    • setSslpasswordcallback

      public void setSslpasswordcallback(@Nullable String className)
    • getSslpassword

      public @Nullable String getSslpassword()
    • setSslpassword

      public void setSslpassword(String sslpassword)
    • getRecvBufferSize

      public int getRecvBufferSize()
    • setRecvBufferSize

      public void setRecvBufferSize(int nbytes)
    • isAllowEncodingChanges

      public boolean isAllowEncodingChanges()
    • isLogUnclosedConnections

      public boolean isLogUnclosedConnections()
    • isTcpKeepAlive

      public boolean isTcpKeepAlive()
    • isReadOnly

      public boolean isReadOnly()
    • isDisableColumnSanitiser

      public boolean isDisableColumnSanitiser()
    • isLoadBalanceHosts

      public boolean isLoadBalanceHosts()
    • isCleanupSavePoints

      public boolean isCleanupSavePoints()
    • setCleanupSavePoints

      public void setCleanupSavePoints(boolean cleanupSavepoints)
    • isReWriteBatchedInserts

      public boolean isReWriteBatchedInserts()