Module jp.ecuacion.splib.web.jpa
Class SplibSearchListJpaService<FST extends SplibSearchForm,FLT extends SplibListForm<?>,E extends jp.ecuacion.lib.jpa.entity.AbstractEntity>
java.lang.Object
jp.ecuacion.splib.web.service.SplibGeneralService
jp.ecuacion.splib.web.service.SplibGeneral2FormsService<FST,FLT>
jp.ecuacion.splib.web.service.SplibSearchListService<FST,FLT>
jp.ecuacion.splib.web.jpa.service.SplibSearchListJpaService<FST,FLT,E>
- Type Parameters:
FST- SplibEditFormFLT- SplibEditFormE- AbstractEntity
- All Implemented Interfaces:
SplibJpaServiceInterface<E>
@Transactional(rollbackFor=java.lang.Exception.class)
public abstract class SplibSearchListJpaService<FST extends SplibSearchForm,FLT extends SplibListForm<?>,E extends jp.ecuacion.lib.jpa.entity.AbstractEntity>
extends SplibSearchListService<FST,FLT>
implements SplibJpaServiceInterface<E>
Provides abstract search list service.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.data.domain.Page<E> getListFormCommon(FST searchForm, org.springframework.data.jpa.repository.JpaSpecificationExecutor<E> repository) Gets Page.jp.ecuacion.splib.core.container.DatetimeFormatParametersoffsetはlogin画面でのonload時に呼ばれるため、login画面を開いた状態で放置した場合は値がnullでエラーになる.protected abstract org.springframework.data.jpa.domain.Specification<E> Gets Specs.protected LocalDaterecord内のlocalDate項目(String)をLocalDate形式で取得.voidsetEntityManager(jakarta.persistence.EntityManager em) Methods inherited from class jp.ecuacion.splib.web.service.SplibSearchListService
delete, getFilteredList, getSortedList, getSortedListMethods inherited from class jp.ecuacion.splib.web.service.SplibGeneral2FormsService
page, prepareForm, prepareFormMethods inherited from class jp.ecuacion.splib.web.service.SplibGeneralService
throwWarningMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jp.ecuacion.splib.web.jpa.service.SplibJpaServiceInterface
findAndOptimisticLockingCheck, getRepositoryForOptimisticLocking, getVersionsForOptimisticLocking
-
Field Details
-
em
protected jakarta.persistence.EntityManager em
-
-
Constructor Details
-
SplibSearchListJpaService
public SplibSearchListJpaService()
-
-
Method Details
-
getParams
public jp.ecuacion.splib.core.container.DatetimeFormatParameters getParams()offsetはlogin画面でのonload時に呼ばれるため、login画面を開いた状態で放置した場合は値がnullでエラーになる.- Overrides:
getParamsin classSplibGeneralService
-
localDate
record内のlocalDate項目(String)をLocalDate形式で取得. -
setEntityManager
public void setEntityManager(jakarta.persistence.EntityManager em) -
getSpecs
Gets Specs.- Parameters:
searchForm- searchForm- Returns:
Specification<E>
-
getListFormCommon
protected org.springframework.data.domain.Page<E> getListFormCommon(FST searchForm, org.springframework.data.jpa.repository.JpaSpecificationExecutor<E> repository) Gets Page.- Parameters:
searchForm- searchFormrepository- repository- Returns:
Page<E>
-