This discussion is archived
1 Reply Latest reply: Jun 21, 2010 10:29 PM by EJP RSS

Is this the correct way?

843793 Newbie
Currently Being Moderated
Hi,

I'm designed my application but I'm not so sure if this is the correct way to do it.

I would appreciate any opinion

public class MySupport extends JdbcDaoSupport
{
     public void insert()
     {
          //DO Some stuff
     }
}

public interface Idao
{
     public void insert();
     public abstract Object getMyDao();
}

public class MyDao extends MySupport implements Idao
{
     @Override
     public void insert()
     {
          super().insert();
          //Do some stuff here
     }

     @Override
     public Object getMyDao()
     {
          Object m = null;
          return m;
     }
}
Thanks,
  • 1. Re: Is this the correct way?
    EJP Guru
    Currently Being Moderated
    Your question is so vague as to be unanswerable.
    I'm designed my application
    To do what?
    but I'm not so sure if this is the correct way to do it.
    To do what?

    And this has nothing to do with Generics.

    Locking the thread.