T
- Type of entity@Service
@Scope(value="prototype")
public abstract class BaseService<T>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected org.springframework.data.jpa.repository.JpaRepository<T,java.lang.String> |
repository |
Constructor and Description |
---|
BaseService(org.springframework.data.jpa.repository.JpaRepository<T,java.lang.String> repository) |
Modifier and Type | Method and Description |
---|---|
long |
count() |
void |
delete(T var1) |
void |
deleteAll() |
void |
deleteAll(java.lang.Iterable<T> var1) |
void |
deleteById(java.lang.String var1) |
boolean |
doesObjectContainField(java.lang.Class object,
java.lang.String fieldName) |
boolean |
existsById(java.lang.String var1) |
java.util.List<T> |
findAll() |
java.util.List<T> |
findAllById(java.lang.Iterable<java.lang.String> var1) |
java.util.List<T> |
findByExperiment(java.lang.String experiment) |
java.util.Optional<T> |
findById(java.lang.String var1) |
T |
getOne(java.lang.String var1) |
static java.lang.Class<?> |
inferGenericType(java.lang.Class<?> clazz) |
static java.lang.Class<?> |
inferGenericType(java.lang.Class<?> clazz,
int index) |
T |
save(T var1) |
java.util.List<T> |
saveAll(java.lang.Iterable<T> var1) |
protected final org.springframework.data.jpa.repository.JpaRepository<T,java.lang.String> repository
public BaseService(org.springframework.data.jpa.repository.JpaRepository<T,java.lang.String> repository)
public java.util.Optional<T> findById(java.lang.String var1)
public T getOne(java.lang.String var1)
public boolean existsById(java.lang.String var1)
public java.util.List<T> findAll()
public boolean doesObjectContainField(java.lang.Class object, java.lang.String fieldName)
public java.util.List<T> findAllById(java.lang.Iterable<java.lang.String> var1)
public long count()
public void deleteById(java.lang.String var1)
public void delete(T var1)
public void deleteAll(java.lang.Iterable<T> var1)
public void deleteAll()
public java.util.List<T> findByExperiment(java.lang.String experiment)
public static java.lang.Class<?> inferGenericType(java.lang.Class<?> clazz)
public static java.lang.Class<?> inferGenericType(java.lang.Class<?> clazz, int index)