com.mycompany.secondAttemptCrud.CustomerCrudServiceImpl.java Source code

Java tutorial

Introduction

Here is the source code for com.mycompany.secondAttemptCrud.CustomerCrudServiceImpl.java

Source

/*
 * 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.mycompany.secondAttemptCrud;

import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import com.mycompany.secondattemptClasses.Customer;

import java.util.List;
//@author kurt wasserfall 211150142 3B

public class CustomerCrudServiceImpl implements CustomerCrudService {

    @Transactional(propagation = Propagation.SUPPORTS)
    public Customer find(String name) {
        //throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
        return null;
    }

    @Transactional(propagation = Propagation.MANDATORY)
    public Customer persist(Customer entity) {
        //throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
        return null;
    }

    @Transactional(propagation = Propagation.REQUIRES_NEW)
    public Customer merge(Customer entity) {
        // throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
        return null;
    }

    @Transactional(propagation = Propagation.REQUIRED)
    public Customer remove(Customer entity) {
        //throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
        return null;
    }

    @Transactional(propagation = Propagation.NOT_SUPPORTED)
    public List<Customer> findAll() {
        //throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
        return null;
    }

}