public.javadoc.org.spincast.plugins.jdbc.SpincastDataSourceDefault.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-website Show documentation
Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
SpincastDataSourceDefault (org.spincast:spincast-framework 1.2.0 API)
org.spincast.plugins.jdbc
Class SpincastDataSourceDefault
- java.lang.Object
-
- org.spincast.plugins.jdbc.SpincastDataSourceDefault
-
- All Implemented Interfaces:
- Wrapper, CommonDataSource, DataSource, SpincastDataSource
public class SpincastDataSourceDefault
extends Object
implements SpincastDataSource
-
-
Constructor Summary
Constructors
Constructor and Description
SpincastDataSourceDefault(DataSource dataSource)
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Connection
getConnection()
Connection
getConnection(String username,
String password)
int
getLoginTimeout()
PrintWriter
getLogWriter()
Logger
getParentLogger()
boolean
isWrapperFor(Class<?> iface)
void
setLoginTimeout(int seconds)
void
setLogWriter(PrintWriter out)
<T> T
unwrap(Class<T> iface)
-
-
Constructor Detail
-
SpincastDataSourceDefault
public SpincastDataSourceDefault(DataSource dataSource)
-
Method Detail
-
getConnection
public Connection getConnection()
throws SQLException
- Specified by:
getConnection
in interface DataSource
- Throws:
SQLException
-
getConnection
public Connection getConnection(String username,
String password)
throws SQLException
- Specified by:
getConnection
in interface DataSource
- Throws:
SQLException
-
getLogWriter
public PrintWriter getLogWriter()
throws SQLException
- Specified by:
getLogWriter
in interface CommonDataSource
- Throws:
SQLException
-
unwrap
public <T> T unwrap(Class<T> iface)
throws SQLException
- Specified by:
unwrap
in interface Wrapper
- Throws:
SQLException
-
setLogWriter
public void setLogWriter(PrintWriter out)
throws SQLException
- Specified by:
setLogWriter
in interface CommonDataSource
- Throws:
SQLException
-
isWrapperFor
public boolean isWrapperFor(Class<?> iface)
throws SQLException
- Specified by:
isWrapperFor
in interface Wrapper
- Throws:
SQLException
-
setLoginTimeout
public void setLoginTimeout(int seconds)
throws SQLException
- Specified by:
setLoginTimeout
in interface CommonDataSource
- Throws:
SQLException
-
getLoginTimeout
public int getLoginTimeout()
throws SQLException
- Specified by:
getLoginTimeout
in interface CommonDataSource
- Throws:
SQLException
-
getParentLogger
public Logger getParentLogger()
throws SQLFeatureNotSupportedException
- Specified by:
getParentLogger
in interface CommonDataSource
- Throws:
SQLFeatureNotSupportedException
Copyright © 2019. All rights reserved.