com.apama.database
Event OpenDatabase


Request a connection to an existing Database (ODBC, JDBC, etc.).

See also: DatabaseOperationAck()

Response event: DatabaseOperationAck(); errorMessage is blank on success, "Database does not exist.", or otherwise a description of the error.

Dataplayer:
- Direction: From client to the correlator.
Field summary
 integermessageId

Unique request-response matching number.
 stringserviceId

The service Id this database is on.
 stringdatabaseName

The name of the datbaase to open.
 stringuserName

The username to the database.
 stringpassword

The password to the database.
 stringautoCommit

Auto-commit mode: (case insensitive values). default - Use setting from config file.
false - Disable auto-commit.
x.x - Value (seconds) for ADBC adapter timed auto-commit.
true - Enable data source specific auto-commit.
 booleanreadOnly

If true, open db connection in read only mode(default is fale).
 dictionary<stringstring>extraParams

Any additional parameters.
 
Field detail

autoCommit

string autoCommit
Auto-commit mode: (case insensitive values). default - Use setting from config file.
false - Disable auto-commit.
x.x - Value (seconds) for ADBC adapter timed auto-commit.
true - Enable data source specific auto-commit.

databaseName

string databaseName
The name of the datbaase to open.

extraParams

dictionary<stringstringextraParams
Any additional parameters.

messageId

integer messageId
Unique request-response matching number.

password

string password
The password to the database.

readOnly

boolean readOnly
If true, open db connection in read only mode(default is fale).

serviceId

string serviceId
The service Id this database is on.

userName

string userName
The username to the database.