Supported Clients
SmartClient
WebClient
NGClient

Methods Summary
JSConnectionDefinition
create()
Registers this JSConnectionDefinition to the server with the current configuration.
void
destroy()
Destoyes this JSConnectonDefintion, this unregisteres this on the server so it will not use this configuration anymore to create connections.
String
password()
returns the password that was set by password(string)
JSConnectionDefinition
password(password)
Sets the password to use for this client connection.
JSConnectionDefinition
setProperty(key, value)
Set a key value pair that is used as a connection property for this connection definition
String
username()
returns the username that was set by username(string)
JSConnectionDefinition
username(username)
Sets the username to use for this client connection.

Methods Details

create()

Registers this JSConnectionDefinition to the server with the current configuration.
 After this call all connections to that database will use the configuration of this definition.

Returns

JSConnectionDefinition The this if it could be created, this will return null if there was a creating this definition (check logs)

Supported Clients

SmartClient,WebClient,NGClient

Sample

destroy()

Destoyes this JSConnectonDefintion, this unregisteres this on the server so it will not use this configuration anymore to create connections.

Supported Clients

SmartClient,WebClient,NGClient

Sample

password()

returns the password that was set by password(string)

Returns

String the password for this connection.

Supported Clients

SmartClient,WebClient,NGClient

Sample

password(password)

Sets the password to use for this client connection.

Parameters

String
password
;

Returns

JSConnectionDefinition this

Supported Clients

SmartClient,WebClient,NGClient

Sample

setProperty(key, value)

Set a key value pair that is used as a connection property for this connection definition

Parameters

String
key
The propertie key
String
value
The property value

Returns

JSConnectionDefinition this

Supported Clients

SmartClient,WebClient,NGClient

Sample

username()

returns the username that was set by username(string)

Returns

String the username for this connection.

Supported Clients

SmartClient,WebClient,NGClient

Sample

username(username)

Sets the username to use for this client connection.

Parameters

String
username
;

Returns

JSConnectionDefinition this

Supported Clients

SmartClient,WebClient,NGClient

Sample