The Buttle javax.sql.ConnectionPoolDataSource
(CP-datasource).
This namespace delivers buttle.jdbc.ConnectionPoolDataSource
via
:gen-class
. This named class can be used as a CP-datasource class
for application servers.
The _Buttle_ `javax.sql.ConnectionPoolDataSource` (CP-datasource). This namespace delivers `buttle.jdbc.ConnectionPoolDataSource` via `:gen-class`. This named class can be used as a CP-datasource class for application servers.
(-getLoginTimeout this)
Implements javax.sql.CommonDataSource/getLoginTimeout
. Just
delegates to the referenced/internal CP-datasource (see -init
).
Implements `javax.sql.CommonDataSource/getLoginTimeout`. Just delegates to the referenced/internal CP-datasource (see `-init`).
(-getLogWriter this)
Implements javax.sql.CommonDataSource/getLogWriter
. Just
delegates to the referenced/internal CP-datasource (see -init
).
Implements `javax.sql.CommonDataSource/getLogWriter`. Just delegates to the referenced/internal CP-datasource (see `-init`).
(-getParentLogger this)
Implements javax.sql.CommonDataSource/getParentLogger
. Just
delegates to the referenced/internal CP-datasource (see -init
).
Implements `javax.sql.CommonDataSource/getParentLogger`. Just delegates to the referenced/internal CP-datasource (see `-init`).
(-getPooledConnection this)
(-getPooledConnection this username password)
Implements
javax.sql.ConnectionPoolDataSource/getPooledConnection
. Just
delegates to the referenced/internal CP-datasource (see -init
).
Implements `javax.sql.ConnectionPoolDataSource/getPooledConnection`. Just delegates to the referenced/internal CP-datasource (see `-init`).
(-init)
Constructor function of
buttle.jdbc.ConnectionPoolDataSource
. Calls make-cp-data-source
and initialized state
with that (i.e. the Buttle CP-datasource
is cached).
Constructor function of `buttle.jdbc.ConnectionPoolDataSource`. Calls `make-cp-data-source` and initialized `state` with that (i.e. the _Buttle_ CP-datasource is cached).
(-setDelegateSpec this spec)
Implements
buttle.connection_pool_data_source.ButtleCpDataSource/setDelegateSpec
. Just
delegates to the referenced/internal Buttle CP-datasource (see
-init
).
Implements `buttle.connection_pool_data_source.ButtleCpDataSource/setDelegateSpec`. Just delegates to the referenced/internal _Buttle_ CP-datasource (see `-init`).
(-setLoginTimeout this sec)
Implements javax.sql.CommonDataSource/setLoginTimeout
. Just
delegates to the referenced/internal CP-datasource (see -init
).
Implements `javax.sql.CommonDataSource/setLoginTimeout`. Just delegates to the referenced/internal CP-datasource (see `-init`).
(-setLogWriter this pr-wrt)
Implements javax.sql.CommonDataSource/setLogWriter
. Just
delegates to the referenced/internal CP-datasource (see -init
).
Implements `javax.sql.CommonDataSource/setLogWriter`. Just delegates to the referenced/internal CP-datasource (see `-init`).
(make-cp-data-source)
Creates and returns a Buttle javax.sql.ConnectionPoolDataSource
.
Use setDelegateSpec
to control what the real (or backing)
javax.sql.ConnectionPoolDataSource
is. You can use String
to use
a CP-datasource from JNDI. Use a map to create an instance and set
properties (see retrieve-cp-data-soure
for details).
Note: creation is done on-demand when the backing CP-datasource is actually needed/used.
Creates and returns a _Buttle_ `javax.sql.ConnectionPoolDataSource`. Use `setDelegateSpec` to control what the _real_ (or _backing_) `javax.sql.ConnectionPoolDataSource` is. You can use `String` to use a CP-datasource from JNDI. Use a map to create an instance and set properties (see `retrieve-cp-data-soure` for details). Note: creation is done on-demand when the backing CP-datasource is actually needed/used.
Factory/lookup for real CP-datasource. String
arg will be
expected to be JNDI name of a
javax.sql.ConnectionPoolDataSource
. In this case the CP-datasource
will be looked up in JNDI. If the arg is a map the class-typed
:delegate-class
will be used to create an instance and then all
remaining keys/values will be used to set the instance's Java-Bean
properties.
Factory/lookup for _real_ CP-datasource. `String` arg will be expected to be JNDI name of a `javax.sql.ConnectionPoolDataSource`. In this case the CP-datasource will be looked up in JNDI. If the arg is a map the class-typed `:delegate-class` will be used to create an instance and then all remaining keys/values will be used to set the instance's Java-Bean properties.
(spec->type spec)
Dispatch for retrieve-cp-data-soure
. Returns type of
spec
(:jndi
for String
, :cp-class
for maps).
Dispatch for `retrieve-cp-data-soure`. Returns type of `spec` (`:jndi` for `String`, `:cp-class` for maps).
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close