aspose file tools
The moose likes OO, Patterns, UML and Refactoring and the fly likes why noy make all my service class methos or DAO class methods static? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Reply Bookmark "why noy make all my service class methos or DAO class methods static?" Watch "why noy make all my service class methos or DAO class methods static?" New topic
Author

why noy make all my service class methos or DAO class methods static?

anand kumarblr
Greenhorn

Joined: Oct 27, 2006
Posts: 27
In a typical Web application we have service layer and dao layer.
For example in service method i have four methods

Create(Customer customer)
Delete(Customer customer)
Update(Customer customer)
Get(Customer customer)

a) My doubt is all these 4 methods does not make use of class variables, so can i make all these 4 methods static?
b) Usually i never see in any application they make these static my question is when do we make methods static?
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: why noy make all my service class methos or DAO class methods static?
 
Similar Threads
Transaction Management
DAO implementation questions
Design Issues
Building Effective Service layer using Spring+Hibernate
Preventing access of DAO layer from Service layer.