24.10 Stored Procedures
Many database-management systems can store individual or sets of SQL statements in a database, so that programs accessing that database can invoke them. Such named collections of SQL statements are called stored procedures. JDBC enables programs to invoke stored procedures using objects that implement the interface CallableStatement
. CallableStatement
s can receive arguments specified with the methods inherited from interface PreparedStatement
. In addition, CallableStatement
s can specify output parameters in which a stored procedure can place return values. Interface CallableStatement
includes methods to specify which parameters in a stored procedure are output parameters. The interface also includes methods to obtain ...
Get Java How to Program, Early Objects, 11th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.