|
WebObjects 5.2.3 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.webobjects.eoaccess.EOStoredProcedure
EOStoredProcedure encapsulates the information stored in an EOModel about a stored procedure which is stored in a database server. The main information is the name within the model, the external name (as defined in the database), the number of arguments and their types.
Constructor Summary | |
EOStoredProcedure(NSDictionary propertyList,
Object owner)
Creates a new EOStoredProcedure from a property list. |
|
EOStoredProcedure(String name)
The constructor for a EOStoredProcedure (which is a reference to the stored procedure in the database). |
Method Summary | |
NSArray |
arguments()
Returns the EOAttribute objects that describe the stored procedure's arguments. |
void |
awakeWithPropertyList(NSDictionary propertyList)
The second phase in a two-phase creation process of a model. |
void |
beautifyName()
Renames the receiver's name and its arguments to conform to the Framework's naming conventions. |
void |
encodeIntoPropertyList(NSMutableDictionary result)
Encodes the definitions of this EOStoredProcedure into a property list. |
String |
externalName()
Returns the name of the stored procedure as it is defined in the database, or null if it doesn't have an external name. |
EOModel |
model()
Returns the model to which the receiver belongs. |
String |
name()
Returns the name of the stored procedure as it is defined in the EOModel. |
void |
setArguments(NSArray arguments)
Sets arguments as the array of EOAttributes that describe the receiver's arguments. |
void |
setExternalName(String externalName)
Sets the external name of the stored procedure to externalName . |
void |
setName(String name)
Sets the name of this EOStoredProcedure. |
void |
setUserInfo(NSDictionary dictionary)
Sets the dictionary of auxiliary data, which your application can use for whatever it needs. |
String |
toString()
This constructs and return a string representation of this EOStoredProcedure. |
NSDictionary |
userInfo()
Returns a dictionary of user data. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public EOStoredProcedure(String name)
name
- the name of the stored procedure within the EOModelpublic EOStoredProcedure(NSDictionary propertyList, Object owner)
propertyList
- NSDictionary a property list conataining the definitions for this stored procedureowner
- this parameter should be of type EOModel;
the EOStoredProcedure will store this parameter as its model,
but will not yet add itself to the model's list of stored proceduresMethod Detail |
public NSArray arguments()
public void awakeWithPropertyList(NSDictionary propertyList)
awakeWithPropertyList
in interface EOPropertyListEncoding
propertyList
- the property list defining this EOStoredProcedurepublic void beautifyName()
setArguments(NSArray)
,
EOModel.beautifyNames()
public void encodeIntoPropertyList(NSMutableDictionary result)
encodeIntoPropertyList
in interface EOPropertyListEncoding
result
- the dictionary into which the
definitions of this EOStoredProcedure will be writtenpublic String externalName()
null
if it doesn't have an external name.
setExternalName(String)
public EOModel model()
EOModel.addStoredProcedure(EOStoredProcedure)
public String name()
setName(String)
,
EOStoredProcedure(String)
public void setArguments(NSArray arguments)
arguments
- an ordered array of the EOAttributes
defining the arguments of this EOStoredProcedurearguments()
public void setExternalName(String externalName)
externalName
.
The parameter externalName
should be the name of the stored procedure
as it is defined in the database.
externalName
- external name as defined on the databaseexternalName()
public void setName(String name)
name
- String name within the modelname()
,
EOStoredProcedure(String)
public void setUserInfo(NSDictionary dictionary)
dictionary
can only contain property
list data types (that is, String, NSDictionary, NSArray, and NSData).
dictionary
- NSDictionary the user dictionary as described aboveuserInfo()
public String toString()
public NSDictionary userInfo()
setUserInfo(NSDictionary)
|
Last updated Thu Oct 21 15:04:16 PDT 2004. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |