Class OnnoSimpleJdbcRepository<T,ID>

java.lang.Object
org.springframework.data.jdbc.repository.support.SimpleJdbcRepository<T,ID>
su.onno.spring.OnnoSimpleJdbcRepository<T,ID>
All Implemented Interfaces:
org.springframework.data.repository.CrudRepository<T,ID>, org.springframework.data.repository.PagingAndSortingRepository<T,ID>, org.springframework.data.repository.query.QueryByExampleExecutor<T>, org.springframework.data.repository.Repository<T,ID>

@Transactional(readOnly=true) public class OnnoSimpleJdbcRepository<T,ID> extends org.springframework.data.jdbc.repository.support.SimpleJdbcRepository<T,ID>
Spring Data JDBC repository base that implements the framework's deletion-mark contract for catalogs and documents. Other aggregate types keep Spring Data's ordinary physical deletion.
  • Constructor Summary

    Constructors
    Constructor
    Description
    OnnoSimpleJdbcRepository(org.springframework.data.jdbc.core.JdbcAggregateOperations operations, org.springframework.data.mapping.PersistentEntity<T,?> entity, org.springframework.data.jdbc.core.convert.JdbcConverter converter)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(T aggregate)
     
    void
     
    void
    deleteAll(Iterable<? extends T> aggregates)
     
    void
    deleteAllById(Iterable<? extends ID> ids)
     
    void
     

    Methods inherited from class org.springframework.data.jdbc.repository.support.SimpleJdbcRepository

    count, count, exists, existsById, findAll, findAll, findAll, findAll, findAll, findAll, findAllById, findBy, findById, findOne, save, saveAll

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OnnoSimpleJdbcRepository

      public OnnoSimpleJdbcRepository(org.springframework.data.jdbc.core.JdbcAggregateOperations operations, org.springframework.data.mapping.PersistentEntity<T,?> entity, org.springframework.data.jdbc.core.convert.JdbcConverter converter)
  • Method Details

    • deleteById

      @Transactional public void deleteById(ID id)
      Specified by:
      deleteById in interface org.springframework.data.repository.CrudRepository<T,ID>
      Overrides:
      deleteById in class org.springframework.data.jdbc.repository.support.SimpleJdbcRepository<T,ID>
    • delete

      @Transactional public void delete(T aggregate)
      Specified by:
      delete in interface org.springframework.data.repository.CrudRepository<T,ID>
      Overrides:
      delete in class org.springframework.data.jdbc.repository.support.SimpleJdbcRepository<T,ID>
    • deleteAllById

      @Transactional public void deleteAllById(Iterable<? extends ID> ids)
      Specified by:
      deleteAllById in interface org.springframework.data.repository.CrudRepository<T,ID>
      Overrides:
      deleteAllById in class org.springframework.data.jdbc.repository.support.SimpleJdbcRepository<T,ID>
    • deleteAll

      @Transactional public void deleteAll(Iterable<? extends T> aggregates)
      Specified by:
      deleteAll in interface org.springframework.data.repository.CrudRepository<T,ID>
      Overrides:
      deleteAll in class org.springframework.data.jdbc.repository.support.SimpleJdbcRepository<T,ID>
    • deleteAll

      @Transactional public void deleteAll()
      Specified by:
      deleteAll in interface org.springframework.data.repository.CrudRepository<T,ID>
      Overrides:
      deleteAll in class org.springframework.data.jdbc.repository.support.SimpleJdbcRepository<T,ID>