|
WebObjects 5.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.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<EOAttribute> |
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<EOAttribute> 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<String,Object> 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()
setName(String)
,
EOStoredProcedure(String)
public String externalName()
null
if it doesn't have an external name.
setExternalName(String)
public EOModel model()
EOModel#addStoredProcedure(EOStoredProcedure)
public NSArray<EOAttribute> arguments()
public NSDictionary userInfo()
setUserInfo(NSDictionary)
public void setName(String name)
name
- String name within the modelname()
,
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 databaseexternalName()
public void setArguments(NSArray<EOAttribute> arguments)
arguments
- an ordered array of the EOAttributes defining the arguments of this EOStoredProcedurearguments()
public void setUserInfo(NSDictionary<String,Object> aDictionary)
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()
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()
setArguments(NSArray)
,
EOModel#beautifyNames()
|
Last updated Tuesday, October 9, 2007 08:58 PDT | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |