org.silverpeas.persistence.repository.jpa
Class JpaEntityServiceTest

java.lang.Object
  extended by org.silverpeas.persistence.repository.jpa.JpaEntityServiceTest

@Service
@Transactional(propagation=SUPPORTS)
public class JpaEntityServiceTest
extends Object

User: Yohann Chastagnier Date: 20/11/13


Constructor Summary
JpaEntityServiceTest()
           
 
Method Summary
 long badUpdateMissingLastUpdateDate()
           
 long badUpdateMissingLastUpdatedBy()
           
 long badUpdateMissingVersionManagement()
           
 void delete(Animal... animal)
           
 void delete(Person... person)
           
 long deleteAnimalById(String... animalIds)
           
 long deleteAnimalsByType(AnimalType type)
           
 long deletePersonById(String... personIds)
           
 long deletePersonFirstNamesHavingAtLeastOneAnimal()
           
 void flush()
           
 List<Animal> getAllAnimals()
           
 List<Equipment> getAllEquiments()
           
 List<Person> getAllPersons()
           
 List<Animal> getAnimalById(String... id)
           
 Animal getAnimalById(String id)
           
 List<Animal> getAnimalsByLastNameOfPerson(String lastName)
           
 Animal getAnimalsByName(String name)
           
 List<Animal> getAnimalsByType(AnimalType type)
           
 Equipment getEquipmentById(String id)
           
 List<Person> getPersonById(String... id)
           
 Person getPersonById(String id)
           
 Person getPersonsByFirstName(String name)
           
 List<Person> getPersonsByLastName(String name)
           
 List<Person> getPersonsHaveTypeOfAnimal(AnimalType type)
           
 List<Animal> save(OperationContext context, Animal... animal)
           
 Animal save(OperationContext context, Animal animal)
           
 List<Person> save(OperationContext context, Person... person)
           
 Person save(OperationContext context, Person person)
           
 long updateAnimalNamesByType(AnimalType type)
           
 long updatePersonFirstNamesHavingAtLeastOneAnimal()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JpaEntityServiceTest

public JpaEntityServiceTest()
Method Detail

flush

public void flush()

getAllEquiments

public List<Equipment> getAllEquiments()

getEquipmentById

public Equipment getEquipmentById(String id)

getAllPersons

public List<Person> getAllPersons()

getPersonById

public Person getPersonById(String id)

getPersonById

public List<Person> getPersonById(String... id)

getAllAnimals

public List<Animal> getAllAnimals()

getAnimalById

public Animal getAnimalById(String id)

getAnimalById

public List<Animal> getAnimalById(String... id)

save

@Transactional(propagation=REQUIRED)
public List<Person> save(OperationContext context,
                                       Person... person)

save

@Transactional(propagation=REQUIRED)
public List<Animal> save(OperationContext context,
                                       Animal... animal)

save

@Transactional(propagation=REQUIRED)
public Person save(OperationContext context,
                                 Person person)

save

@Transactional(propagation=REQUIRED)
public Animal save(OperationContext context,
                                 Animal animal)

delete

@Transactional(propagation=REQUIRED)
public void delete(Person... person)

delete

@Transactional(propagation=REQUIRED)
public void delete(Animal... animal)

deletePersonById

@Transactional(propagation=REQUIRED)
public long deletePersonById(String... personIds)

deleteAnimalById

@Transactional(propagation=REQUIRED)
public long deleteAnimalById(String... animalIds)

getPersonsByFirstName

public Person getPersonsByFirstName(String name)

getPersonsByLastName

public List<Person> getPersonsByLastName(String name)

getAnimalsByLastNameOfPerson

public List<Animal> getAnimalsByLastNameOfPerson(String lastName)

getAnimalsByType

public List<Animal> getAnimalsByType(AnimalType type)

getAnimalsByName

public Animal getAnimalsByName(String name)

getPersonsHaveTypeOfAnimal

public List<Person> getPersonsHaveTypeOfAnimal(AnimalType type)

updateAnimalNamesByType

@Transactional(propagation=REQUIRED)
public long updateAnimalNamesByType(AnimalType type)

deleteAnimalsByType

@Transactional(propagation=REQUIRED)
public long deleteAnimalsByType(AnimalType type)

updatePersonFirstNamesHavingAtLeastOneAnimal

@Transactional(propagation=REQUIRED)
public long updatePersonFirstNamesHavingAtLeastOneAnimal()

deletePersonFirstNamesHavingAtLeastOneAnimal

@Transactional(propagation=REQUIRED)
public long deletePersonFirstNamesHavingAtLeastOneAnimal()

badUpdateMissingLastUpdatedBy

@Transactional(propagation=REQUIRED)
public long badUpdateMissingLastUpdatedBy()

badUpdateMissingLastUpdateDate

@Transactional(propagation=REQUIRED)
public long badUpdateMissingLastUpdateDate()

badUpdateMissingVersionManagement

@Transactional(propagation=REQUIRED)
public long badUpdateMissingVersionManagement()


Copyright © 2016 Silverpeas. All Rights Reserved.