Class QueryExecutor<T,S,O,R,A,F,U>
java.lang.Object
net.binis.codegen.modifier.impl.BaseModifierImpl<T,R>
net.binis.codegen.spring.modifier.BasePersistenceOperations<T,R>
net.binis.codegen.spring.query.executor.QueryExecutor<T,S,O,R,A,F,U>
- All Implemented Interfaces:
net.binis.codegen.modifier.BaseModifier<T,R>,net.binis.codegen.modifier.Modifier<R>,MockedQuery,PreparedQuery<R>,Printable,Queryable,QueryAccessor,QueryAggregateOperation,QueryCollectionFunctions<T,QuerySelectOperation<S,O,R>>,QueryCondition<S,O,R>,QueryEmbed,QueryExecute<R>,QueryFilter<R>,QueryFunctions<T,QuerySelectOperation<S,O,R>>,QueryJoinAggregateOperation,QueryJoinCollectionFunctions<T,QuerySelectOperation<S,O,R>,Object>,QueryOrderOperation<O,R>,QueryOrderStart<O>,QueryParam<R>,QueryScript<QuerySelectOperation<S,O,R>>,QuerySelectOperation<S,O,R>,QuerySelf,QueryStarter<R,S,A,F,U>,UpdatableQuery
public abstract class QueryExecutor<T,S,O,R,A,F,U> extends BasePersistenceOperations<T,R> implements QueryAccessor, QuerySelectOperation<S,O,R>, QueryOrderOperation<O,R>, QueryFilter<R>, QueryFunctions<T,QuerySelectOperation<S,O,R>>, QueryJoinCollectionFunctions<T,QuerySelectOperation<S,O,R>,Object>, QueryParam<R>, QueryStarter<R,S,A,F,U>, QueryCondition<S,O,R>, QueryJoinAggregateOperation, PreparedQuery<R>, MockedQuery, QuerySelf, QueryEmbed, UpdatableQuery
-
Field Summary
Fields Modifier and Type Field Description protected Stringaliasstatic StringCODE_EXECUTORprotected booleanfieldsprotected intfieldsCountprotected ClassjoinClassprotected booleanjoinFetchprotected StringjoinFieldprotected StringBuilderlastIdentifierprotected QueryExecutorparentprotected booleanupdateFields inherited from class net.binis.codegen.spring.modifier.BasePersistenceOperations
NO_TRANSACTION_DEBUG_WARNING -
Constructor Summary
Constructors Modifier Constructor Description protectedQueryExecutor(Class<?> returnClass, Supplier<QueryEmbed> queryName, UnaryOperator<QueryExecutor> fieldsExecutor) -
Method Summary
Methods inherited from class net.binis.codegen.spring.modifier.BasePersistenceOperations
checkMerge, defaultEntityManagerProvider, getEntityManager, setEntityManagerProvider, with, withNewTransactionRes, withResMethods inherited from class net.binis.codegen.modifier.impl.BaseModifierImpl
done, getObject, setObject
-
Field Details
-
CODE_EXECUTOR
- See Also:
- Constant Field Values
-
parent
-
fieldsCount
protected int fieldsCount -
fields
protected boolean fields -
update
protected boolean update -
alias
-
joinFetch
protected boolean joinFetch -
joinClass
-
joinField
-
lastIdentifier
-
-
Constructor Details
-
QueryExecutor
protected QueryExecutor(Class<?> returnClass, Supplier<QueryEmbed> queryName, UnaryOperator<QueryExecutor> fieldsExecutor)
-
-
Method Details
-
identifier
-
identifierUpdate
-
identifier
-
embedded
-
doNot
protected void doNot() -
doLower
protected void doLower() -
doUpper
protected void doUpper() -
doTrim
protected void doTrim() -
doSubstring
protected void doSubstring(int start) -
doSubstring
public void doSubstring(int start, int len) -
doReplace
-
operation
-
orderIdentifier
-
aggregateIdentifier
-
orderStart
-
aggregateStart
-
script
- Specified by:
scriptin interfaceQueryScript<T>
-
script
- Specified by:
scriptin interfaceQueryScript<T>
-
and
- Specified by:
andin interfaceQuerySelectOperation<T,S,O>
-
or
- Specified by:
orin interfaceQuerySelectOperation<T,S,O>
-
_close
- Specified by:
_closein interfaceQuerySelectOperation<T,S,O>
-
_open
-
_if
-
by
-
by
-
select
-
update
-
by
-
by
-
count
public long count()- Specified by:
countin interfaceQueryExecute<T>
-
top
- Specified by:
topin interfaceQueryExecute<T>
-
top
- Specified by:
topin interfaceQueryExecute<T>
-
nativeQuery
- Specified by:
nativeQueryin interfaceQueryStarter<T,S,O,R,A>
-
query
-
transaction
- Specified by:
transactionin interfaceQueryStarter<T,S,O,R,A>
-
asyncC
-
async
-
asyncC
-
async
-
asyncC
public CompletableFuture<Void> asyncC(long delay, TimeUnit unit, Consumer<QueryStarter<R,S,A,F,U>> consumer) -
async
public <J> CompletableFuture<J> async(long delay, TimeUnit unit, Function<QueryStarter<R,S,A,F,U>,J> func) -
asyncC
-
async
public <J> CompletableFuture<J> async(String flow, long delay, TimeUnit unit, Function<QueryStarter<R,S,A,F,U>,J> func) -
asyncC
public CompletableFuture<Void> asyncC(Duration duration, Consumer<QueryStarter<R,S,A,F,U>> consumer) -
async
public <J> CompletableFuture<J> async(Duration duration, Function<QueryStarter<R,S,A,F,U>,J> func) -
asyncC
-
async
public <J> CompletableFuture<J> async(String flow, Duration duration, Function<QueryStarter<R,S,A,F,U>,J> func) -
top
- Specified by:
topin interfaceQueryExecute<T>
-
top
- Specified by:
topin interfaceQueryExecute<T>
-
page
public org.springframework.data.domain.Page<R> page(org.springframework.data.domain.Pageable pageable)- Specified by:
pagein interfaceQueryExecute<T>
-
page
public <V> org.springframework.data.domain.Page<V> page(org.springframework.data.domain.Pageable pageable, Class<V> cls)- Specified by:
pagein interfaceQueryExecute<T>
-
page
- Specified by:
pagein interfaceQueryExecute<T>
-
page
- Specified by:
pagein interfaceQueryExecute<T>
-
paginated
- Specified by:
paginatedin interfaceQueryExecute<T>
-
paginated
- Specified by:
paginatedin interfaceQueryExecute<T>
-
paginated
- Specified by:
paginatedin interfaceQueryExecute<T>
-
paginated
public <V> void paginated(org.springframework.data.domain.Pageable pageable, Class<V> cls, Consumer<V> consumer)- Specified by:
paginatedin interfaceQueryExecute<T>
-
paged
- Specified by:
pagedin interfaceQueryExecute<T>
-
paged
public void paged(org.springframework.data.domain.Pageable pageable, Consumer<org.springframework.data.domain.Page<R>> consumer)- Specified by:
pagedin interfaceQueryExecute<T>
-
paged
public <V> void paged(long pageSize, Class<V> cls, Consumer<org.springframework.data.domain.Page<V>> consumer)- Specified by:
pagedin interfaceQueryExecute<T>
-
paged
public <V> void paged(org.springframework.data.domain.Pageable pageable, Class<V> cls, Consumer<org.springframework.data.domain.Page<V>> consumer)- Specified by:
pagedin interfaceQueryExecute<T>
-
tuple
- Specified by:
tuplein interfaceQueryExecute<T>
-
tuple
- Specified by:
tuplein interfaceQueryExecute<T>
-
tuples
- Specified by:
tuplesin interfaceQueryExecute<T>
-
prepare
- Specified by:
preparein interfaceQueryExecute<T>
-
tuples
- Specified by:
tuplesin interfaceQueryExecute<T>
-
flush
- Specified by:
flushin interfaceQueryExecute<T>
-
lock
- Specified by:
lockin interfaceQueryExecute<T>
-
hint
- Specified by:
hintin interfaceQueryExecute<T>
-
filter
- Specified by:
filterin interfaceQueryExecute<T>
-
projection
- Specified by:
projectionin interfaceQueryExecute<T>
-
exists
public boolean exists()- Specified by:
existsin interfaceQueryExecute<T>
-
delete
public void delete()- Specified by:
deletein interfaceQueryExecute<T>
-
remove
public int remove()- Specified by:
removein interfaceQueryExecute<T>
-
print
-
desc
- Specified by:
descin interfaceQueryOrderOperation<T,S>
-
asc
- Specified by:
ascin interfaceQueryOrderOperation<T,S>
-
execute
-
list
- Specified by:
listin interfaceQueryExecute<T>
-
reference
-
reference
- Specified by:
referencein interfaceQueryExecute<T>
-
references
- Specified by:
referencesin interfaceQueryExecute<T>
-
ensure
- Specified by:
ensurein interfaceQueryExecute<T>
-
get
- Specified by:
getin interfaceQueryExecute<T>
-
get
- Specified by:
getin interfaceQueryExecute<T>
-
list
- Specified by:
listin interfaceQueryExecute<T>
-
length
- Specified by:
lengthin interfaceQueryFunctions<T,S>
-
equal
- Specified by:
equalin interfaceQueryFunctions<T,S>
-
equal
- Specified by:
equalin interfaceQueryFunctions<T,S>
-
between
- Specified by:
betweenin interfaceQueryFunctions<T,S>
-
in
- Specified by:
inin interfaceQueryFunctions<T,S>
-
in
- Specified by:
inin interfaceQueryFunctions<T,S>
-
in
- Specified by:
inin interfaceQueryFunctions<T,S>
-
isNull
- Specified by:
isNullin interfaceQueryFunctions<T,S>
-
isNotNull
- Specified by:
isNotNullin interfaceQueryFunctions<T,S>
-
like
- Specified by:
likein interfaceQueryFunctions<T,S>
-
starts
- Specified by:
startsin interfaceQueryFunctions<T,S>
-
ends
- Specified by:
endsin interfaceQueryFunctions<T,S>
-
contains
- Specified by:
containsin interfaceQueryFunctions<T,S>
-
greater
- Specified by:
greaterin interfaceQueryFunctions<T,S>
-
greater
- Specified by:
greaterin interfaceQueryFunctions<T,S>
-
greaterEqual
- Specified by:
greaterEqualin interfaceQueryFunctions<T,S>
-
greaterEqual
- Specified by:
greaterEqualin interfaceQueryFunctions<T,S>
-
less
- Specified by:
lessin interfaceQueryFunctions<T,S>
-
less
- Specified by:
lessin interfaceQueryFunctions<T,S>
-
lessEqual
- Specified by:
lessEqualin interfaceQueryFunctions<T,S>
-
lessEqual
- Specified by:
lessEqualin interfaceQueryFunctions<T,S>
-
params
- Specified by:
paramsin interfacePreparedQuery<T>- Specified by:
paramsin interfaceQueryParam<T>
-
param
- Specified by:
paramin interfacePreparedQuery<T>
-
param
- Specified by:
paramin interfaceQueryParam<T>
-
run
public int run()- Specified by:
runin interfaceQueryExecute<T>- Specified by:
runin interfaceUpdatableQuery
-
_else
- Specified by:
_elsein interfaceQueryCondition<T,S,O>
-
parameter
- Specified by:
parameterin interfaceQueryFilter<T>
-
disable
- Specified by:
disablein interfaceQueryFilter<T>
-
sum
- Specified by:
sumin interfaceQueryAggregateOperation<T>
-
min
- Specified by:
minin interfaceQueryAggregateOperation<T>
-
max
- Specified by:
maxin interfaceQueryAggregateOperation<T>
-
avg
- Specified by:
avgin interfaceQueryAggregateOperation<T>
-
cnt
- Specified by:
cntin interfaceQueryAggregateOperation<T>
-
distinct
- Specified by:
distinctin interfaceQueryAggregateOperation<T>
-
group
- Specified by:
groupin interfaceQueryAggregateOperation<T>
-
aggregateFunction
-
size
- Specified by:
sizein interfaceQueryCollectionFunctions<T,S>
-
collection
-
contains
- Specified by:
containsin interfaceQueryCollectionFunctions<T,S>
-
notContains
- Specified by:
notContainsin interfaceQueryCollectionFunctions<T,S>
-
containsAll
- Specified by:
containsAllin interfaceQueryCollectionFunctions<T,S>
-
containsOne
- Specified by:
containsOnein interfaceQueryCollectionFunctions<T,S>
-
containsNone
- Specified by:
containsNonein interfaceQueryCollectionFunctions<T,S>
-
isEmpty
- Specified by:
isEmptyin interfaceQueryCollectionFunctions<T,S>
-
isNotEmpty
- Specified by:
isNotEmptyin interfaceQueryCollectionFunctions<T,S>
-
whereStart
-
orderStart
-
joinStart
-
where
- Specified by:
wherein interfaceQueryJoinAggregateOperation<T,S>
-
join
-
leftJoin
-
join
- Specified by:
joinin interfaceQueryJoinCollectionFunctions<T,S,O>
-
leftJoin
- Specified by:
leftJoinin interfaceQueryJoinCollectionFunctions<T,S,O>
-
joinFetch
- Specified by:
joinFetchin interfaceQueryJoinCollectionFunctions<T,S,O>
-
joinFetch
- Specified by:
joinFetchin interfaceQueryCollectionFunctions<T,S>
-
leftJoinFetch
- Specified by:
leftJoinFetchin interfaceQueryCollectionFunctions<T,S>
-
getAccessorAlias
- Specified by:
getAccessorAliasin interfaceQueryAccessor
-
getAccessorSelect
- Specified by:
getAccessorSelectin interfaceQueryAccessor
-
getAccessorWhere
- Specified by:
getAccessorWherein interfaceQueryAccessor
-
getAccessorOrder
- Specified by:
getAccessorOrderin interfaceQueryAccessor
-
getParams
- Specified by:
getParamsin interfaceQueryAccessor
-
isAltered
public boolean isAltered()- Specified by:
isAlteredin interfaceQueryAccessor
-
setJoinSupplier
- Specified by:
setJoinSupplierin interfaceQueryAccessor
-
setParams
- Specified by:
setParamsin interfaceQueryAccessor
-
setMocked
- Specified by:
setMockedin interfaceMockedQuery
-
getQueryName
-
lower
-
not
-
replace
-
substring
-
substring
-
trim
-
upper
-
_self
-
buildProjection
-
calcProjection
-
calcProjection
-
setParent
- Specified by:
setParentin interfaceQueryEmbed
-