public class SQLCall extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
SQLCall(Database ds,
String fun,
Integer returnType) |
| Modifier and Type | Method and Description |
|---|---|
SQLCall |
addInParam(Object value)
Adds an in parameter.
|
SQLCall |
addOutParam(String parameter,
int type)
Adds an out parameter.
|
SQLCall |
call()
Invokes the call
|
sirius.kernel.commons.Value |
getReturnValue()
Returns the return value of the function call
|
sirius.kernel.commons.Value |
getValue(String key)
Returns the named out parameter
|
protected void |
readBackParameters(CallableStatement stmt) |
String |
toString() |
protected void |
writeParameters(CallableStatement stmt) |
public SQLCall addInParam(Object value)
value - the value to pass inpublic SQLCall addOutParam(String parameter, int type)
parameter - the name of the parametertype - the SQL type (Types) of the parameterpublic SQLCall call() throws SQLException
SQLException - in case of a database errorprotected void writeParameters(CallableStatement stmt) throws SQLException
SQLExceptionprotected void readBackParameters(CallableStatement stmt) throws SQLException
SQLExceptionpublic sirius.kernel.commons.Value getReturnValue()
Valuepublic sirius.kernel.commons.Value getValue(String key)
key - the parameter to returnValueCopyright © 2018. All rights reserved.