public class SqlProcedure extends Object
| Modifier and Type | Field and Description |
|---|---|
protected SimpleJdbc |
simpleJdbc |
| Constructor and Description |
|---|
SqlProcedure(AbstractDb db,
SqlParameter returnType,
String name,
SqlParameter... params)
Stored function constructor.
|
SqlProcedure(AbstractDb db,
String name,
SqlParameter... params) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
call()
Executes a procedure
|
Map<String,Object> |
call(Map<String,Object> values) |
String |
getName()
getter for the name
|
List<SqlParameter> |
getParameters()
getter for the parameters
|
SqlParameter |
getReturnType()
getter for the return type
|
boolean |
isFunction()
checks if it is a function
|
protected SimpleJdbc simpleJdbc
public SqlProcedure(AbstractDb db, String name, SqlParameter... params)
db - connection wrappername - params - public SqlProcedure(AbstractDb db, SqlParameter returnType, String name, SqlParameter... params)
db - connection wrapperreturnType - function return typename - function nameparams - list o parameter for this functionpublic SqlParameter getReturnType()
public String getName()
public List<SqlParameter> getParameters()
public boolean isFunction()
public Map<String,Object> call()
SqlProcedureCopyright © 2019. All rights reserved.