Liking cljdoc? Tell your friends :D

buttle.connection-pool-data-source

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.
raw docstring

-getLoginTimeoutclj

(-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`).
sourceraw docstring

-getLogWriterclj

(-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`).
sourceraw docstring

-getParentLoggerclj

(-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`).
sourceraw docstring

-getPooledConnectionclj

(-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`).
sourceraw docstring

-initclj

(-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).
sourceraw docstring

-setDelegateSpecclj

(-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`).
sourceraw docstring

-setLoginTimeoutclj

(-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`).
sourceraw docstring

-setLogWriterclj

(-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`).
sourceraw docstring

make-cp-data-sourceclj

(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.
sourceraw docstring

retrieve-cp-data-sourecljmultimethod

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.
sourceraw docstring

spec->typeclj

(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).
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close