Indicates a stored procedure call.
The annotated method must be a member of a Dao annotated interface.
@Dao
public interface EmployeeDao {
@Procedure
void updateSalary(@In Integer id, @InOut Reference<BigDecimal> salary);
}
The method may throw following exceptions:
DomaNullPointerExceptionif any of the method parameters arenullUnknownColumnExceptionifResultSetis used and a column is not found in the result setJdbcExceptionif a JDBC related error occurs
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionThe naming convention for keys ofMap<Object, String>.The stored procedure name.intThe query timeout in seconds.boolean
-
Element Details
-
catalog
String catalog- Returns:
- the catalog name for the stored procedure.
- Default:
- ""
-
schema
String schema- Returns:
- the schema name for the stored procedure.
- Default:
- ""
-
name
String nameThe stored procedure name.If not specified, the annotated method name is used.
- Returns:
- the stored procedure name
- Default:
- ""
-
quote
boolean quote- Returns:
- whether quotation marks should be used for the catalog name, the schema name and the stored procedure name in SQL statements.
- Default:
- false
-
queryTimeout
int queryTimeoutThe query timeout in seconds.If not specified,
Config.getQueryTimeout()is used.- Returns:
- the query timeout
- See Also:
- Default:
- -1
-
mapKeyNaming
MapKeyNamingType mapKeyNamingThe naming convention for keys ofMap<Object, String>.This value is used only if a result set is fetched as
Map<Object, String>orList<Map<Object, String>>.- Returns:
- the naming convention
- Default:
- NONE
-
sqlLog
SqlLogType sqlLog- Returns:
- the output format to be used for SQL logs when this procedure is executed.
- Default:
- FORMATTED
-