Configuration in repository.cfg
Code Block | ||
---|---|---|
| ||
<repoName>.protocolservice.type=database <repoName>.protocolservice.database.driver= <repoName>.protocolservice.database.url= <repoName>.protocolservice.database.user= <repoName>.protocolservice.database.password= #<repoName>.protocolservice.database.read-connections.max= #default: 32, not after 2.7.0 #<repoName>.protocolservice.database.read-connections.min= #default: 32, not after 2.7.0 #<repoName>.protocolservice.database.read-connections.shared= #default: false, not after 2.7.0 #<repoName>.protocolservice.database.write-connections.max= #default: 32, not after 2.7.0 #<repoName>.protocolservice.database.write-connections.min= #default: 32, not after 2.7.0 #<repoName>.protocolservice.database.cache-statements= #default: false, not after 2.7.0 #<repoName>.protocolservice.database.cache-statements.size= #default: 50, not after 2.7.0 #<repoName>.protocolservice.database.minimumIdle= #default: maximumPoolSize #<repoName>.protocolservice.database.maximumPoolSize= #default: 10 #<repoName>.protocolservice.database.connectionTimeout= #default: 30000 #<repoName>.protocolservice.database.idleTimeout= #default: 600000 #<repoName>.protocolservice.database.keepaliveTime= #default: 0 #<repoName>.protocolservice.database.maxLifetime= #default: 1800000 |
As of version 2.7.0 we switched from EclipseLink to Hibernate, therefor some parameters have changed.
H2
Code Block | ||
---|---|---|
| ||
<repoName>.protocolservice.database.driver=org.h2.Driver <repoName>.protocolservice.database.url=jdbc:h2:C:/h2db.db;FILE_LOCK=FS;TRACE_LEVEL_SYSTEM_OUT=0 |
Oracle
Code Block | ||
---|---|---|
| ||
<repoName>.protocolservice.database.driver=oracle.jdbc.OracleDriver <repoName>.protocolservice.database.url=jdbc:oracle:thin:@localhost:49161:xe |
MSSQL
Code Block |
---|
<repoName>.protocolservice.database.driver=com.microsoft.sqlserver.jdbc.SQLServerDriver <repoName>.protocolservice.database.url=jdbc:sqlserver://localhost:1433;databaseName=CONTENTSERVER; |
...
Supported values for container:
name,path
Tables:
PROTOCOL
Contains on record per access, defines acces modul and access data
...
Expand | ||
---|---|---|
| ||
CREATE TABLE [dbo].[PROTKEY_VALUES]( ALTER TABLE [dbo].[PROTKEY_VALUES] ADD DEFAULT ((0)) FOR [FIELDBOOLVALUE] ALTER TABLE [dbo].[PROTKEY_VALUES] WITH CHECK ADD CONSTRAINT [PROTKEY_VALUESRECORDID] FOREIGN KEY([RECORDID]) ALTER TABLE [dbo].[PROTKEY_VALUES] CHECK CONSTRAINT [PROTKEY_VALUESRECORDID] |
Example Queries (based on MSSQL)
find all Entries
Code Block | ||
---|---|---|
| ||
SELECT p.*, pv.FIELDSTRINGVALUE as 'Path' FROM [PROTOCOL] p inner join PROTKEY_VALUES pv on p.RECORDID = pv.RECORDID where pv.FIELDID = 'path' |
...