public class P2JQueryExecutor
extends java.lang.Object
P2JQueryLogger.| Modifier and Type | Class and Description |
|---|---|
static interface |
P2JQueryExecutor.CompoundExecution<T1,T2,T3,T4,T5,T6,R>
Functional interface, similar to
Function, but accepting six arguments,
and having the capability of throwing an Exception. |
protected static interface |
P2JQueryExecutor.LambdaLogger
Basic interface that groups the functional interfaces used for logging queries.
|
protected static class |
P2JQueryExecutor.LambdaLoggerType
Enumeration used to distinguish between different
P2JQueryExecutor.LambdaLoggers. |
static interface |
P2JQueryExecutor.PreselectExecution<T1,T2,T3,T4,R>
Functional interface, similar to
Function, but accepting four arguments,
and having the capability of throwing an Exception. |
static interface |
P2JQueryExecutor.RandomAccessExecution<T1,T2,T3,T4,T5,R>
Functional interface, similar to
Function, but accepting five arguments,
and having the capability of throwing an Exception. |
| Modifier and Type | Field and Description |
|---|---|
private static P2JQueryExecutor |
instance
The static singleton instance.
|
| Modifier | Constructor and Description |
|---|---|
private |
P2JQueryExecutor()
Private default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
<T1,T2,T3,T4,R> |
execute(Database database,
P2JQueryExecutor.PreselectExecution<T1,T2,T3,T4,R> r,
T1 receiver,
T2 arg1,
T3 arg2,
T4 arg3)
Function that executes the given query.
|
<T1,T2,T3,T4,T5,T6,R> |
execute(Database database,
java.lang.String fql,
P2JQueryExecutor.CompoundExecution<T1,T2,T3,T4,T5,T6,R> r,
T1 receiver,
T2 arg1,
T3 arg2,
T4 arg3,
T5 arg4,
T6 arg5)
Function that executes the given query.
|
private <T1,T2,T3,T4,T5,T6,R> |
execute(Database database,
java.lang.String fql,
P2JQueryExecutor.LambdaLogger r,
T1 receiver,
T2 arg1,
T3 arg2,
T4 arg3,
T5 arg4,
T6 arg5,
P2JQueryExecutor.LambdaLoggerType type)
Function that handles the execution of the given query.
|
<T1,T2,T3,T4,T5,R> |
execute(Database database,
java.lang.String fql,
P2JQueryExecutor.RandomAccessExecution<T1,T2,T3,T4,T5,R> r,
T1 receiver,
T2 arg1,
T3 arg2,
T4 arg3,
T5 arg4)
Function that executes the given query.
|
private <T1,T2,T3,T4,T5,T6,R> |
executeImpl(P2JQueryExecutor.LambdaLogger r,
T1 receiver,
T2 arg1,
T3 arg2,
T4 arg3,
T5 arg4,
T6 arg5,
P2JQueryExecutor.LambdaLoggerType type)
The actual place where the query execution happens.
|
static P2JQueryExecutor |
getInstance()
Static accessor to singleton.
|
private static final P2JQueryExecutor instance
public static P2JQueryExecutor getInstance()
P2JQueryExecutor singleton instance.public <T1,T2,T3,T4,R> R execute(Database database, P2JQueryExecutor.PreselectExecution<T1,T2,T3,T4,R> r, T1 receiver, T2 arg1, T3 arg2, T4 arg3) throws QueryOffEndException, PersistenceException
T1 - The receiver type (PreselectQuery or a child of it).T2 - The type of the first argument.T3 - The type of the second argument.T4 - The type of the third argument.R - The type for the result.database - The database used for this query.r - The method that needs to be executed.receiver - Receiver denoting the query that will be executed.arg1 - First parameter given to the executed method.arg2 - Second parameter given to the executed method.arg3 - Third parameter given to the executed method.QueryOffEndExceptionPersistenceExceptionpublic <T1,T2,T3,T4,T5,R> R execute(Database database, java.lang.String fql, P2JQueryExecutor.RandomAccessExecution<T1,T2,T3,T4,T5,R> r, T1 receiver, T2 arg1, T3 arg2, T4 arg3, T5 arg4) throws QueryOffEndException, PersistenceException
T1 - The receiver type (RandomAccessQuery or a child of it).T2 - The type of the first argument.T3 - The type of the second argument.T4 - The type of the third argument.T5 - The type of the fourth argument.R - The type for the result.database - The database used for this query.fql - The FQL of the query.r - The method that needs to be executed.receiver - Receiver denoting the query that will be executed.arg1 - First parameter given to the executed method.arg2 - Second parameter given to the executed method.arg3 - Third parameter given to the executed method.arg4 - Fourth parameter given to the executed method.QueryOffEndExceptionPersistenceExceptionpublic <T1,T2,T3,T4,T5,T6,R> R execute(Database database, java.lang.String fql, P2JQueryExecutor.CompoundExecution<T1,T2,T3,T4,T5,T6,R> r, T1 receiver, T2 arg1, T3 arg2, T4 arg3, T5 arg4, T6 arg5) throws QueryOffEndException, PersistenceException
T1 - The receiver type (CompoundQuery or a child of it).T2 - The type of the first argument.T3 - The type of the second argument.T4 - The type of the third argument.T5 - The type of the fourth argument.T6 - The type of the fifth argument.R - The type for the result.database - The database used for this query.fql - The FQL of the query.r - The method that needs to be executed.receiver - Receiver denoting the query that will be executed.arg1 - First parameter given to the executed method.arg2 - Second parameter given to the executed method.arg3 - Third parameter given to the executed method.arg4 - Fourth parameter given to the executed method.arg5 - Fifth parameter given to the executed method.QueryOffEndExceptionPersistenceExceptionprivate <T1,T2,T3,T4,T5,T6,R> R execute(Database database, java.lang.String fql, P2JQueryExecutor.LambdaLogger r, T1 receiver, T2 arg1, T3 arg2, T4 arg3, T5 arg4, T6 arg5, P2JQueryExecutor.LambdaLoggerType type) throws QueryOffEndException, PersistenceException
P2JQueryLogger to do that.T1 - The receiver type (e.g. CompoundQuery, RandomAccessQuery, etc).T2 - The type of the first argument.T3 - The type of the second argument.T4 - The type of the third argument.T5 - The type of the fourth argument.T6 - The type of the fifth argument.R - The type for the result.database - The database used for this query.fql - The FQL of the query.r - The method that needs to be executed.receiver - Receiver denoting the query that will be executed.arg1 - First parameter given to the executed method.arg2 - Second parameter given to the executed method.arg3 - Third parameter given to the executed method.arg4 - Fourth parameter given to the executed method.arg5 - Fifth parameter given to the executed method.type - The type of the LambaLogger used.QueryOffEndExceptionPersistenceExceptionprivate <T1,T2,T3,T4,T5,T6,R> R executeImpl(P2JQueryExecutor.LambdaLogger r, T1 receiver, T2 arg1, T3 arg2, T4 arg3, T5 arg4, T6 arg5, P2JQueryExecutor.LambdaLoggerType type) throws QueryOffEndException, PersistenceException
T1 - The receiver type (e.g. CompoundQuery, RandomAccessQuery, etc).T2 - The type of the first argument.T3 - The type of the second argument.T4 - The type of the third argument.T5 - The type of the fourth argument.T6 - The type of the fifth argument.R - The type for the result.r - The method that needs to be executed.receiver - Receiver denoting the query that will be executed.arg1 - First parameter given to the executed method.arg2 - Second parameter given to the executed method.arg3 - Third parameter given to the executed method.arg4 - Fourth parameter given to the executed method.arg5 - Fifth parameter given to the executed method.type - The type of the LambaLogger used.QueryOffEndExceptionPersistenceException