PATH |
Inherits from: Object
Implements: EOPropertyListEncoding
Package: com.webobjects.eoaccess
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 method). You can assign stored procedures to an entity for any of the following scenarios:
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.
EOPropertyListEncodingawakeWithPropertyList encodeIntoPropertyList
Constructors EOStoredProcedure 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
public EOStoredProcedure(String name)
public EOStoredProcedure( NSDictionary propertyList, Object owner)
See Also: encodeIntoPropertyList (EOPropertyListEncoding) setName, name
Creates and returns a new EOStoredProcedure named name.public NSArray arguments()
null
if the stored procedure has no arguments.
public void awakeWithPropertyList(NSDictionary pList)
public void beautifyName()
See Also: setArguments, beautifyNames (EOModel)
public void encodeIntoPropertyList(NSMutableDictionary pList)
public String externalName()
null
if the receiver doesn't have an external name.
See Also: setExternalName
public EOModel model()
See Also: addStoredProcedure (EOModel)
public String name()
See Also: setName, EOStoredProcedure constructor
public void setArguments(NSArray arguments)
See Also: arguments
public void setExternalName(String name)
See Also: externalName
public void setName(String name)
See Also: name, EOStoredProcedure constructor
public void setUserInfo(NSDictionary dictionary)
See Also: userInfo
public String toString()
public NSDictionary userInfo()
See Also: setUserInfo
© 2001 Apple Computer, Inc. (Last Published April 13, 2001)