Package lu.kbra.pclib.db.utils
Class DefaultSQLQueryFunctionProvider
java.lang.Object
lu.kbra.pclib.db.utils.DefaultSQLQueryFunctionProvider
- All Implemented Interfaces:
SQLQueryFunctionProvider
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SQLColumnTypeProviderprotected DatabaseEntryUtilsprotected SQLStructureVisitor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected <T extends DatabaseEntry,V>
Function<List<Object>,V> buildFunctionForParameterMethod(Method method, AnnotatedType returnType, SQLQueryable<T> instance, Query query) Builds aFunction<List<Object>, ReturnType>for the given method with no custom SQL.<T extends DatabaseEntry,V>
Function<List<Object>,V> buildMethodQueryFunction(SQLQueryable<T> instance, Method method) protected lu.kbra.pclib.db.utils.DefaultSQLQueryFunctionProvider.ParameterQueryPlanbuildParameterQueryPlan(SQLQueryable<?> instance, Method method, OrderBy[] orderBy, DefaultSQLQueryFunctionProvider.ReturnMapping returnMapping) detectDefaultStrategy(AnnotatedType returnType) detectDefaultStrategy(AnnotatedType returnType, AnnotatedElement parentElement) protected TypefindSQLQueryInterface(Type type) protected booleanisListType(Type type) mapTupleToColumns(String[] columns, Tuple tuple) Deprecated.
-
Field Details
-
databaseEntryUtils
-
structureVisitor
-
columnTypeProvider
-
-
Constructor Details
-
DefaultSQLQueryFunctionProvider
-
-
Method Details
-
detectDefaultStrategy
-
detectDefaultStrategy
-
mapTupleToColumns
Deprecated. -
buildFunctionForParameterMethod
protected <T extends DatabaseEntry,V> Function<List<Object>,V> buildFunctionForParameterMethod(Method method, AnnotatedType returnType, SQLQueryable<T> instance, Query query) Builds aFunction<List<Object>, ReturnType>for the given method with no custom SQL. -
buildParameterQueryPlan
protected lu.kbra.pclib.db.utils.DefaultSQLQueryFunctionProvider.ParameterQueryPlan buildParameterQueryPlan(SQLQueryable<?> instance, Method method, OrderBy[] orderBy, DefaultSQLQueryFunctionProvider.ReturnMapping returnMapping) -
buildMethodQueryFunction
public <T extends DatabaseEntry,V> Function<List<Object>,V> buildMethodQueryFunction(SQLQueryable<T> instance, Method method) - Specified by:
buildMethodQueryFunctionin interfaceSQLQueryFunctionProvider
-
findSQLQueryInterface
-
isListType
-