|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IDatabaseService
| Method Summary | |
|---|---|
boolean |
connectToDatabase(DatabaseTypeEnum databaseTypeEnum,
String server,
String database,
String username,
String password)
Connect to the database with the given parameters. |
boolean |
connectToDatabase(DatabaseTypeEnum databaseTypeEnum,
String server,
String database,
String username,
String password,
int port,
String filePath,
H2Mode mode,
NomenclaturalCode code)
Connect to the database with the given parameters |
boolean |
connectToDatasource(CdmPersistentDataSource dataSource)
Connect to the database with the given parameters. |
String |
getUrl()
Returns the database URL |
String |
getUsername()
Returns the username. |
CdmPersistentDataSource |
saveDataSource(String strDataSourceName,
ICdmDataSource dataSource)
Saves a new ICdmDatasource into the datasource config file. |
void |
setApplicationController(CdmApplicationController cdmApplicationController)
|
CdmPersistentDataSource |
updateDataSource(String strDataSourceName,
CdmPersistentDataSource dataSource)
Update an already saved datasource in datasource config file |
| Method Detail |
|---|
String getUrl()
String getUsername()
boolean connectToDatabase(DatabaseTypeEnum databaseTypeEnum,
String server,
String database,
String username,
String password,
int port,
String filePath,
H2Mode mode,
NomenclaturalCode code)
throws TermNotFoundException
databaseTypeEnum - url - username - password - port -
TermNotFoundException
boolean connectToDatabase(DatabaseTypeEnum databaseTypeEnum,
String server,
String database,
String username,
String password)
throws TermNotFoundException
databaseTypeEnum - url - username - password -
TermNotFoundException
boolean connectToDatasource(CdmPersistentDataSource dataSource)
throws TermNotFoundException
dataSource -
TermNotFoundException
CdmPersistentDataSource saveDataSource(String strDataSourceName,
ICdmDataSource dataSource)
strDataSourceName - dataSource - code -
CdmPersistentDataSource updateDataSource(String strDataSourceName,
CdmPersistentDataSource dataSource)
throws DataSourceNotFoundException
strDataSourceName - the beanId under which the dataSource should be saveddataSource - the dataSource to be saved
DataSourceNotFoundExceptionvoid setApplicationController(CdmApplicationController cdmApplicationController)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||