|
JDBaccess API 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Function
Interface for function calls. It extends the interface Call.
Example: Function function = DAReader.getFunction(t); function.setFunctionName("fnc_addSalaryPercent"); function.setModuleName("pkg_employee"); ArrayList params = new ArrayList(); params.add(new Integer(4711)); function.setParameters(params); String outputParamType = "numeric"; function.setOutputParamType(outputParamType); Object addedSalary2 = function.execute(); function.end();
Method Summary | |
---|---|
java.lang.Object |
execute()
Execute the function. |
java.lang.String |
getFunctionName()
Get the function name of the function. |
java.lang.Object |
getFunctionResult()
Get the result object of the function (after execution) |
void |
setFunctionName(java.lang.String functionName)
Set the function name of the function. |
void |
setOutputParamType(java.lang.String outputParamType)
Set the output parameter type of the function (e.g. |
Methods inherited from interface com.jdbaccess.da.Call |
---|
getModuleName, setModuleName, setReadLobsFull |
Methods inherited from interface com.jdbaccess.da.DataAccess |
---|
end, getName, getObjectType, getPackageName, getSize, getSql, setName, setObjectType, setPackageName, setParameters, setSql, toString |
Method Detail |
---|
java.lang.Object execute() throws ApplicationException
ApplicationException
java.lang.String getFunctionName()
void setFunctionName(java.lang.String functionName)
functionName
- The function name to set. e.g. prc_updateSalaryByIdvoid setOutputParamType(java.lang.String outputParamType)
outputParamType
- The output parameter type to set. See manual for
allowed types. In MySql the outputParamType is build automatically and you should not
call this method.java.lang.Object getFunctionResult()
|
JDBaccess API 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |