NSString Additions
Category of: NSString
Declared in: EOAccess/EOEntity.h
Category Description
The access layer adds two methods to the NSString class, to enable the conversion of modeling object names to database schema names, and database schema names to modeling object names.
Class Methods
externalNameForInternalName:separatorString:useAllCaps:
+ (NSString *)externalNameForInternalName:(NSString
*)name,
separatorString:(NSString *)separatorString,
useAllCaps:(BOOL)useAllCaps)
separatorString is a character that is used to separate words. The Framework uses "_" by default as in the examples above. useAllCaps indicates whether to capitalize the name. For example, providing NO converts "firstName" to "first_name".
nameForExternalName:separatorString:initialCaps:
+ (NSString *)nameForExternalName:(NSString
*)name,
separatorString:(NSString *)separatorString,
initialCaps:(BOOL)initialCaps)
separatorString is a character that is used to separate words. The Framework uses "_" by default as in the examples above. initialCaps indicates whether to capitalize the first letter of the first word. By default, the Framework uses YES for entities and NO for everything else.
See Also: - beautifyNames (EOModel), - beautifyName ( EOAttribute, EOEntity, EORelationship, EOStoredProcedure)