Java tutorial
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.seguriboxltv.core.dao.impl; import com.seguriboxltv.core.dao.PaisDao; import com.seguriboxltv.core.domain.Pais; import java.sql.CallableStatement; import java.sql.Connection; import java.sql.ResultSet; import java.util.List; import javax.sql.DataSource; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Repository; /** * * @author IngGerman */ @Repository public class PaisDaoImpl implements PaisDao { @Autowired private DataSource dataSource; private Connection conn; private String sql = ""; private int returnCode = 0; private String returnMessage = ""; private CallableStatement cstmt = null; private ResultSet rsl = null; public void setDataSource(DataSource dataSource) { this.dataSource = dataSource; } @Override public List<Pais> GetAll() throws Exception { sql = ""; return null; } @Override public Pais Get() throws Exception { throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. } }