Tuukka Norri avatar Tuukka Norri committed 1bbe0b0

Marked methods as deprecated for Doxygen and removed an unneeded CFRelease

Comments (0)

Files changed (2)

Sources/BXDatabaseContext.m

     return [[self executeFetchForEntity: anEntity withPredicate: predicate returningFaults: YES error: error] valueForKey: @"objectID"];
 }
 
-/**
- * \name Getting entity descriptions
- */
-//@{
 /** 
  * \brief Entity for a table in the given schema.
  * \note Unlike PostgreSQL, leaving \em schemaName unspecified does not cause the search path to be used but 
  *       instead will search the \em public schema.
  * \note Entities are associated with a database URI. Thus the database context needs an URI containing a host and 
  *       the database name before entities may be received.
+ * \deprecated This method has been deprecated in BaseTen 1.8. BXDatabaseObjectModel should be used instead.
  */
 - (BXEntityDescription *) entityForTable: (NSString *) name inSchema: (NSString *) schemaName error: (NSError **) outError
 {
  * \brief Entity for a table in the schema \em public
  * \note Entities are associated with a database URI. Thus the database context needs an URI containing a host and 
  *       the database name before entities may be received.
+ * \deprecated This method has been deprecated in BaseTen 1.8. BXDatabaseObjectModel should be used instead.
  */
 - (BXEntityDescription *) entityForTable: (NSString *) name error: (NSError **) outError
 {
  * \return An NSDicionary with NSStrings corresponding to schema names as keys and NSDictionarys as objects. 
  *         Each of them will have NSStrings corresponding to relation names as keys and BXEntityDescriptions
  *         as objects.
+ * \deprecated This method has been deprecated in BaseTen 1.8. BXDatabaseObjectModel should be used instead.
  */
 - (NSDictionary *) entitiesBySchemaAndName: (BOOL) reload error: (NSError **) outError
 {
 	BXHandleError (outError, localError);
 	return retval;
 }
-//@}
 
 
 - (BOOL) entity: (NSEntityDescription *) entity existsInSchema: (NSString *) schemaName error: (NSError **) error

Sources/BXPGEntityConverter.m

 	if (outArray)
 		*outArray = enabledRelations;
 
-    if (handledRelationships)
-        CFRelease (handledRelationships);
-	
+	[handledRelationships release];
 	return retval;
 }
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.