FDO API Reference Feature Data Objects

virtual FDO_API bool FdoSchemaMergeContext::ClassHasObjects FdoClassDefinition classDef  )  [virtual]
 

Checks if a class has objects.

Warning:
This function is used as a pre-check to see if a class definition can be deleted. However, there is a chance that the class has no objects when this check is done, but an object is created by someone else before the class is deleted. Providers that need to prevent this race condition can do so by extending this function.
Parameters:
classDef Input the class to check
Returns:
Returns true if the class has objects ( the datastore for the current connection is checked for objects). Returns false if the class does not have objects or this context does not have a connection.

Comments or suggestions? Send us feedback.