Class SaveStepSupplier<INPUT,RESULT,R,ID,T extends org.springframework.data.repository.Repository<R,ID>>
- java.lang.Object
-
- ru.tinkoff.qa.neptune.core.api.steps.SequentialGetStepSupplier<T,R,M,P,THIS>
-
- ru.tinkoff.qa.neptune.core.api.steps.SequentialGetStepSupplier.GetObjectChainedStepSupplier<SpringDataContext,RESULT,INPUT,SaveStepSupplier<INPUT,RESULT,R,ID,T>>
-
- ru.tinkoff.qa.neptune.spring.data.save.SaveStepSupplier<INPUT,RESULT,R,ID,T>
-
- All Implemented Interfaces:
Cloneable
,Supplier<Function<SpringDataContext,RESULT>>
,StepParameterPojo
,InsertQuery<RESULT>
,SelectQuery<RESULT>
public abstract class SaveStepSupplier<INPUT,RESULT,R,ID,T extends org.springframework.data.repository.Repository<R,ID>> extends SequentialGetStepSupplier.GetObjectChainedStepSupplier<SpringDataContext,RESULT,INPUT,SaveStepSupplier<INPUT,RESULT,R,ID,T>> implements InsertQuery<RESULT>, SelectQuery<RESULT>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ru.tinkoff.qa.neptune.core.api.steps.SequentialGetStepSupplier
SequentialGetStepSupplier.DefaultGetParameterReader, SequentialGetStepSupplier.DefineCriteriaParameterName, SequentialGetStepSupplier.DefineFromParameterName, SequentialGetStepSupplier.DefineGetImperativeParameterName, SequentialGetStepSupplier.DefinePollingTimeParameterName, SequentialGetStepSupplier.DefineResultDescriptionParameterName, SequentialGetStepSupplier.DefineTimeOutParameterName, SequentialGetStepSupplier.GetArrayChainedStepSupplier<T,R,M,THIS extends SequentialGetStepSupplier.GetArrayChainedStepSupplier<T,R,M,THIS>>, SequentialGetStepSupplier.GetArrayStepSupplier<T,R,THIS extends SequentialGetStepSupplier.GetArrayStepSupplier<T,R,THIS>>, SequentialGetStepSupplier.GetListChainedStepSupplier<T,S extends Iterable<R>,M,R,THIS extends SequentialGetStepSupplier.GetListChainedStepSupplier<T,S,M,R,THIS>>, SequentialGetStepSupplier.GetListStepSupplier<T,S extends Iterable<R>,R,THIS extends SequentialGetStepSupplier.GetListStepSupplier<T,S,R,THIS>>, SequentialGetStepSupplier.GetObjectChainedStepSupplier<T,R,M,THIS extends SequentialGetStepSupplier.GetObjectChainedStepSupplier<T,R,M,THIS>>, SequentialGetStepSupplier.GetObjectFromArrayChainedStepSupplier<T,R,M,THIS extends SequentialGetStepSupplier.GetObjectFromArrayChainedStepSupplier<T,R,M,THIS>>, SequentialGetStepSupplier.GetObjectFromArrayStepSupplier<T,R,THIS extends SequentialGetStepSupplier.GetObjectFromArrayStepSupplier<T,R,THIS>>, SequentialGetStepSupplier.GetObjectFromIterableChainedStepSupplier<T,R,M,THIS extends SequentialGetStepSupplier.GetObjectFromIterableChainedStepSupplier<T,R,M,THIS>>, SequentialGetStepSupplier.GetObjectFromIterableStepSupplier<T,R,THIS extends SequentialGetStepSupplier.GetObjectFromIterableStepSupplier<T,R,THIS>>, SequentialGetStepSupplier.GetObjectStepSupplier<T,R,THIS extends SequentialGetStepSupplier.GetObjectStepSupplier<T,R,THIS>>, SequentialGetStepSupplier.GetSimpleStepSupplier<T,R,THIS extends SequentialGetStepSupplier.GetSimpleStepSupplier<T,R,THIS>>
-
-
Field Summary
-
Fields inherited from class ru.tinkoff.qa.neptune.core.api.steps.SequentialGetStepSupplier
toReport
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>
getParameters()
Transforms an object to a map of step parameters and their values.static <R,ID,T extends org.springframework.data.repository.Repository<R,ID>>
SaveStepSupplier<Iterable<R>,Iterable<R>,R,ID,T>save(String description, SelectManyStepSupplier<R,ID,T> select)
static <R,ID,T extends org.springframework.data.repository.Repository<R,ID>>
SaveStepSupplier<R,R,R,ID,T>save(String description, SelectOneStepSupplier<R,ID,T> select)
static <R,ID,T extends org.springframework.data.repository.Repository<R,ID>>
SaveStepSupplier<Iterable<R>,Iterable<R>,R,ID,T>save(String description, T repository, Iterable<R> toSave)
static <R,ID,T extends org.springframework.data.repository.Repository<R,ID>>
SaveStepSupplier<R,R,R,ID,T>save(String description, T repository, R toSave)
SaveStepSupplier<INPUT,RESULT,R,ID,T>
setUpdates(UpdateAction<R>... updates)
-
Methods inherited from class ru.tinkoff.qa.neptune.core.api.steps.SequentialGetStepSupplier.GetObjectChainedStepSupplier
from, from, from
-
Methods inherited from class ru.tinkoff.qa.neptune.core.api.steps.SequentialGetStepSupplier
addIgnored, addIgnored, additionalParameters, eraseTimeOut, getCriteria, getDescription, getEndFunction, getFrom, makeACopy, onFailure, onStart, onSuccess, pollingInterval, preparePreFunction, setDescription, throwOnNoResult, timeOut, toString, turnReportingOff
-
-
-
-
Method Detail
-
save
public static <R,ID,T extends org.springframework.data.repository.Repository<R,ID>> SaveStepSupplier<R,R,R,ID,T> save(String description, SelectOneStepSupplier<R,ID,T> select)
-
save
public static <R,ID,T extends org.springframework.data.repository.Repository<R,ID>> SaveStepSupplier<R,R,R,ID,T> save(String description, T repository, R toSave)
-
save
public static <R,ID,T extends org.springframework.data.repository.Repository<R,ID>> SaveStepSupplier<Iterable<R>,Iterable<R>,R,ID,T> save(String description, SelectManyStepSupplier<R,ID,T> select)
-
save
public static <R,ID,T extends org.springframework.data.repository.Repository<R,ID>> SaveStepSupplier<Iterable<R>,Iterable<R>,R,ID,T> save(String description, T repository, Iterable<R> toSave)
-
getParameters
public Map<String,String> getParameters()
Description copied from interface:StepParameterPojo
Transforms an object to a map of step parameters and their values. It uses fields of type that extendsStepParameterPojo
or fields annotated byStepParameter
- Specified by:
getParameters
in interfaceStepParameterPojo
- Overrides:
getParameters
in classSequentialGetStepSupplier<SpringDataContext,RESULT,INPUT,RESULT,SaveStepSupplier<INPUT,RESULT,R,ID,T extends org.springframework.data.repository.Repository<R,ID>>>
- Returns:
- a map where key is a name of a parameter and value is a value of a parameter
-
setUpdates
@SafeVarargs public final SaveStepSupplier<INPUT,RESULT,R,ID,T> setUpdates(UpdateAction<R>... updates)
-
-