-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Generic Query parameters
PostPosted: Thu Jul 22, 2004 10:48 am 
Beginner
Beginner

Joined: Mon Sep 15, 2003 9:10 am
Posts: 43
Hi,

i've made a base class :

Code:
public class DAOHIBSupport {

   protected Session getSession() {
   }

   protected void closeSession() {
   }

   public ObjetBase getStd(Class c, Long idObjet) {
   }

   public void saveStd(ObjetBase o) {
   }

   public void deleteStd(ObjetBase o) {
   }
   
   public List getListStd(String query, int nbOffreParPage, int    }

   public List getListStd(String query) {
   }

   public int getCountStd(String query) {
   }   
}


i need to use use query parameters from extended classes.

I would add a method like :

Code:
List getListStd(String query, QueryParameters qp){
}


Is it a good way ?

Thanks,

Fabien.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.