Package lu.kbra.pclib.db.query
Class DefaultQueryFunctionProvider
java.lang.Object
lu.kbra.pclib.db.query.DefaultQueryFunctionProvider
- All Implemented Interfaces:
QueryFunctionProvider
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ColumnTypeProviderprotected DatabaseEntryUtilsprotected List<ReturnTypeMapper>protected SQLStructureVisitor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends DatabaseEntry,V>
Function<Object[],V> buildMethodQueryFunction(SQLQueryable<T> instance, Method method, Map<String, Object> customHints) <T extends DatabaseEntry,V>
Function<Object[],V> buildMethodQueryFunction(SQLQueryable<T> instance, Method method, QueryStructure queryStructure) <T extends DatabaseEntry>
QueryStructurebuildMethodQueryStructure(SQLQueryable<T> instance, Map<String, Object> hints, Method method) detectDefaultStrategy(AnnotatedType returnType) detectDefaultStrategy(AnnotatedType returnType, AnnotatedElement parentElement) protected TypefindSQLQueryInterface(Type type) protected booleanisListType(Type type) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface lu.kbra.pclib.db.utils.impl.QueryFunctionProvider
buildMethodQueryFunction
-
Field Details
-
databaseEntryUtils
-
structureVisitor
-
columnTypeProvider
-
returnTypeMappers
-
-
Constructor Details
-
DefaultQueryFunctionProvider
-
-
Method Details
-
registerReturnTypeMapper
- Specified by:
registerReturnTypeMapperin interfaceQueryFunctionProvider
-
clearReturnTypeMappers
- Specified by:
clearReturnTypeMappersin interfaceQueryFunctionProvider
-
detectDefaultStrategy
-
detectDefaultStrategy
-
buildMethodQueryFunction
public <T extends DatabaseEntry,V> Function<Object[],V> buildMethodQueryFunction(SQLQueryable<T> instance, Method method, Map<String, Object> customHints) - Specified by:
buildMethodQueryFunctionin interfaceQueryFunctionProvider
-
buildMethodQueryFunction
public <T extends DatabaseEntry,V> Function<Object[],V> buildMethodQueryFunction(SQLQueryable<T> instance, Method method, QueryStructure queryStructure) - Specified by:
buildMethodQueryFunctionin interfaceQueryFunctionProvider
-
findSQLQueryInterface
-
isListType
-
buildMethodQueryStructure
public <T extends DatabaseEntry> QueryStructure buildMethodQueryStructure(SQLQueryable<T> instance, Map<String, Object> hints, Method method) - Specified by:
buildMethodQueryStructurein interfaceQueryFunctionProvider
-