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 CommonDataSourceSQLExceptionpublic void setLoginTimeout(int seconds)
throws SQLException
setLoginTimeout in interface CommonDataSourceSQLExceptionpublic PrintWriter getLogWriter() throws SQLException
getLogWriter in interface CommonDataSourceSQLExceptionpublic void setLogWriter(PrintWriter out) throws SQLException
setLogWriter in interface CommonDataSourceSQLExceptionpublic boolean isWrapperFor(Class<?> iface) throws SQLException
isWrapperFor in interface WrapperSQLExceptionpublic <T> T unwrap(Class<T> iface) throws SQLException
unwrap in interface WrapperSQLExceptionpublic Connection getConnection(String username, String password) throws SQLException
getConnection in interface DataSourceSQLExceptionpublic Connection getConnection() throws SQLException
getConnection in interface DataSourceSQLExceptionpublic Logger getParentLogger()
getParentLogger in interface CommonDataSourceprotected 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.