fmewebservices.FMENamedConnectionManager
|
Returns a named connection object based on the input reader settings. |
Retrieves the default owner. |
|
Obtain a named connection which does not block access on the DB to that given named connection. |
|
|
Returns the location currently being used as the Named Connection source. |
Retrieves the named connection storage type. |
|
Return the associated Web Service, which contains a general description of the type of Web Service as well as other details. |
|
Sets the default owner. |
|
Updates the database with the information contained in the named connection class. |
- class FMENamedConnectionManager
FME Named Connection Manager class.
init()
Create an instance of a named connection manager object.
- __init__(*args, **kwargs)
- getConnectionFromFormatSettings(webServiceName, readerSettings)
Returns a named connection object based on the input reader settings.
If the input readerParameters contain a connection name (found by looking for *_CONNECTION keyword), that is returned.
If the specified connection is not found, then NULL is returned.
If the input readerParameters does NOT contain a connection name, then a temporary (in memory) connection is created based on the input web service and the input parameters.
If the input web service is not found, NULL is returned.
- Parameters:
- Return type:
Terminal subclass of
FMENamedConnection
orNone
- Raises:
FMEWSException – An exception is raised if an error occurred.
- getNamedConnection(connectionName, ownerName)
Obtain a named connection which does not block access on the DB to that given named connection. Will return
None
if the connection name doesn’t exist.- Parameters:
- Return type:
Terminal subclass of
FMENamedConnection
orNone
- Returns:
The specified named connection.
- getNamedConnectionStorageLocation()
Returns the location currently being used as the Named Connection source.
- Return type:
- Returns:
The location.
- getNamedConnectionStorageType()
Retrieves the named connection storage type. Can be one of
FME_NAMEDCONNECTION_SQLITE
,FME_NAMEDCONNECTION_JDBC
,FME_NAMEDCONNECTION_FMESERVER_DIRECT
, orFME_NAMEDCONNECTION_FMESERVER_REST
- Return type:
- Returns:
The named connection storage type.
- getWebService(webServiceName)
Return the associated Web Service, which contains a general description of the type of Web Service as well as other details. If the named web service does not exist, or the parsing of the web service fails,
None
may be returned.- Parameters:
webServiceName (str) – The web service name.
- Return type:
Terminal subclass of
FMEWebService
orNone
- Returns:
The web service.
- setDefaultOwner(ownerName)
Sets the default owner.
- Parameters:
ownerName (str) – The default owner.
- Return type:
- Raises:
FMEWSException – An exception is raised if an error occurred.
- updateNamedConnection(updatedConnection)
Updates the database with the information contained in the named connection class. The named connection includes its owner so no user name is input.
- Parameters:
updatedConnection (
FMENamedConnection
) – The updated named connection.- Return type:
- Raises:
FMEWSException – An exception is raised if an error occurred.