I created a common method in which I will pass a DAO but it will not be a one DAO. Like i will be passing not only StudentDao but also TeachersDao and ClubsDao.

Originally, this is my method:

```
    public static String getSomething(StudentDao, String id){

        Properties proFind = new Properties();
        proFind.put(StudentDao.ID, id);

        dao.select(proFind).get(0);

        return somethingINeed;
    }

```

But then I've decided that to use only one method, make it something generic..
Somthing like this:

```
    public static <T> String getSomething(Class<T> dao, String id){

        Properties proFind = new Properties();
        proFind.put(StudentDao.ID, id);

        dao.select(proFind).get(0);

        return somethingINeed;
    }

```

but this is not correct.

So my objective is to pass any Dao in that method.
Did i miss something in java? 
Any idea or enlightenment is greatly appreciated.

[EDIT]

All my Daos extends Dao which is and interface.
My concern is just this method in which how I can use any Dao.
The attributes used can be found in the interface Dao also.