SQL Server 2019 & Java: Parameters


We see in Code Snippet 1 how we want to call into the adder method in the JavaTest1 class, passing in two parameters: @x, and @y. When we execute the code the Java C language extension gets the parameter values, and looks in the code for two class-level variables named x, and y, and assigns the values to those variables. The adder method then uses x, and y. I mentioned above how a couple of things changed after Microsoft introduced the Java Language SDK. One of them was that you no longer define a method in SPEES's @script parameter. The parameter instead defines a class you want to call into.