|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.etaxonomy.cdm.api.service.DatabaseServiceHibernateImpl
@Service @Transactional(readOnly=true) public class DatabaseServiceHibernateImpl
| Field Summary | |
|---|---|
protected org.springframework.context.ApplicationContext |
appContext
|
| Constructor Summary | |
|---|---|
DatabaseServiceHibernateImpl()
|
|
| 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 |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
|
void |
setApplicationController(CdmApplicationController cdmApplicationController)
|
CdmPersistentDataSource |
updateDataSource(String strDataSourceName,
CdmPersistentDataSource dataSource)
Update an already saved datasource in datasource config file |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@Autowired protected org.springframework.context.ApplicationContext appContext
| Constructor Detail |
|---|
public DatabaseServiceHibernateImpl()
| Method Detail |
|---|
public void setApplicationController(CdmApplicationController cdmApplicationController)
setApplicationController in interface IDatabaseService
public boolean connectToDatasource(CdmPersistentDataSource dataSource)
throws TermNotFoundException
IDatabaseService
connectToDatasource in interface IDatabaseServiceTermNotFoundException
public boolean connectToDatabase(DatabaseTypeEnum databaseTypeEnum,
String server,
String database,
String username,
String password,
int port,
String filePath,
H2Mode mode,
NomenclaturalCode code)
throws TermNotFoundException
IDatabaseService
connectToDatabase in interface IDatabaseServiceTermNotFoundException
public boolean connectToDatabase(DatabaseTypeEnum databaseTypeEnum,
String server,
String database,
String username,
String password)
throws TermNotFoundException
IDatabaseService
connectToDatabase in interface IDatabaseServiceTermNotFoundException
public CdmPersistentDataSource saveDataSource(String strDataSourceName,
ICdmDataSource dataSource)
IDatabaseService
saveDataSource in interface IDatabaseService
public CdmPersistentDataSource updateDataSource(String strDataSourceName,
CdmPersistentDataSource dataSource)
throws DataSourceNotFoundException
IDatabaseService
updateDataSource in interface IDatabaseServicestrDataSourceName - the beanId under which the dataSource should be saveddataSource - the dataSource to be saved
DataSourceNotFoundExceptionpublic String getUrl()
IDatabaseService
getUrl in interface IDatabaseServicepublic String getUsername()
IDatabaseService
getUsername in interface IDatabaseService
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||