EOStoredProcedure
Inherits from: NSObject
Conforms to: EOPropertyListEncoding
NSObject (NSObject)
Declared in: EOAccess/EOStoredProcedure.h
Class Description
An EOStoredProcedure represents a stored procedure defined in a database, and associates a name internal to the Framework with an external name by which the stored procedure is known to the database. If a stored procedure has arguments, its EOStoredProcedure object also maintains a group of EOAttributes which represent the stored procedure's arguments. See the EOAttribute class specification for more information
You usually define stored procedures in your EOModel with the EOModeler application, which is documented in the Enterprise Objects Framework Developer's Guide. EOStoredProcedures are primarily used by the Enterprise Objects Framework to map operations for an EOEntity to stored procedures (see the description for EOEntity's setStoredProcedure:forOperation: method). You can assign stored procedures to an entity for any of the following scenarios:
- Fetching all the objects for the entity
- Fetching a single object by its primary key
- Inserting a new object
- Deleting an object
- Generating a new primary key
Your code probably won't use EOStoredProcedures unless you're working at the adaptor level.
Like the other major modeling classes, EOStoredProcedure provides a user dictionary for your application to store any application-specific information related to the stored procedure.
Adopted Protocols
EOPropertyListEncoding- awakeWithPropertyList - encodeIntoPropertyList:
Method Types
- Creating a new EOStoredProcedure
- - initWithName:
- Accessing the model
- - model
- Accessing the name
- - setName:
- - beautifyName
- - name
- Accessing the external name
- - setExternalName:
- - externalName
- Accessing the arguments
- - setArguments:
- - arguments
- Accessing the user dictionary
- - setUserInfo:
- - userInfo
Instance Methods
arguments
- (NSArray *)arguments
beautifyName
- (void)beautifyName
See Also: - setArguments:, - beautifyNames (EOModel)
externalName
- (NSString *)externalName
See Also: - setExternalName:
initWithName:
- (EOStoredProcedure *)initWithName:(NSString
*)name
See Also: - setName:, - name
model
- (EOModel *)model
See Also: - addStoredProcedure: (EOModel)
name
- (NSString *)name
See Also: - setName:, - initWithName:
setArguments:
- (void)setArguments:(NSArray
*)arguments
See Also: - arguments
setExternalName:
- (void)setExternalName:(NSString
*)name
See Also: - externalName
setName:
- (void)setName:(NSString
*)name
See Also: - name, - initWithName:
setUserInfo:
- (void)setUserInfo:(NSDictionary
*)dictionary
See Also: - userInfo
userInfo
- (NSDictionary *)userInfo
See Also: - setUserInfo: