|
|||||||||
| Home >> All >> org >> objectstyle >> cayenne >> [ map overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.objectstyle.cayenne.map
Class Procedure

java.lang.Objectorg.objectstyle.cayenne.map.MapObject
org.objectstyle.cayenne.map.Procedure
- All Implemented Interfaces:
- org.objectstyle.cayenne.util.CayenneMapEntry
- public class Procedure
- extends MapObject
A mapping descriptor for a database stored procedure.
| Field Summary | |
protected java.util.List |
callParameters
|
protected java.lang.String |
catalog
|
protected boolean |
returningValue
|
protected java.lang.String |
schema
|
| Fields inherited from class org.objectstyle.cayenne.map.MapObject |
objName, objParent |
| Constructor Summary | |
Procedure()
Creates an unnamed procedure object. |
|
Procedure(java.lang.String name)
Creates a named Procedure object. |
|
| Method Summary | |
void |
addCallParameter(ProcedureParameter param)
Adds new call parameter to the stored procedure. |
void |
clearCallParameters()
|
java.util.List |
getCallOutParameters()
Returns a list of OUT and INOUT call parameters. |
java.util.List |
getCallParameters()
Returns a list of call parameters. |
java.lang.String |
getCatalog()
|
DataMap |
getDataMap()
|
java.lang.String |
getFullyQualifiedName()
Returns procedure name including schema, if present. |
ProcedureParameter |
getResultParam()
Returns parameter describing the return value of the StoredProcedure, or null if procedure does not support return values. |
java.lang.String |
getSchema()
|
boolean |
isReturningValue()
Returns true if a stored procedure returns a value. |
void |
removeCallParameter(java.lang.String name)
Removes a named call parameter. |
void |
setCallParameters(java.util.List parameters)
|
void |
setCatalog(java.lang.String string)
Sets stored procedure's catalog. |
void |
setDataMap(DataMap dataMap)
Sets parent DataMap of this entity. |
void |
setReturningValue(boolean returningValue)
|
void |
setSchema(java.lang.String string)
Sets stored procedure's database schema. |
| Methods inherited from class org.objectstyle.cayenne.map.MapObject |
getName, getParent, setName, setParent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
catalog
protected java.lang.String catalog
schema
protected java.lang.String schema
returningValue
protected boolean returningValue
callParameters
protected java.util.List callParameters
| Constructor Detail |
Procedure
public Procedure()
- Creates an unnamed procedure object.
Procedure
public Procedure(java.lang.String name)
- Creates a named Procedure object.
| Method Detail |
getFullyQualifiedName
public java.lang.String getFullyQualifiedName()
- Returns procedure name including schema, if present.
getDataMap
public DataMap getDataMap()
setDataMap
public void setDataMap(DataMap dataMap)
- Sets parent DataMap of this entity.
setCallParameters
public void setCallParameters(java.util.List parameters)
addCallParameter
public void addCallParameter(ProcedureParameter param)
- Adds new call parameter to the stored procedure. Also sets
param's parent to be this procedure.
removeCallParameter
public void removeCallParameter(java.lang.String name)
- Removes a named call parameter.
clearCallParameters
public void clearCallParameters()
getCallParameters
public java.util.List getCallParameters()
- Returns a list of call parameters.
getCallOutParameters
public java.util.List getCallOutParameters()
- Returns a list of OUT and INOUT call parameters. If procedure has a
return value, it will also be included as a call parameter.
getResultParam
public ProcedureParameter getResultParam()
- Returns parameter describing the return value of the StoredProcedure, or
null if procedure does not support return values. If procedure supports return parameters,
its first parameter is always assumed to be a return result.
isReturningValue
public boolean isReturningValue()
- Returns
trueif a stored procedure returns a value. The first parameter in a list of parameters will be assumed to be a descriptor of return value.
setReturningValue
public void setReturningValue(boolean returningValue)
getCatalog
public java.lang.String getCatalog()
getSchema
public java.lang.String getSchema()
setCatalog
public void setCatalog(java.lang.String string)
- Sets stored procedure's catalog.
setSchema
public void setSchema(java.lang.String string)
- Sets stored procedure's database schema.
|
|||||||||
| Home >> All >> org >> objectstyle >> cayenne >> [ map overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC