Package no.sikt.graphitron.generators.db
Class FetchSingleTableInterfaceDBMethodGenerator
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.FetchSingleTableInterfaceDBMethodGenerator
- All Implemented Interfaces:
MethodGenerator
-
Field Summary
FieldsFields inherited from class no.sikt.graphitron.generators.db.FetchDBMethodGenerator
isRoot, resolverKeyParamNameFields inherited from class no.sikt.graphitron.generators.abstractions.AbstractSchemaMethodGenerator
dependencyMap, localObject, processedSchema -
Constructor Summary
ConstructorsConstructorDescriptionFetchSingleTableInterfaceDBMethodGenerator(ObjectDefinition localObject, ProcessedSchema processedSchema) -
Method Summary
Modifier and TypeMethodDescriptiongenerate(ObjectField target) protected CodeBlockgenerateSelectRow(FetchContext context, ObjectField target, Set<ObjectDefinition> implementations) Methods inherited from class no.sikt.graphitron.generators.db.FetchDBMethodGenerator
createAliasDeclarations, createAliasDeclarations, createMapping, createOrderFieldsBlock, createOrderFieldsDeclarationBlock, createSeekAndLimitBlock, createSelectConditions, createSelectJoins, formatWhereContents, generateCorrelatedSubquery, generateForScalarField, generateForScalarField, generateForUnionField, generateSelectRow, 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
getDataFetcherWiring, getDependencyMap, getLocalObject, getLocalTable, getTypeResolverWiring, inferFieldTypeName
-
Field Details
-
DISCRIMINATOR
- See Also:
-
DISCRIMINATOR_VALUE
- See Also:
-
TOKEN
- See Also:
-
-
Constructor Details
-
FetchSingleTableInterfaceDBMethodGenerator
public FetchSingleTableInterfaceDBMethodGenerator(ObjectDefinition localObject, ProcessedSchema processedSchema)
-
-
Method Details
-
generate
- Specified by:
generatein classAbstractSchemaMethodGenerator<ObjectField,ObjectDefinition> - Returns:
- The complete javapoet
MethodSpecbased on the provided target.
-
generateSelectRow
protected CodeBlock generateSelectRow(FetchContext context, ObjectField target, Set<ObjectDefinition> implementations) -
generateAll
- Returns:
- List of complete javapoet
MethodSpecthat can be generated for this object.
-