I have a custom defined table in sonar DB , and I wanted to get an access to it from a Sonar plugin , I'm currently accessing the exiting tables by using sonar , Web Service / controller so how can I get this done ?
Sonar does not define any extension to add custom DB tables, so there's no API for what you want to achieve.
Now, whatever your reasons for creating a custom DB table (I'd like to know them actually), you have to create your own fork of Sonar to be able to add MyBatis mappers & DAOs on Java's side of Sonar, and/or add a Ruby model on RoR side to be able to query the table from the Web side.