Add extra getters to DatabaseAdaptor

This commit is contained in:
Jan Bartel 2016-02-16 15:31:33 +01:00
parent c965dc905c
commit 6c1bd97ad1
1 changed files with 34 additions and 1 deletions

View File

@ -61,6 +61,9 @@ public class DatabaseAdaptor
private String _connectionUrl;
private Driver _driver;
private DataSource _datasource;
private String _jndiName;
@ -217,6 +220,37 @@ public class DatabaseAdaptor
_jndiName=jndi;
}
public String getDatasourceName ()
{
return _jndiName;
}
public DataSource getDatasource()
{
return _datasource;
}
public String getDriverClassName()
{
return _driverClassName;
}
public Driver getDriver()
{
return _driver;
}
public String getConnectionUrl()
{
return _connectionUrl;
}
public void initialize ()
throws Exception
{
@ -249,7 +283,6 @@ public class DatabaseAdaptor
}
}
}
/**