Re: finder methods

sumithra sampath <[email protected]> Sat, 30 Mar 2002 03:23:13 -0800 (PST)
Newsgroups gmane.comp.java.ejb.general
Message-ID <[email protected]>
hi ravi kumar
      finder methods are used to get rows from the
table with respect to some other constraint other than
primary key

     say for ex,
    if u have an employee table with emp_id,emp_name
and emp_status, and if u want to get the results based
on the emp_status,

   then u could write the finder method as

    public Enumeration findByStatus(String emp_status)
throws RemoteException;

tell me if u r not clear

bye
sumithra


--- ravi kumar <[email protected]> wrote:

Hi 

i would like to know something about the finder methods apart fromĀ 
findByPrimaryKey method. can some one help me out.

ravi

>From: "Dmitri Colebatch" <[email protected]>
>Reply-To: [email protected]

>To: <[email protected]>, "hpas" <[email protected]>
>Subject: Re: [EJB-Developer] Destroy an Entity Bean 
>Date: Tue, 26 Mar 2002 16:28:31 +1100 
 
>an entity bean (typically) represents a
record in the database. you only need to remove it if
you want to delete the record. 
 
>please limit the cross posting. 
 
>hth 
>dim 
 
>>----- Original Message ----- 
>>From: "Nicolas D'Ippolito" <[email protected]>
>>To: "hpas" <[email protected]>; "EJB-Developer"
<[email protected]>; "EJB2.0-Persistence" 
>><[email protected]> 
>>Sent: Tuesday, March 26, 2002 5:55 AM 
>>Subject: [EJB-Developer] Destroy an Entity Bean 
 

>> Hi, I have a problem with the Entity Bean. I need to 
>> know how to destroy an EJB, because remove method 
>> seems to destroy a row from the associated table 
>> (apparently it needs a key column). 
 
>> I hope you can help me. Thanks.