Tuesday, 10 March 2015

Select Data From Database And Cast Into Class Type In Java

In this example i select data from database and return these data. You simple call this method and cast into required class type. Step-1      public Personal_CoachingGS Generatepersonalinvoice(String Query) {         Personal_CoachingGS pc = new Personal_CoachingGS();         Connection connection = null;         Statement...

Use Of ArrayList In Java

In this example we select data from database and add these data into a arraylist and return that list. The page in which you want to use these data simply call this method and cast into required class type. This Example In Java Swing. Step-1     public List<Personal_CoachingGS> selectAllInvoice(String Query) {         List<Personal_CoachingGS> memberdata...