• Post Reply Bookmark Topic Watch Topic
  • New Topic

What does this mean?

 
Anuj Singh
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SearchContext ctx = (SearchContext) session.getAttribute(KEY_SEARCH_CONTEXT);

What is SearchContext??
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It means get an attribute from the session of the type SearchContext. I've no idea what SearchContext is. Where did you find this code?
 
Anuj Singh
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Paul,
Well I know that it means to get an attribute from the session and cast it explicitly to SearchContext ...I am more concerned about SearchContext.I got this code from my product,but I dont have the developers,who developed this code.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SearchContext should presumably come with some JavaDocs?
 
Sanghmitra Adhage
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are using IDE like Eclipse, you can search where exactly lies the class SearchContext. You can find from which library jar it comes... It will also show you the source code if jar contains it. Also try to find all the references of this class which will give more idea.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So you're basically asking us to describe a component of your product?!

How could we *possibly* do that?!
 
Eduardo Bueno
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Google presents you this.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!