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.anantoni.freshdirect.dev.jdbctemplates; import com.anantoni.freshdirect.dev.daos.UserProfileDAO; import com.anantoni.freshdirect.beans.UserProfile; import java.util.List; import javax.sql.DataSource; import org.springframework.jdbc.core.JdbcTemplate; /** * * @author anantoni */ public class UserProfileJDBCTemplate implements UserProfileDAO { private DataSource dataSource; private JdbcTemplate jdbcTemplateObject; @Override public void setDataSource(DataSource ds) { this.dataSource = ds; this.jdbcTemplateObject = new JdbcTemplate(ds); } @Override public void create(String username, String firstname, String lastname, String email, String town, String street, int streetNumber, int postCode, int creditLimit, int currentBalance) { throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. } @Override public UserProfile getUserProfile(Integer id) { throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. } @Override public List<UserProfile> listUserProfiles() { throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. } @Override public void delete(Integer id) { throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. } @Override public void update(Integer id, Integer age) { throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. } }