public class DataSource extends Object
| Constructor and Description |
|---|
DataSource() |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(DataSourceListener listener)
Should not be called twice in a row without clear() in between.
|
Properties |
asProperties() |
void |
clear() |
void |
dispose() |
Connection |
getConnection() |
String |
getDriver() |
String |
getPassword() |
String |
getURL() |
String |
getUsername() |
void |
load(File propertyFile) |
void |
set(String url,
String username,
String password,
String driver) |
void |
store(File propertyFile) |
void |
update(Properties p)
possibly called after load() to override settings from the OBDA file
|
public void dispose()
public Connection getConnection() throws SQLException
SQLExceptionpublic Properties asProperties()
public void clear()
public void addListener(DataSourceListener listener)
listener - public void load(File propertyFile) throws IOException
IOExceptionpublic void update(Properties p)
public void store(File propertyFile) throws IOException
IOExceptionCopyright © 2009–2021 KRDB Research Centre for Knowledge and Data, Free University of Bozen-Bolzano. All rights reserved.