DatabaseConnectionData
Information object for connections of a single database alias.
It provides general information about the type of database and the properties used to configure the connection.
It provides counts for the free and used connections of the database.
Methods
getAdditionalProperties
getAdditionalProperties():
Map<any,any>
Returns
Map<any, any>a map of additional connection properties used for the database connection.
getAliasName
getAliasName():
string
Returns
stringthe name of the database alias.
getConfigName
getConfigName():
string
Returns
stringthe configuration name of the database alias.
getConnectionInfo
getConnectionInfo(
pServerId):DatabaseServerConnectionData
Returns the connection data of the specified server for this database.
Parameters
string | number | booleanthe id of the server.
Returns
DatabaseServerConnectionDatathe DatabaseServerConnectionData for the server, or null if no such object exists.
getConnectionInfos
getConnectionInfos():
DatabaseServerConnectionData[]
Returns
DatabaseServerConnectionData[]an array of all DatabaseServerConnectionData objects related to this database.
getDatabaseId
getDatabaseId():
string
Returns
stringthe UID of the database.
getDatabaseName
getDatabaseName():
string
Returns
stringthe name of the database.
getDatabaseType
getDatabaseType():
number
Returns
numberthe type of the database.
getDBTypeDisplayName
getDBTypeDisplayName():
string
Returns
stringa display string of the database type.
getFreeConnections
getFreeConnections():
number
Returns
numberthe total amount of free database connections for this database.
getLastestTimestamp
getLastestTimestamp():
number
Returns
numberthe timestamp of the latest update in milliseconds.
getProperties
getProperties():
Map<any,any>
Returns
Map<any, any>a map of the standard connection properties used for the database connection.
getServerIds
getServerIds():
string[]
Returns
string[]an array of all server ids for which this database info contains respective server connection objects.
getTimezone
getTimezone():
string
Returns
stringthe timezone of the database.
getUsedConnections
getUsedConnections():
number
Returns
numberthe total amount of used database connections for this database.