|
WebObjects 5.4.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.webobjects.eoaccess.EOStoredProcedure
public class 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 aDictionary)
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 String name()
EOStoredProcedure.setName(String)
,
EOStoredProcedure.EOStoredProcedure(String)
public String externalName()
null
if it doesn't have an external name.
EOStoredProcedure.setExternalName(String)
public EOModel model()
EOModel.addStoredProcedure(EOStoredProcedure)
public NSArray arguments()
public NSDictionary userInfo()
EOStoredProcedure.setUserInfo(NSDictionary)
public void setName(String name)
name
- String name within the modelEOStoredProcedure.name()
,
EOStoredProcedure.EOStoredProcedure(String)
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 databaseEOStoredProcedure.externalName()
public void setArguments(NSArray arguments)
arguments
- an ordered array of the EOAttributes defining the arguments of this EOStoredProcedureEOStoredProcedure.arguments()
public void setUserInfo(NSDictionary aDictionary)
dictionary
can only contain property list data types (that is, String, NSDictionary, NSArray, and NSData).
dictionary
- NSDictionary the user dictionary as described aboveEOStoredProcedure.userInfo()
public String toString()
toString
in class Object
public void awakeWithPropertyList(NSDictionary propertyList)
awakeWithPropertyList
in interface EOPropertyListEncoding
propertyList
- the property list defining this EOStoredProcedurepublic void encodeIntoPropertyList(NSMutableDictionary result)
encodeIntoPropertyList
in interface EOPropertyListEncoding
result
- the dictionary into which the definitions of this EOStoredProcedure will be writtenpublic void beautifyName()
EOStoredProcedure.setArguments(NSArray)
,
EOModel.beautifyNames()
|
Last updated June 2008 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |