concept parameter in category ejb

This is an excerpt from Manning's book EJB 3 in Action, Second Edition.
Stateless session beans are used to model actions or processes that can be done in a single method call, such as placing a bid on an item in your ActionBazaar scenario. A vast majority of your business-tier components are likely to be stateless. The addBid bean method in listing 2.1 is called from the ActionBazaar web tier when a user decides to place a bid. The parameter to the method, the Bid object, represents the bid to be placed. The Bid object contains the bidder placing the bid, the item being bid on, and the bid amount. As you know, all the method needs to do is save the passed-in Bid data to the database. As you’ll see toward the end of the chapter, the Bid object is really a JPA 2 entity.
Java EE 7 introduced support for invoking stored procedures. A stored procedure is essentially a script that executes inside of the database. The language used to write the scripts is usually database-specific—Oracle has PL/SQL, SQL Server uses Transact-SQL, PostgreSQL supports its own pgSQL as well as pl/perl and pl/PHP, and so on. Some databases even support stored procedures written in Java including Oracle, Informix, and DB2. A stored procedure is basically a function that takes a set of parameters and can optionally return data. The data can be returned from the function or passed back via the parameters to the function. Parameters can be IN, OUT, or INOUT—IN being a parameter passed in, OUT being a parameter used to return a value, and INOUT being a parameter that’s consumed and also returns a value.
Recall from our earlier discussion that JPQL supports two types of parameters: positional and named. Later in this chapter we’ll show you how to set values for both named and positional parameters.
The value of the parameter isn’t limited to numeric or string types; the value depends on the type of path expression used in the WHERE clause. The parameter can take more complex types, such as another entity type, but you’re limited to using conditional expressions that involve a single-value path expression.
@Qualifier @Retention(RUNTIME) @Target({METHOD, FIELD, PARAMETER, TYPE}) public @interface AuthenticatedUser {} @Qualifier @Retention(RUNTIME) @Target({METHOD, FIELD, PARAMETER, TYPE}) public @interface Seller {}