Web API Reference | MapGuide Open Source

- Overview
- Modules
- Classes

CreateFeatureSource
DescribeSchema
DescribeSchema
DescribeSchemaAsXml
DescribeSchemaAsXml
DescribeWfsFeatureType
EnumerateDataStores
ExecuteSqlNonQuery
ExecuteSqlQuery
GetCapabilities
GetClassDefinition
GetClasses
GetConnectionPropertyValues
GetFeatureProviders
GetLockedFeatures
GetLongTransactions
GetSchemaMapping
GetSchemas
GetSpatialContexts
GetWfsFeature
SchemaToXml
SelectAggregate
SelectFeatures
SelectFeatures
SetLongTransaction
TestConnection
TestConnection
UpdateFeatures
XmlToSchema
virtual bool MgFeatureService::SetLongTransaction | ( | MgResourceIdentifier * | featureSourceId,
|  | CREFSTRING | longTransactionName |
| ) |  |  | `[pure virtual]`
Set the active long transaction name for a feature source. Remarks: The long transaction name is associated with the caller's session. If no session is set then the method throws an MgSessionNotFoundException. .NET Syntax
`virtual bool SetLongTransaction(MgResourceIdentifier resource, string longTransactionName);`
Java Syntax
`virtual boolean SetLongTransaction(MgResourceIdentifier resource, String longTransactionName);`
PHP Syntax
`virtual bool SetLongTransaction(MgResourceIdentifier resource, string longTransactionName);`
  Parameters:
  | featureSourceId | (MgResourceIdentifier) A resource identifier identifying a feature source in the repository.
  | longTransactionName | (String/string) The long transaction name to set.
  Returns: Returns true if the name was successfully set; otherwise returns false. Exceptions:
  | MgNullArgumentException |
  | MgInvalidResourceTypeException |
  | MgSessionNotFoundException |

Comments or suggestions? Send us feedback.