Package net.bitnine.agensgraph.ds
Class AGConnectionPoolDataSource
java.lang.Object
net.bitnine.agensgraph.ds.common.BaseDataSource
net.bitnine.agensgraph.ds.AGConnectionPoolDataSource
- All Implemented Interfaces:
Serializable,Referenceable,CommonDataSource,ConnectionPoolDataSource
public class AGConnectionPoolDataSource
extends BaseDataSource
implements ConnectionPoolDataSource, Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets a description of this DataSource.Gets a connection which may be pooled by the app server or middleware implementation of DataSource.getPooledConnection(String user, String password) Gets a connection which may be pooled by the app server or middleware implementation of DataSource.booleanGets whether connections supplied by this pool will have autoCommit turned on by default.voidsetDefaultAutoCommit(boolean defaultAutoCommit) Sets whether connections supplied by this pool will have autoCommit turned on by default.Methods inherited from class net.bitnine.agensgraph.ds.common.BaseDataSource
createReference, getAllowEncodingChanges, getApplicationName, getAssumeMinServerVersion, getAutosave, getBinaryTransfer, getBinaryTransferDisable, getBinaryTransferEnable, getCancelSignalTimeout, getCleanupSavepoints, getConnection, getConnection, getConnectTimeout, getCurrentSchema, getDatabaseMetadataCacheFields, getDatabaseMetadataCacheFieldsMiB, getDatabaseName, getDefaultRowFetchSize, getDisableColumnSanitiser, getEscapeSyntaxCallMode, getGssEncMode, getGssLib, getHideUnprivilegedObjects, getHostRecheckSeconds, getJaasApplicationName, getJaasLogin, getKerberosServerName, getLoadBalanceHosts, getLoggerFile, getLoggerLevel, getLoginTimeout, getLogServerErrorDetail, getLogUnclosedConnections, getLogWriter, getMaxResultBuffer, getOptions, getParentLogger, getPassword, getPortNumber, getPortNumbers, getPreferQueryMode, getPreparedStatementCacheQueries, getPreparedStatementCacheSizeMiB, getPrepareThreshold, getProperty, getProperty, getProtocolVersion, getReadOnly, getReadOnlyMode, getReceiveBufferSize, getRecvBufferSize, getReference, getReplication, getReWriteBatchedInserts, getSendBufferSize, getServerName, getServerNames, getSocketFactory, getSocketFactoryArg, getSocketTimeout, getSsl, getSslcert, getSslCert, getSslfactory, getSslfactoryarg, getSslFactoryArg, getSslhostnameverifier, getSslHostnameVerifier, getSslkey, getSslKey, getSslmode, getSslMode, getSslpassword, getSslPassword, getSslpasswordcallback, getSslPasswordCallback, getSslrootcert, getSslRootCert, getSspiServiceClass, getStringType, getTargetServerType, getTcpKeepAlive, getUnknownLength, getUrl, getURL, getUser, getUseSpNego, getXmlFactoryFactory, initializeFrom, isAllowEncodingChanges, isCleanupSavePoints, isColumnSanitiserDisabled, isDisableColumnSanitiser, isLoadBalanceHosts, isLogUnclosedConnections, isReadOnly, isReWriteBatchedInserts, isSsl, isTcpKeepAlive, readBaseObject, setAllowEncodingChanges, setApplicationName, setAssumeMinServerVersion, setAutosave, setBinaryTransfer, setBinaryTransferDisable, setBinaryTransferEnable, setCancelSignalTimeout, setCleanupSavepoints, setCleanupSavePoints, setConnectTimeout, setCurrentSchema, setDatabaseMetadataCacheFields, setDatabaseMetadataCacheFieldsMiB, setDatabaseName, setDefaultRowFetchSize, setDisableColumnSanitiser, setEscapeSyntaxCallMode, setFromReference, setGssEncMode, setGssLib, setHideUnprivilegedObjects, setHostRecheckSeconds, setJaasApplicationName, setJaasLogin, setKerberosServerName, setLoadBalanceHosts, setLoggerFile, setLoggerLevel, setLoginTimeout, setLogServerErrorDetail, setLogUnclosedConnections, setLogWriter, setMaxResultBuffer, setOptions, setPassword, setPortNumber, setPortNumbers, setPreferQueryMode, setPreparedStatementCacheQueries, setPreparedStatementCacheSizeMiB, setPrepareThreshold, setProperty, setProperty, setProtocolVersion, setReadOnly, setReadOnlyMode, setReceiveBufferSize, setRecvBufferSize, setReplication, setReWriteBatchedInserts, setSendBufferSize, setServerName, setServerNames, setSocketFactory, setSocketFactoryArg, setSocketTimeout, setSsl, setSslcert, setSslCert, setSslfactory, setSslfactoryarg, setSslFactoryArg, setSslhostnameverifier, setSslHostnameVerifier, setSslkey, setSslKey, setSslmode, setSslMode, setSslpassword, setSslPassword, setSslpasswordcallback, setSslPasswordCallback, setSslrootcert, setSslRootCert, setSspiServiceClass, setStringType, setTargetServerType, setTcpKeepAlive, setUnknownLength, setUrl, setURL, setUser, setUseSpNego, setXmlFactoryFactory, writeBaseObjectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.sql.CommonDataSource
createShardingKeyBuilder, getParentLoggerMethods inherited from interface javax.sql.ConnectionPoolDataSource
createPooledConnectionBuilder, getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter
-
Constructor Details
-
AGConnectionPoolDataSource
public AGConnectionPoolDataSource()
-
-
Method Details
-
getDescription
Gets a description of this DataSource.- Specified by:
getDescriptionin classBaseDataSource- Returns:
- description of this DataSource-ish thing
-
getPooledConnection
Gets a connection which may be pooled by the app server or middleware implementation of DataSource.- Specified by:
getPooledConnectionin interfaceConnectionPoolDataSource- Throws:
SQLException- Occurs when the physical database connection cannot be established.
-
getPooledConnection
Gets a connection which may be pooled by the app server or middleware implementation of DataSource.- Specified by:
getPooledConnectionin interfaceConnectionPoolDataSource- Throws:
SQLException- Occurs when the physical database connection cannot be established.
-
isDefaultAutoCommit
public boolean isDefaultAutoCommit()Gets whether connections supplied by this pool will have autoCommit turned on by default. The default value istrue, so that autoCommit will be turned on by default.- Returns:
- true if connections supplied by this pool will have autoCommit
-
setDefaultAutoCommit
public void setDefaultAutoCommit(boolean defaultAutoCommit) Sets whether connections supplied by this pool will have autoCommit turned on by default. The default value istrue, so that autoCommit will be turned on by default.- Parameters:
defaultAutoCommit- whether connections supplied by this pool will have autoCommit
-