• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

urgent

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
I was working on some Entity Bean and was just wondering with following:



class variable retrieveDeclineRecordsOnly is correct value in ejbFindBy..() method. But in ejbLoad() method it is having the old value.
How can i get the correct value of retrieveDeclineRecordsOnly in ejbLoad() method?

public ContributionEntityKey ejbFindByProfileIdContractId(ContributionEntityKey primaryKey, int noOfRecords)
throws FinderException {

// some bussiness logic here
this.retrieveDeclineRecordsOnly = noOfRecords;
return primaryKey;
}

public void ejbLoad() {
ContributionEntityKey key
= (ContributionEntityKey) getEntityContext().getPrimaryKey();
if (this.retrieveDeclineRecordsOnly != 0) {
this.declinedProcessedRemarks = this.deferralDAO.getAccountManagementDeferralDeclinedData(
key.getProfileId(), key.getContractNumber(), retrieveDeclineRecordsOnly);
this.retrieveDeclineRecordsOnly = 0;
}
 
Bartender
Posts: 2856
10
Firefox Browser Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ramamohan gulla welcome to Javaranch .
Firstly please EaseUp, mentioning urgent in the subject wont really help you instead consider using a meaningful subject line.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic