@ejb.finder

Scope: Class

Multiplicity

(0..1): You can use this tag zero or one time in the Java™ source file.

Purpose

This tag defines a finder method for the home interface. An entity bean may have zero or more ejb.finder tags. Applies only to entity beans.

Parameters

Parameter Type Applicability Description Mandatory
view-type text   The view-type restricts the home interface in which the finder will be defined. You must specify one of the following attributes:
  • local
  • remote
  • both
The default value is
  • both
false
description text   The description of the finder. false
signature text   Defines the signature of the method, for example, in java.util.Collection findAll(). The return type in the signature must be fully qualified. true
unchecked bool Entity beans, EJB 2.0 Flags the finder as having unchecked permission. If the parameter unchecked is present, role-name must be omitted. The default value is true. false
role-name text   A comma-separated list of roles that can invoke this finder method. false
query text Entity beans, EJB 2.0 EJB-QL query for the finder. false
result-type-mapping text Entity beans, EJB 2.0 Indicates the result-type-mapping (indicates the return type) for the finder method. You must specify one of the following attributes:
  • none
  • local
  • remote
The default value is
  • none
false
transaction-type text   Indicates the transaction-type attribute sets to the method. false
method-intf text   Indicates the interface (Home or LocalHome) for which the finder permissions should be set. If the permissions should apply to both Home or LocalHome interfaces, you do not use this parameter. You must specify one of the following attributes:
  • local
  • none
  • remote
The default value is
  • none
false
Related reference
@ejb.bean
@ejb.create-method
@ejb.ejb-external-ref
@ejb.ejb-ref
@ejb.env-entry
@ejb.facade
@ejb.facade-method
@ejb.home
@ejb.home-method
@ejb.interface
@ejb.interface-method
@ejb.permission
@ejb.persistence
@ejb.persistence (method)
@ejb.pk
@ejb.pk-field
@ejb.relation
@ejb.remote-facade
@ejb.resource-env-ref
@ejb.resource-ref
@ejb.security-identity
@ejb.security-role-ref
@ejb.select
@ejb.session
@ejb.transaction
@ejb.util
@ejb.value-object
@ejb.value-object-method
Terms of use | Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.