1 Reply Latest reply: Jun 22, 2010 12:29 AM by EJP RSS

    Is this the correct way?

    843793
      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
          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.