sf logo

sf.qof
Annotation Type Call


@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

See Also:
SqlParser

Required Element Summary
 String sql
          This is the SQL statement.
 

Element Detail

sql

public abstract String sql
This is the SQL statement.

Returns:
SQL statement
See Also:
SqlParser

sf logo

Copyright © 2007 brunella ltd. All Rights Reserved.