The Buttle javax.sql.DataSource
.
This namespace delivers buttle.jdbc.DataSource
via
:gen-class
. This named class can be used as a datasource class for
application servers.
The _Buttle_ `javax.sql.DataSource`. This namespace delivers `buttle.jdbc.DataSource` via `:gen-class`. This named class can be used as a datasource class for application servers.
(-getConnection this)
(-getConnection this username password)
Implements javax.sql.DataSource/getConnection
. Just delegates to
the referenced/internal datasource (see -init
).
Implements `javax.sql.DataSource/getConnection`. Just delegates to the referenced/internal datasource (see `-init`).
(-getLoginTimeout this)
Implements javax.sql.CommonDataSource/getLoginTimeout
. Just
delegates to the referenced/internal datasource (see -init
).
Implements `javax.sql.CommonDataSource/getLoginTimeout`. Just delegates to the referenced/internal datasource (see `-init`).
(-getLogWriter this)
Implements javax.sql.CommonDataSource/getLogWriter
. Just
delegates to the referenced/internal datasource (see -init
).
Implements `javax.sql.CommonDataSource/getLogWriter`. Just delegates to the referenced/internal datasource (see `-init`).
(-getParentLogger this)
Implements javax.sql.CommonDataSource/getParentLogger
. Just
delegates to the referenced/internal datasource (see -init
).
Implements `javax.sql.CommonDataSource/getParentLogger`. Just delegates to the referenced/internal datasource (see `-init`).
(-init)
Constructor function of buttle.jdbc.DataSource
.
Constructor function of `buttle.jdbc.DataSource`.
(-isWrapperFor this ifc)
Implements java.sql.Wrapper/isWrapperFor
. Just delegates to the
referenced/internal datasource (see -init
).
Implements `java.sql.Wrapper/isWrapperFor`. Just delegates to the referenced/internal datasource (see `-init`).
(-setDelegateSpec this spec)
Sets the delegateSpec
of the Buttle datasource.
Sets the `delegateSpec` of the _Buttle_ datasource.
(-setLoginTimeout this sec)
Implements javax.sql.CommonDataSource/setLoginTimeout
. Just
delegates to the referenced/internal datasource (see -init
).
Implements `javax.sql.CommonDataSource/setLoginTimeout`. Just delegates to the referenced/internal datasource (see `-init`).
(-setLogWriter this pr-wrt)
Implements javax.sql.CommonDataSource/setLogWriter
. Just
delegates to the referenced/internal datasource (see -init
).
Implements `javax.sql.CommonDataSource/setLogWriter`. Just delegates to the referenced/internal datasource (see `-init`).
(-unwrap this ifc)
Implements java.sql.Wrapper/unwrap
. Just delegates to the
referenced/internal datasource (see -init
).
Implements `java.sql.Wrapper/unwrap`. Just delegates to the referenced/internal datasource (see `-init`).
(make-data-source)
Creates the Buttle datasource.
Creates the _Buttle_ datasource.
Factory/lookup for real datasource. String
arg will be expected
to be JNDI name of a javax.sql.DataSource
. In this case the
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_ datasource. `String` arg will be expected to be JNDI name of a `javax.sql.DataSource`. In this case the 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-data-soure
. Returns type of spec
(:jndi
for String
, :ds-class
for maps).
Dispatch for `retrieve-data-soure`. Returns type of `spec` (`:jndi` for `String`, `:ds-class` for maps).
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close