パッケージ org.postgresql.ds.common
クラス BaseDataSource
java.lang.Object
org.postgresql.ds.common.BaseDataSource
- すべての実装されたインタフェース:
Referenceable
,CommonDataSource
Base class for data sources and related classes.
-
コンストラクタの概要
コンストラクタ -
メソッドの概要
修飾子とタイプメソッド説明protected Reference
Generates a reference using the appropriate object factory.boolean
int
int
boolean
@Nullable String
@Nullable String
boolean
int
boolean
see PGProperty#CLEANUP_SAVEPOINTSGets a connection to the PostgreSQL database.getConnection
(@Nullable String user, @Nullable String password) Gets a connection to the PostgreSQL database.int
@Nullable String
int
int
@Nullable String
Gets the name of the PostgreSQL database, running on the server identified by the serverName property.int
abstract String
Gets a description of this DataSource-ish thing.boolean
boolean
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.@Nullable String
int
boolean
int
@Nullable String
boolean
@Nullable String
boolean
@Nullable String
@Nullable String
推奨されていません。Configure via java.util.logging@Nullable String
推奨されていません。Configure via java.util.loggingint
boolean
boolean
@Nullable PrintWriter
This implementation don't use a LogWriter.@Nullable String
@Nullable String
@Nullable String
Gets the password to connect with by default.int
推奨されていません。usegetPortNumbers()
int[]
Gets the port(s) which the PostgreSQL server is listening on for TCP/IP connections.int
int
int
@Nullable String
getProperty
(String name) @Nullable String
getProperty
(PGProperty property) int
boolean
boolean
int
int
@Nullable String
boolean
int
推奨されていません。usegetServerNames()
String[]
Gets the name of the host(s) the PostgreSQL database is running on.@Nullable String
@Nullable String
@Nullable String
int
boolean
getSsl()
@Nullable String
@Nullable String
@Nullable String
@Nullable String
@Nullable String
@Nullable String
@Nullable String
@Nullable String
@Nullable String
@Nullable String
@Nullable String
@Nullable String
@Nullable String
@Nullable String
@Nullable String
int
@Nullable String
@Nullable String
@Nullable String
@Nullable String
boolean
boolean
int
getUrl()
Generates aDriverManager
URL from the other properties supplied.getURL()
Generates aDriverManager
URL from the other properties supplied.@Nullable String
getUser()
Gets the user to connect as by default.boolean
void
initializeFrom
(BaseDataSource source) boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
isSsl()
boolean
protected void
void
setAdaptiveFetch
(boolean adaptiveFetch) void
setAdaptiveFetchMaximum
(int adaptiveFetchMaximum) void
setAdaptiveFetchMinimum
(int adaptiveFetchMinimum) void
setAllowEncodingChanges
(boolean allow) void
setApplicationName
(@Nullable String applicationName) void
setAssumeMinServerVersion
(@Nullable String minVersion) void
setAuthenticationPluginClassName
(String className) void
setAutosave
(AutoSave autoSave) void
setBinaryTransfer
(boolean enabled) void
setBinaryTransferDisable
(@Nullable String oidList) void
setBinaryTransferEnable
(@Nullable String oidList) void
setCancelSignalTimeout
(int seconds) void
setCleanupSavepoints
(boolean cleanupSavepoints) see PGProperty#CLEANUP_SAVEPOINTSvoid
setCleanupSavePoints
(boolean cleanupSavepoints) void
setCmStatusMode
(@Nullable String cmStatusMode) void
setConnectTimeout
(int connectTimeout) void
setCurrentSchema
(@Nullable String currentSchema) void
setDatabaseMetadataCacheFields
(int cacheSize) void
setDatabaseMetadataCacheFieldsMiB
(int cacheSize) void
setDatabaseName
(@Nullable String databaseName) Sets the name of the PostgreSQL database, running on the server identified by the serverName property.void
setDefaultRowFetchSize
(int fetchSize) void
setDisableColumnSanitiser
(boolean disableColumnSanitiser) void
setEnableFdwAcs
(@Nullable String enableFdwAcs) void
setEscapeSyntaxCallMode
(@Nullable String callMode) void
void
setGroupStartupParameters
(boolean groupStartupParameters) void
setGssEncMode
(@Nullable String mode) void
void
setGssResponseTimeout
(int gssResponseTimeout) void
setHideUnprivilegedObjects
(boolean hideUnprivileged) void
setHostRecheckSeconds
(int hostRecheckSeconds) void
setJaasApplicationName
(@Nullable String name) void
setJaasLogin
(boolean doLogin) void
setKerberosServerName
(@Nullable String serverName) void
setLoadBalanceHosts
(boolean loadBalanceHosts) void
setLocalSocketAddress
(String localSocketAddress) void
setLoggerFile
(@Nullable String loggerFile) 推奨されていません。Configure via java.util.loggingvoid
setLoggerLevel
(@Nullable String loggerLevel) 推奨されていません。Configure via java.util.loggingvoid
setLoginTimeout
(int loginTimeout) void
setLogServerErrorDetail
(boolean enabled) void
setLogUnclosedConnections
(boolean enabled) void
setLogWriter
(@Nullable PrintWriter printWriter) This implementation don't use a LogWriter.void
setMaxResultBuffer
(@Nullable String maxResultBuffer) void
setOptions
(@Nullable String options) Set command line options for this connectionvoid
setPassword
(@Nullable String password) Sets the password to connect with by default.void
setPortNumber
(int portNumber) 推奨されていません。void
setPortNumbers
(int @Nullable [] portNumbers) Sets the port(s) which the PostgreSQL server is listening on for TCP/IP connections.void
setPreferQueryMode
(PreferQueryMode preferQueryMode) void
setPreparedStatementCacheQueries
(int cacheSize) void
setPreparedStatementCacheSizeMiB
(int cacheSize) void
setPrepareThreshold
(int count) void
setProperty
(String name, @Nullable String value) void
setProperty
(PGProperty property, @Nullable String value) void
setProtocolVersion
(int protocolVersion) void
setQuoteReturningIdentifiers
(boolean quoteIdentifiers) void
setReadOnly
(boolean readOnly) void
setReadOnlyMode
(@Nullable String mode) void
setReceiveBufferSize
(int nbytes) void
setRecvBufferSize
(int nbytes) void
setReplication
(@Nullable String replication) void
setReWriteBatchedInserts
(boolean reWrite) void
setSendBufferSize
(int nbytes) void
setServerName
(String serverName) 推奨されていません。void
setServerNames
(@Nullable String @Nullable [] serverNames) Sets the name of the host(s) the PostgreSQL database is running on.void
setShardName
(@Nullable String shardName) void
setSocketFactory
(@Nullable String socketFactoryClassName) void
setSocketFactoryArg
(@Nullable String socketFactoryArg) void
setSocketTimeout
(int seconds) void
setSsl
(boolean enabled) void
setSslcert
(@Nullable String file) void
setSslCert
(@Nullable String file) void
setSslfactory
(String classname) void
setSslfactoryarg
(@Nullable String arg) void
setSslFactoryArg
(@Nullable String arg) void
setSslhostnameverifier
(@Nullable String className) void
setSslHostnameVerifier
(@Nullable String className) void
void
void
setSslmode
(@Nullable String mode) void
setSslMode
(@Nullable String mode) void
setSslpassword
(String sslpassword) void
setSslPassword
(@Nullable String password) void
setSslpasswordcallback
(@Nullable String className) void
setSslPasswordCallback
(@Nullable String className) void
setSslResponseTimeout
(int sslResponseTimeout) void
setSslrootcert
(@Nullable String file) void
setSslRootCert
(@Nullable String file) void
setSslServerCertCn
(String file) void
setSspiServiceClass
(@Nullable String serviceClass) void
setStringType
(@Nullable String stringType) void
setTargetServerType
(@Nullable String targetServerType) void
setTcpKeepAlive
(boolean enabled) void
setTcpNoDelay
(boolean enabled) void
setUnknownLength
(int unknownLength) void
Sets properties from aDriverManager
URL.void
Sets properties from aDriverManager
URL.void
Sets the user to connect as by default.void
setUseSpNego
(boolean use) void
setXmlFactoryFactory
(@Nullable String xmlFactoryFactory) protected void
クラスから継承されたメソッド java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
インタフェースから継承されたメソッド javax.sql.CommonDataSource
createShardingKeyBuilder
-
コンストラクタの詳細
-
BaseDataSource
public BaseDataSource()
-
-
メソッドの詳細
-
getConnection
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
- userpassword
- password- 戻り値:
- A valid database connection.
- 例外:
SQLException
- Occurs when the database connection cannot be established.
-
getLogWriter
This implementation don't use a LogWriter.- 定義:
getLogWriter
インタフェース内CommonDataSource
-
setLogWriter
This implementation don't use a LogWriter.- 定義:
setLogWriter
インタフェース内CommonDataSource
- パラメータ:
printWriter
- Not used
-
getServerName
推奨されていません。usegetServerNames()
Gets the name of the host the PostgreSQL database is running on.- 戻り値:
- name of the host the PostgreSQL database is running on
-
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
推奨されていません。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 islocalhost
.- パラメータ:
serverName
- name of the host the PostgreSQL database is running on
-
setServerNames
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 islocalhost
.- パラメータ:
serverNames
- name of the host(s) the PostgreSQL database is running on
-
getDatabaseName
Gets the name of the PostgreSQL database, running on the server identified by the serverName property.- 戻り値:
- name of the PostgreSQL database
-
setDatabaseName
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
Gets a description of this DataSource-ish thing. Must be customized by subclasses.- 戻り値:
- description of this DataSource-ish thing
-
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
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
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
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
推奨されていません。usegetPortNumbers()
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
推奨されていません。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
- 戻り値:
- command line options for this connection
-
setOptions
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
- パラメータ:
classname
- SSL factory class name- 関連項目:
-
getSslfactory
- 戻り値:
- SSL factory class name
- 関連項目:
-
getSslMode
- 戻り値:
- SSL mode
- 関連項目:
-
setSslMode
- パラメータ:
mode
- SSL mode- 関連項目:
-
getSslFactoryArg
- 戻り値:
- SSL mode
- 関連項目:
-
setSslFactoryArg
- パラメータ:
arg
- argument forwarded to SSL factory- 関連項目:
-
getSslHostnameVerifier
- 戻り値:
- argument forwarded to SSL factory
- 関連項目:
-
setSslHostnameVerifier
- パラメータ:
className
- SSL hostname verifier- 関連項目:
-
getSslCert
- 戻り値:
- className SSL hostname verifier
- 関連項目:
-
setSslCert
- パラメータ:
file
- SSL certificate- 関連項目:
-
getSslKey
- 戻り値:
- SSL certificate
- 関連項目:
-
setSslKey
- パラメータ:
file
- SSL key- 関連項目:
-
getSslRootCert
- 戻り値:
- SSL root certificate
- 関連項目:
-
setSslRootCert
- パラメータ:
file
- SSL root certificate- 関連項目:
-
getSslPassword
- 戻り値:
- SSL password
- 関連項目:
-
setSslPassword
- パラメータ:
password
- SSL password- 関連項目:
-
getSslPasswordCallback
- 戻り値:
- SSL password callback
- 関連項目:
-
setSslPasswordCallback
- パラメータ:
className
- SSL password callback class name- 関連項目:
-
getSslServerCertCn
- 戻り値:
- CN (Common Name) of the server certificate
- 関連項目:
-
setSslServerCertCn
- パラメータ:
file
- CN (Common Name) of the server certificate- 関連項目:
-
setApplicationName
- パラメータ:
applicationName
- application name- 関連項目:
-
getApplicationName
- 戻り値:
- application name
- 関連項目:
-
setTargetServerType
- パラメータ:
targetServerType
- target server type- 関連項目:
-
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
- パラメータ:
oidList
- list of OIDs that are allowed to use binary transfer- 関連項目:
-
getBinaryTransferEnable
- 戻り値:
- list of OIDs that are allowed to use binary transfer
- 関連項目:
-
setBinaryTransferDisable
- パラメータ:
oidList
- list of OIDs that are not allowed to use binary transfer- 関連項目:
-
getBinaryTransferDisable
- 戻り値:
- list of OIDs that are not allowed to use binary transfer
- 関連項目:
-
getStringType
- 戻り値:
- string type
- 関連項目:
-
setStringType
- パラメータ:
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
- 戻り値:
- current schema
- 関連項目:
-
setCurrentSchema
- パラメータ:
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
- 戻り値:
- The behavior when set read only
- 関連項目:
-
setReadOnlyMode
- パラメータ:
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
- 戻り値:
- assumed minimal server version
- 関連項目:
-
setAssumeMinServerVersion
- パラメータ:
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
- 戻り値:
- JAAS application name
- 関連項目:
-
setJaasApplicationName
- パラメータ:
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
- 戻り値:
- Kerberos server name
- 関連項目:
-
setKerberosServerName
- パラメータ:
serverName
- Kerberos server name- 関連項目:
-
getUseSpNego
public boolean getUseSpNego()- 戻り値:
- true if use SPNEGO
- 関連項目:
-
setUseSpNego
public void setUseSpNego(boolean use) - パラメータ:
use
- true if use SPNEGO- 関連項目:
-
getGssLib
- 戻り値:
- GSS mode: auto, sspi, or gssapi
- 関連項目:
-
setGssLib
- パラメータ:
lib
- GSS mode: auto, sspi, or gssapi- 関連項目:
-
getGssEncMode
- 戻り値:
- GSS encryption mode: disable, prefer or require
-
setGssEncMode
- パラメータ:
mode
- encryption mode: disable, prefer or require
-
getSspiServiceClass
- 戻り値:
- SSPI service class
- 関連項目:
-
setSspiServiceClass
- パラメータ:
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
- 戻り値:
- socket factory class name
- 関連項目:
-
setSocketFactory
- パラメータ:
socketFactoryClassName
- socket factory class name- 関連項目:
-
getSocketFactoryArg
- 戻り値:
- socket factory argument
- 関連項目:
-
setSocketFactoryArg
- パラメータ:
socketFactoryArg
- socket factory argument- 関連項目:
-
setReplication
- パラメータ:
replication
- set to 'database' for logical replication or 'true' for physical replication- 関連項目:
-
getEscapeSyntaxCallMode
- 戻り値:
- 'select', "callIfNoReturn', or 'call'
- 関連項目:
-
setEscapeSyntaxCallMode
- パラメータ:
callMode
- the call mode to use for JDBC escape call syntax- 関連項目:
-
getReplication
- 戻り値:
- null, 'database', or 'true
- 関連項目:
-
getLocalSocketAddress
- 戻り値:
- the localSocketAddress
- 関連項目:
-
setLocalSocketAddress
- パラメータ:
localSocketAddress
- local address to bind client side to- 関連項目:
-
getLoggerLevel
推奨されていません。Configure via java.util.loggingThis property is no longer used by the driver and will be ignored.- 戻り値:
- loggerLevel in properties
-
setLoggerLevel
推奨されていません。Configure via java.util.loggingThis property is no longer used by the driver and will be ignored.- パラメータ:
loggerLevel
- loggerLevel to set, will be ignored
-
getLoggerFile
推奨されていません。Configure via java.util.loggingThis property is no longer used by the driver and will be ignored.- 戻り値:
- loggerFile in properties
-
setLoggerFile
推奨されていません。Configure via java.util.loggingThis property is no longer used by the driver and will be ignored.- パラメータ:
loggerFile
- will be ignored
-
getUrl
Generates aDriverManager
URL from the other properties supplied.- 戻り値:
DriverManager
URL from the other properties supplied
-
getURL
Generates aDriverManager
URL from the other properties supplied.- 戻り値:
DriverManager
URL from the other properties supplied
-
setUrl
Sets properties from aDriverManager
URL.- パラメータ:
url
- properties to set
-
setURL
Sets properties from aDriverManager
URL. Added to follow convention used in other DBMS.- パラメータ:
url
- properties to set
-
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
- パラメータ:
className
- name of a class which implementsAuthenticationPlugin
This class will be used to get the encoded bytes to be sent to the server as the password to authenticate the user.
-
getProperty
- 例外:
SQLException
-
setProperty
- 例外:
SQLException
-
getProperty
-
setProperty
-
createReference
Generates a reference using the appropriate object factory.- 戻り値:
- reference using the appropriate object factory
-
getReference
- 定義:
getReference
インタフェース内Referenceable
- 例外:
NamingException
-
setFromReference
-
writeBaseObject
- 例外:
IOException
-
readBaseObject
-
initializeFrom
-
getPreferQueryMode
- 戻り値:
- preferred query execution mode
- 関連項目:
-
setPreferQueryMode
- パラメータ:
preferQueryMode
- extended, simple, extendedForPrepared, or extendedCacheEverything- 関連項目:
-
getAutosave
- 戻り値:
- connection configuration regarding automatic per-query savepoints
- 関連項目:
-
setAutosave
- パラメータ:
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
-
setMaxResultBuffer
-
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
- 定義:
getParentLogger
インタフェース内CommonDataSource
-
getXmlFactoryFactory
-
setXmlFactoryFactory
-
setEnableFdwAcs
- パラメータ:
enableFdwAcs
- enable_fdw_acs- 関連項目:
-
getEnableFdwAcs
- 戻り値:
- enable_fdw_acs
- 関連項目:
-
setShardName
- パラメータ:
shardName
- shard name- 関連項目:
-
getShardName
- 戻り値:
- shard name
- 関連項目:
-
setCmStatusMode
- パラメータ:
cmStatusMode
- cm status mode- 関連項目:
-
getCmStatusMode
- 戻り値:
- cm status mode
- 関連項目:
-
isSsl
public boolean isSsl() -
getSslfactoryarg
-
setSslfactoryarg
-
getSslcert
-
setSslcert
-
getSslmode
-
setSslmode
-
getSslhostnameverifier
-
setSslhostnameverifier
-
getSslkey
-
setSslkey
-
getSslrootcert
-
setSslrootcert
-
getSslpasswordcallback
-
setSslpasswordcallback
-
getSslpassword
-
setSslpassword
-
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()
-