public class NonPooledDataSource extends Object implements DataSource
Modifier and Type | Field and Description |
---|---|
protected boolean |
autoCommit |
protected String |
driver |
protected int |
isolation |
protected int |
loginTimeOut |
protected String |
password |
protected PrintWriter |
printWriter |
protected String |
url |
protected String |
user |
Constructor and Description |
---|
NonPooledDataSource() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
getAutoCommit(Connection conn) |
Connection |
getConnection() |
Connection |
getConnection(String username,
String password) |
String |
getDriver() |
int |
getIsolation() |
int |
getLoginTimeout() |
PrintWriter |
getLogWriter() |
Logger |
getParentLogger() |
String |
getPassword() |
String |
getUrl() |
String |
getUser() |
boolean |
isAutoCommit() |
boolean |
isWrapperFor(Class<?> iface) |
void |
setAutoCommit(boolean autoCommit) |
protected void |
setAutoCommit(Connection conn,
boolean autocommit) |
void |
setDriver(String driver) |
protected void |
setIsolation(Connection conn,
int isolation) |
void |
setIsolation(int isolation) |
void |
setLoginTimeout(int seconds) |
void |
setLogWriter(PrintWriter out) |
void |
setPassword(String password) |
void |
setUrl(String url) |
void |
setUser(String user) |
<T> T |
unwrap(Class<T> iface) |
protected PrintWriter printWriter
protected int loginTimeOut
protected String url
protected String user
protected String password
protected String driver
protected int isolation
protected boolean autoCommit
public String getUrl()
public void setUrl(String url)
public String getUser()
public void setUser(String user)
public String getPassword()
public void setPassword(String password)
public String getDriver()
public void setDriver(String driver)
public int getIsolation()
public void setIsolation(int isolation)
public boolean isAutoCommit()
public void setAutoCommit(boolean autoCommit)
public int getLoginTimeout() throws SQLException
getLoginTimeout
in interface CommonDataSource
SQLException
public void setLoginTimeout(int seconds) throws SQLException
setLoginTimeout
in interface CommonDataSource
SQLException
public PrintWriter getLogWriter() throws SQLException
getLogWriter
in interface CommonDataSource
SQLException
public void setLogWriter(PrintWriter out) throws SQLException
setLogWriter
in interface CommonDataSource
SQLException
public boolean isWrapperFor(Class<?> iface) throws SQLException
isWrapperFor
in interface Wrapper
SQLException
public <T> T unwrap(Class<T> iface) throws SQLException
unwrap
in interface Wrapper
SQLException
public Connection getConnection(String username, String password) throws SQLException
getConnection
in interface DataSource
SQLException
public Connection getConnection() throws SQLException
getConnection
in interface DataSource
SQLException
public Logger getParentLogger()
getParentLogger
in interface CommonDataSource
protected boolean getAutoCommit(Connection conn)
protected void setAutoCommit(Connection conn, boolean autocommit)
protected void setIsolation(Connection conn, int isolation)
Copyright © 2012-2015 JBoss by Red Hat. All Rights Reserved.