Package no.sikt.graphitron.generators.db
Class FetchMultiTableDBMethodGenerator
java.lang.Object
no.sikt.graphitron.generators.abstractions.AbstractSchemaMethodGenerator<T,ObjectDefinition>
no.sikt.graphitron.generators.abstractions.DBMethodGenerator<ObjectField>
no.sikt.graphitron.generators.db.FetchDBMethodGenerator
no.sikt.graphitron.generators.db.FetchMultiTableDBMethodGenerator
- All Implemented Interfaces:
MethodGenerator
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class no.sikt.graphitron.generators.db.FetchDBMethodGenerator
ELEMENT_NAME, isRoot, resolverKeyParamNameFields inherited from class no.sikt.graphitron.generators.abstractions.AbstractSchemaMethodGenerator
dependencyMap, localObject, processedSchema -
Constructor Summary
ConstructorsConstructorDescriptionFetchMultiTableDBMethodGenerator(ObjectDefinition localObject, ProcessedSchema processedSchema) -
Method Summary
Modifier and TypeMethodDescriptionno.sikt.graphitron.javapoet.MethodSpecgenerate(ObjectField target) List<no.sikt.graphitron.javapoet.MethodSpec>List<no.sikt.graphitron.javapoet.MethodSpec>Methods inherited from class no.sikt.graphitron.generators.db.FetchDBMethodGenerator
createAliasDeclarations, createAliasDeclarations, createMapping, createOrderFieldsBlock, createOrderFieldsDeclarationBlock, createSeekAndLimitBlock, createSelectConditions, createSelectJoins, createSelectJoins, formatWhereContents, generateCorrelatedSubquery, generateForField, generateForField, generateForUnionField, generateSelectRow, getHelperMethodCallForNestedField, getInitialKey, getInputConditions, getSelectCodeAndFieldSource, getSpecBuilder, inferFieldNamingConvention, wrapInField, wrapInMultisetMethods inherited from class no.sikt.graphitron.generators.abstractions.DBMethodGenerator
getContextParameters, getDefaultSpecBuilder, getMethodParameters, getMethodParametersWithOrderField, iterableWrapTypeMethods inherited from class no.sikt.graphitron.generators.abstractions.AbstractSchemaMethodGenerator
createServiceDependency, declareAllServiceClasses, declareAllServiceClasses, declareAllServiceClassesInAliasSet, getDataFetcherWiring, getDependencyMap, getLocalObject, getLocalTable, getTypeResolverWiring, inferFieldTypeName
-
Field Details
-
UNION_KEYS_QUERY
- See Also:
-
TYPE_FIELD
- See Also:
-
DATA_FIELD
- See Also:
-
PK_FIELDS
- See Also:
-
INNER_ROW_NUM
- See Also:
-
-
Constructor Details
-
FetchMultiTableDBMethodGenerator
public FetchMultiTableDBMethodGenerator(ObjectDefinition localObject, ProcessedSchema processedSchema)
-
-
Method Details
-
generate
- Specified by:
generatein classAbstractSchemaMethodGenerator<ObjectField,ObjectDefinition> - Returns:
- The complete javapoet
MethodSpecbased on the provided target.
-
generateWithSubselectMethods
public List<no.sikt.graphitron.javapoet.MethodSpec> generateWithSubselectMethods(ObjectField target) -
generateAll
- Returns:
- List of complete javapoet
MethodSpecthat can be generated for this object.
-