public abstract class AbstractOlapDataSource extends Object implements OlapDataSource
Constructor and Description |
---|
AbstractOlapDataSource() |
Modifier and Type | Method and Description |
---|---|
protected abstract OlapConnection |
createConnection(String userName,
String password) |
OlapConnection |
getConnection() |
OlapConnection |
getConnection(String userName,
String password) |
int |
getLoginTimeout() |
PrintWriter |
getLogWriter() |
Logger |
getParentLogger() |
String |
getPassword() |
String |
getUserName() |
boolean |
isWrapperFor(Class<?> iface) |
void |
setLoginTimeout(int seconds) |
void |
setLogWriter(PrintWriter out) |
void |
setPassword(String password) |
void |
setUserName(String userName) |
<T> T |
unwrap(Class<T> iface) |
public PrintWriter getLogWriter()
getLogWriter
in interface CommonDataSource
CommonDataSource.getLogWriter()
public void setLogWriter(PrintWriter out)
setLogWriter
in interface CommonDataSource
CommonDataSource.setLogWriter(java.io.PrintWriter)
public Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger
in interface CommonDataSource
SQLFeatureNotSupportedException
public String getUserName()
public void setUserName(String userName)
userName
- the userName to setpublic String getPassword()
public void setPassword(String password)
password
- the password to setpublic int getLoginTimeout()
getLoginTimeout
in interface CommonDataSource
CommonDataSource.getLoginTimeout()
public void setLoginTimeout(int seconds)
setLoginTimeout
in interface CommonDataSource
CommonDataSource.setLoginTimeout(int)
public OlapConnection getConnection() throws SQLException
getConnection
in interface DataSource
getConnection
in interface OlapDataSource
SQLException
OlapDataSource.getConnection()
public OlapConnection getConnection(String userName, String password) throws SQLException
getConnection
in interface DataSource
getConnection
in interface OlapDataSource
SQLException
OlapDataSource.getConnection(java.lang.String,
java.lang.String)
protected abstract OlapConnection createConnection(String userName, String password) throws SQLException
userName
- password
- SQLException
public <T> T unwrap(Class<T> iface) throws SQLException
unwrap
in interface Wrapper
SQLException
Wrapper.unwrap(java.lang.Class)
public boolean isWrapperFor(Class<?> iface) throws SQLException
isWrapperFor
in interface Wrapper
SQLException
Wrapper.isWrapperFor(java.lang.Class)
Copyright © 2012–2013 Eyeq MC. All rights reserved.