Java snippet
- Last Updated: February 11, 2026
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
The core of the stored procedure is the Java snippet.
The snippet contains a sequence of Java statements. When it processes
a CREATE PROCEDURE statement, OpenEdge SQL adds
header and footer "wrapper" code to the Java snippet. This wrapper
code:
- Declares a class with the name
username_procname_SP, where username is the user name of the database connection that issued theCREATE PROCEDUREstatement and procname is the name supplied in theCREATE PROCEDUREstatement. - Declares a method within that class that includes the Java snippet. When
an application calls the stored procedure, the SQL engine calls
the Java virtual machine to invoke the method of the
username_procname_SPclass.