|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||
@Retention(value=RUNTIME) @Target(value=METHOD) public @interface Call
Defines a call method. Call methods are used to call SQL stored procedures.
@Call(sql = "{ %% = call numberOfPersons({%1}) }")
int numberOfPersons(String name);
{%%} defines a result mapping to the primitive type int
{%1} defines a parameter mapping to the String type parameter name
SqlParser| Required Element Summary | |
|---|---|
String |
sql
This is the SQL statement. |
| Element Detail |
|---|
public abstract String sql
SqlParser
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||