|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ametys.plugins.datainclusion.data.AbstractDataSource
org.ametys.plugins.datainclusion.data.sql.SqlDataSource
public class SqlDataSource
SQL data source.
| Field Summary | |
|---|---|
protected String |
_driver
The JDBC driver. |
protected String |
_password
The JDBC password. |
protected Map<String,SqlQuery> |
_queries
The data source SQL queries. |
protected String |
_url
The JDBC connection string. |
protected String |
_user
The JDBC user. |
| Fields inherited from class org.ametys.plugins.datainclusion.data.AbstractDataSource |
|---|
_description, _id, _name |
| Constructor Summary | |
|---|---|
SqlDataSource()
Constructor. |
|
| Method Summary | |
|---|---|
Connection |
connect()
Connect to the JDBC server. |
Map<String,String> |
getAdditionalValues(boolean exceptPassword)
Get the additional datasource configuration information. |
String |
getDriver()
Get the JDBC driver. |
String |
getPassword()
Get the JDBC password. |
Map<String,SqlQuery> |
getQueries()
Get the queries on this datasource. |
String |
getType()
Get the datasource type. |
String |
getUrl()
Get the JDBC url. |
String |
getUser()
Get the JDBC user. |
void |
setDriver(String driver)
Set the JDBC driver. |
void |
setPassword(String password)
Set the JDBC password. |
void |
setUrl(String url)
Set the JDBC url. |
void |
setUser(String user)
Set the JDBC user. |
| Methods inherited from class org.ametys.plugins.datainclusion.data.AbstractDataSource |
|---|
getDescription, getId, getName, setDescription, setId, setName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String _driver
protected String _url
protected String _user
protected String _password
protected Map<String,SqlQuery> _queries
| Constructor Detail |
|---|
public SqlDataSource()
| Method Detail |
|---|
public String getType()
DataSource
public String getDriver()
public void setDriver(String driver)
driver - the JDBC driver.public String getUrl()
public void setUrl(String url)
url - the JDBC url.public String getUser()
public void setUser(String user)
user - the JDBC user.public String getPassword()
public void setPassword(String password)
password - the JDBC password.public Map<String,String> getAdditionalValues(boolean exceptPassword)
DataSource
exceptPassword - true to do not return password values
public Map<String,SqlQuery> getQueries()
DataSource
public Connection connect()
throws SQLException,
DataInclusionException
SQLException
DataInclusionException
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||