E - generic type of the managed entity.ID - generic type of the primary key
of the entity.public class GenericRepositoryImpl<E,ID extends Serializable> extends org.springframework.data.jpa.repository.support.SimpleJpaRepository<E,ID> implements GenericRepository<E,ID>
GenericRepository based on SimpleJpaRepository. All repository interfaces derived
from GenericRepository will be based on this implementation at runtime.QuerydslJpaRepositor as it forces you to use QueryDSL APT generation what
is not desired. Therefore, you will have no support for QueryDslPredicateExecutor. However, we offer more
flexible QueryDSL support anyhow. See QueryDslSupport.| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.data.jpa.repository.support.JpaEntityInformation<E,?> |
entityInformation
The
JpaEntityInformation. |
protected javax.persistence.EntityManager |
entityManager
The
EntityManager instance. |
| Constructor and Description |
|---|
GenericRepositoryImpl(org.springframework.data.jpa.repository.support.JpaEntityInformation<E,ID> entityInformation,
javax.persistence.EntityManager entityManager)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
forceIncrementModificationCounter(E entity) |
Class<E> |
getEntityClass() |
E |
newDslAlias()
Attention: Please read documentation of
QueryDslSupport before usage. |
com.querydsl.jpa.impl.JPADeleteClause |
newDslDeleteClause(E alias)
Attention: Please read documentation of
QueryDslSupport before usage. |
com.querydsl.jpa.impl.JPADeleteClause |
newDslDeleteClause(com.querydsl.core.types.EntityPath<E> entityPath)
Attention: Please read documentation of
QueryDslSupport before usage. |
com.querydsl.jpa.impl.JPAQuery<E> |
newDslQuery()
Attention: Please read documentation of
QueryDslSupport before usage. |
com.querydsl.jpa.impl.JPAQuery<E> |
newDslQuery(E alias)
Attention: Please read documentation of
QueryDslSupport before usage. |
count, count, count, delete, deleteAll, deleteAll, deleteAllInBatch, deleteById, deleteInBatch, exists, existsById, findAll, findAll, findAll, findAll, findAll, findAll, findAll, findAll, findAll, findAllById, findById, findOne, findOne, flush, getCountQuery, getCountQuery, getDomainClass, getOne, getQuery, getQuery, getQuery, getQuery, getQueryHints, getRepositoryMethodMetadata, readPage, readPage, save, saveAll, saveAndFlush, setRepositoryMethodMetadataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeleteByIds, finddeleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlushfindAllprotected final javax.persistence.EntityManager entityManager
EntityManager instance.protected final org.springframework.data.jpa.repository.support.JpaEntityInformation<E,?> entityInformation
JpaEntityInformation.public GenericRepositoryImpl(org.springframework.data.jpa.repository.support.JpaEntityInformation<E,ID> entityInformation, javax.persistence.EntityManager entityManager)
entityInformation - the JpaEntityInformation.entityManager - the JPA EntityManager.public void forceIncrementModificationCounter(E entity)
forceIncrementModificationCounter in interface FeatureForceIncrementModificationCounter<E>public Class<E> getEntityClass()
getEntityClass in interface GenericRepository<E,ID extends Serializable>Class of the managed entity.public com.querydsl.jpa.impl.JPAQuery<E> newDslQuery()
QueryDslSupportQueryDslSupport before usage.newDslQuery in interface QueryDslSupport<E>JPAQuery. In most cases you should prefer using QueryDslSupport.newDslQuery(Object) instead.public com.querydsl.jpa.impl.JPAQuery<E> newDslQuery(E alias)
QueryDslSupportQueryDslSupport before usage.newDslQuery in interface QueryDslSupport<E>alias - the alias.JPAQuery for the given Alias.public com.querydsl.jpa.impl.JPADeleteClause newDslDeleteClause(E alias)
QueryDslSupportQueryDslSupport before usage.newDslDeleteClause in interface QueryDslSupport<E>alias - the alias.JPADeleteClause for the given Alias.public com.querydsl.jpa.impl.JPADeleteClause newDslDeleteClause(com.querydsl.core.types.EntityPath<E> entityPath)
QueryDslSupportQueryDslSupport before usage.newDslDeleteClause in interface QueryDslSupport<E>entityPath - the EntityPath to delete from.JPADeleteClause for the given EntityPath.public E newDslAlias()
QueryDslSupportQueryDslSupport before usage.newDslAlias in interface QueryDslSupport<E>Alias for the managed entity.Copyright © 2014–2019 devon4j-Team. All rights reserved.