All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.coherentlogic.fred.client.db.integration.services.ReleaseDatesService Maven / Gradle / Ivy

There is a newer version: 2.0.3-RELEASE
Show newest version
package com.coherentlogic.fred.client.db.integration.services;

import java.util.List;
import java.util.Optional;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Example;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import com.coherentlogic.fred.client.core.domain.ReleaseDates;
import com.coherentlogic.fred.client.db.integration.dao.ReleaseDatesRepository;

@Repository(ReleaseDatesService.BEAN_NAME)
@Transactional
public class ReleaseDatesService {

    public static final String BEAN_NAME = "releaseDatesService";

    @PersistenceContext
    private EntityManager entityManager;

    @Autowired
    private ReleaseDatesRepository releaseDatesRepository;

    protected EntityManager getEntityManager() {
        return entityManager;
    }

    protected void setEntityManager(EntityManager entityManager) {
        this.entityManager = entityManager;
    }

    public ReleaseDatesRepository getReleaseDatesRepository() {
        return releaseDatesRepository;
    }

    void setReleaseDatesRepository(ReleaseDatesRepository releaseDatesRepository) {
        this.releaseDatesRepository = releaseDatesRepository;
    }

    public long count() {
        return releaseDatesRepository.count();
    }

    public  long count(Example arg0) {
        return releaseDatesRepository.count(arg0);
    }

    public void delete(Long arg0) {
        releaseDatesRepository.deleteById(arg0);
    }

    public void delete(ReleaseDates arg0) {
        releaseDatesRepository.delete(arg0);
    }

    public void delete(Iterable arg0) {
        releaseDatesRepository.deleteAll(arg0);
    }

    public void deleteAll() {
        releaseDatesRepository.deleteAll();
    }

    public boolean exists(Long arg0) {
        return releaseDatesRepository.existsById(arg0);
    }

    public  boolean exists(Example arg0) {
        return releaseDatesRepository.exists(arg0);
    }

    public List findAll() {
        return releaseDatesRepository.findAll();
    }

    public List findAll(Sort sort) {
        return releaseDatesRepository.findAll(sort);
    }

    public List findAll(Iterable ids) {
        return releaseDatesRepository.findAllById(ids);
    }

    public Page findAll(Pageable arg0) {
        return releaseDatesRepository.findAll(arg0);
    }

    public  Page findAll(Example arg0, Pageable arg1) {
        return releaseDatesRepository.findAll(arg0, arg1);
    }

    public  List save(Iterable entities) {
        return releaseDatesRepository.saveAll(entities);
    }

    public void flush() {
        releaseDatesRepository.flush();
    }

    public  S saveAndFlush(S entity) {
        return releaseDatesRepository.saveAndFlush(entity);
    }

    public void deleteInBatch(Iterable entities) {
        releaseDatesRepository.deleteInBatch(entities);
    }

    public void deleteAllInBatch() {
        releaseDatesRepository.deleteAllInBatch();
    }

    public ReleaseDates getOne(Long id) {
        return releaseDatesRepository.getOne(id);
    }

    public  List findAll(Example example) {
        return releaseDatesRepository.findAll(example);
    }

    public  List findAll(Example example, Sort sort) {
        return releaseDatesRepository.findAll(example, sort);
    }

    public Optional findOne(Long arg0) {
        return releaseDatesRepository.findById(arg0);
    }

    public  Optional findOne(Example arg0) {
        return releaseDatesRepository.findOne(arg0);
    }

    public  S save(S arg0) {
        return releaseDatesRepository.save(arg0);
    }
}