java - Generic abstract class extending generic class -


it's i'm not using correct terminology here, please excuse me in case.

i have class:

public class handleartist extends artistdao 

that handles database changes artist entity/type. there many similar classes same structure:

  • handlealbum extends albumdao, album entity/type
  • handletrack extends trackdao, track entity/type
  • etc.

all "handle"-classes have (or should @ least have) same methods. in order make sure have same methods , structure, thought making abstract base class extend "handle"-classes to, idea.

so tried make abstract class like:

public abstract class handler<t1> extends <t2> 

which didn't work. there way this?


Comments

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Website Login Issue developed in magento -

Can the constants be defined inside a model file of a framework in PHP? -