JSConnectionDefinition

Methods Summary

TypeNameSummary

Registers this JSConnectionDefinition to the server with the current configuration..

void

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

returns the password that was set by password(string).

Sets the password to use for this client connection..

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

returns the username that was set by username(string).

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)

Sample

destroy()

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

Returns void

Sample

password()

returns the password that was set by password(string)

Returns String the password for this connection.

Sample

password(password)

Sets the password to use for this client connection.

Parameters String password ;

Returns JSConnectionDefinition this

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

Sample

username()

returns the username that was set by username(string)

Returns String the username for this connection.

Sample

username(username)

Sets the username to use for this client connection.

Parameters String username ;

Returns JSConnectionDefinition this

Sample

Last updated