Package lu.kbra.pclib.db.utils
Class BaseProxyDataBaseEntryUtils
java.lang.Object
lu.kbra.pclib.db.utils.BaseDataBaseEntryUtils
lu.kbra.pclib.db.utils.BaseProxyDataBaseEntryUtils
- All Implemented Interfaces:
DataBaseEntryUtils,DataBaseEntryUtilsOptionsOwner,ProxyDataBaseEntryUtils
- Direct Known Subclasses:
SpringDataBaseEntryUtils
public class BaseProxyDataBaseEntryUtils
extends BaseDataBaseEntryUtils
implements ProxyDataBaseEntryUtils
-
Field Summary
Fields inherited from class lu.kbra.pclib.db.utils.BaseDataBaseEntryUtils
argInstanceFactoryCache, columnsCache, columnsNamesCache, columnTypeFactories, dbmsQualifierName, deleteSqlCache, fieldCache, fieldColumnTypeCache, fieldToColumnNameCache, functionResolver, generatedKeysCache, insertColumnsCache, insertMethodCache, loadMethodCache, nonNullColumnsCache, options, primaryKeysCache, primaryKeysNamesCache, queryableHints, structureVisitor, tableStructureCache, typeHints, updateColumnsCache, updateColumnsNamesCache, updateMethodCache, updateSqlCacheFields inherited from interface lu.kbra.pclib.db.utils.impl.DataBaseEntryUtils
FUNCTION_KEY, MEMBER_KEY, QUALIFIER_KEY, TABLE_NAME_KEYFields inherited from interface lu.kbra.pclib.db.utils.impl.DataBaseEntryUtilsOptionsOwner
FAIL_ON_DUPLICATE_FACTORY_METHOD, FAIL_ON_DUPLICATE_FACTORY_METHOD_PROPERTY, FORCE_DEFAULT_VALUE_ON_NON_NULL, FORCE_DEFAULT_VALUE_ON_NON_NULL_PROPERTY, WARN_ON_DUPLICATE_FACTORY_METHOD, WARN_ON_DUPLICATE_FACTORY_METHOD_PROPERTY -
Constructor Summary
ConstructorsConstructorDescriptionBaseProxyDataBaseEntryUtils(String protocol) BaseProxyDataBaseEntryUtils(ColumnTypeRegistry typeRegistry, String protocolName) BaseProxyDataBaseEntryUtils(ColumnTypeRegistry typeRegistry, String protocol, SQLStructureVisitor structureVisitor, SQLFunctionResolver functionResolver) -
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.<B extends SQLQueryable<T>,T extends DataBaseEntry, V>
Function<List<Object>,V> buildMethodQueryFunction(B instance, Method method) protected lu.kbra.pclib.db.utils.BaseProxyDataBaseEntryUtils.ParameterQueryPlanbuildParameterQueryPlan(Method method, OrderBy[] orderBy, String tableName, lu.kbra.pclib.db.utils.BaseProxyDataBaseEntryUtils.ReturnMapping returnMapping) protected <B extends SQLQueryable<T>,T extends DataBaseEntry, V>
Function<List<Object>,V> computeMethodQueryFunction(B instance, Method method) detectDefaultStrategy(AnnotatedType returnType) detectDefaultStrategy(AnnotatedType returnType, AnnotatedElement parentElement) protected TypefindSQLQueryInterface(Type type) protected ColumnTypegetColumnType(Class<? extends DataBaseEntry> entryClazz, String col) mapTupleToColumns(String[] columns, Tuple tuple) Deprecated.Methods inherited from class lu.kbra.pclib.db.utils.BaseDataBaseEntryUtils
appendTypes, computeColumnNames, computeColumnsFor, computeDefaultValue, computeFactoryMethod, computeFieldToColumnName, computeGeneratedKeys, computeInstanceFactories, computeNonNullColumns, computePreparedDeleteSql, computePreparedUpdateSQL, computePrimaryKeyNames, computePrimaryKeys, computeQueryableHints, computeType, computeTypeHints, computeUpdateColumnsNames, fieldToColumnName, fieldToColumnName, fillInsert, fillLoad, fillLoad, fillLoadAll, fillUpdate, findField, getAllFields, getColumnFor, getColumnsFor, getEntryType, getFieldFor, getFieldFor, getGeneratedKeys, getInsertColumns, getInsertMethod, getLoadMethod, getNonNullColumns, getNonNullKeys, getNonNullValues, getOptions, getPreparedDeleteSQL, getPreparedInsertSQL, getPreparedSelectCountNotNullSQL, getPreparedSelectCountUniqueSQL, getPreparedSelectSQL, getPreparedSelectUniqueSQL, getPreparedUpdateSQL, getPrimaryKeys, getPrimaryKeysNames, getQueryableHints, getQueryableName, getReferencedColumnName, getTypeFor, getTypeFor, getTypeFor, getTypeFor, getTypeHints, getUniqueKeys, getUniqueValues, getUpdateColumns, getUpdateColumnsNames, getUpdateMethod, getUpdateMethod, globToRegex, instance, isListType, loadTypes, matchesDbmsQualifier, parameterToColumnName, prepareDeleteSQL, prepareInsertSQL, prepareSelectCountNotNullSQL, prepareSelectCountUniqueSQL, prepareSelectSQL, prepareSelectUniqueSQL, prepareUpdateSQL, qualifiedName, replaceSQLQualifiers, scanDataBase, scanEntry, scanTable, sortFieldsMethods 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.DataBaseEntryUtils
computeDefaultValue, computeType, fieldToColumnName, fieldToColumnName, fillInsert, fillLoad, fillLoadAll, fillUpdate, getDbmsQualifierName, getEntryType, getFieldFor, getFunctionResolver, getGeneratedKeys, getInsertMethod, getLoadMethod, getNonNullKeys, getNonNullValues, getPreparedDeleteSQL, getPreparedInsertSQL, getPreparedSelectCountNotNullSQL, getPreparedSelectCountUniqueSQL, getPreparedSelectSQL, getPreparedSelectUniqueSQL, getPreparedUpdateSQL, getPrimaryKeys, getPrimaryKeysNames, getQueryableHints, getQueryableName, getReferencedColumnName, getStructureVisitor, getTypeFor, getTypeFor, getTypeFor, getTypeFor, getTypeFor, getTypeHints, getUniqueKeys, getUniqueValues, getUpdateColumnsNames, getUpdateMethod, getUpdateMethod, instance, prepareDeleteSQL, prepareInsertSQL, prepareSelectCountNotNullSQL, prepareSelectCountUniqueSQL, prepareSelectSQL, prepareSelectUniqueSQL, prepareUpdateSQL, qualifiedName, replaceSQLQualifiers, scanDataBase, scanEntry, scanTableMethods inherited from interface lu.kbra.pclib.db.utils.impl.DataBaseEntryUtilsOptionsOwner
getOption, getOptionOrDefault, getOptionOrDefault, getOptions, hasOption, isFailOnDuplicateFactoryMethod, isForceDefaultValueOnNonNull, isWarnOnDuplicateFactoryMethod, setOption
-
Constructor Details
-
BaseProxyDataBaseEntryUtils
-
BaseProxyDataBaseEntryUtils
-
BaseProxyDataBaseEntryUtils
public BaseProxyDataBaseEntryUtils(ColumnTypeRegistry typeRegistry, String protocol, SQLStructureVisitor structureVisitor, SQLFunctionResolver functionResolver)
-
-
Method Details
-
buildMethodQueryFunction
public <B extends SQLQueryable<T>,T extends DataBaseEntry, Function<List<Object>,V> V> buildMethodQueryFunction(B instance, Method method) - Specified by:
buildMethodQueryFunctionin interfaceProxyDataBaseEntryUtils
-
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
-
computeMethodQueryFunction
protected <B extends SQLQueryable<T>,T extends DataBaseEntry, Function<List<Object>,V> V> computeMethodQueryFunction(B instance, Method method) -
findSQLQueryInterface
-
getColumnType
-