Package herddb.jdbc
Class HerdDBWrappingDataSource
- java.lang.Object
-
- herddb.jdbc.BasicHerdDBDataSource
-
- herddb.jdbc.HerdDBWrappingDataSource
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.sql.Wrapper,javax.sql.CommonDataSource,javax.sql.DataSource
public class HerdDBWrappingDataSource extends BasicHerdDBDataSource
A simple DataSource wrapping aroundHDBClientand an optionalServer.It can be used instead of
HerdDBEmbeddedDataSourcewhen a direct configuration ofHDBClientand/orServeris needed.- Author:
- diego.salvi
-
-
Field Summary
-
Fields inherited from class herddb.jdbc.BasicHerdDBDataSource
client, defaultSchema, loginTimeout, maxActive, properties, url
-
-
Constructor Summary
Constructors Constructor Description HerdDBWrappingDataSource(herddb.client.HDBClient client)HerdDBWrappingDataSource(herddb.client.HDBClient client, herddb.server.Server server)
-
Method Summary
Modifier and Type Method Description voidclose()protected voidensureClient()-
Methods inherited from class herddb.jdbc.BasicHerdDBDataSource
doWaitForTableSpace, ensureConnection, getClient, getConnection, getConnection, getDefaultSchema, getLoginTimeout, getLogWriter, getMaxActive, getParentLogger, getPassword, getProperties, getUrl, getUsername, getWaitForTableSpace, getWaitForTableSpaceTimeout, isDiscoverTableSpaceFromQuery, isWrapperFor, setClient, setDefaultSchema, setDiscoverTableSpaceFromQuery, setLoginTimeout, setLogWriter, setMaxActive, setPassword, setUrl, setUsername, setWaitForTableSpace, setWaitForTableSpaceTimeout, unwrap
-
-
-
-
Method Detail
-
ensureClient
protected void ensureClient() throws java.sql.SQLException- Overrides:
ensureClientin classBasicHerdDBDataSource- Throws:
java.sql.SQLException
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Overrides:
closein classBasicHerdDBDataSource
-
-