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.fetch.FetchDBMethodGenerator
no.sikt.graphitron.generators.db.fetch.FetchMultiTableDBMethodGenerator
- All Implemented Interfaces:
MethodGenerator
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final intstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class no.sikt.graphitron.generators.db.fetch.FetchDBMethodGenerator
idParamName, isRootFields inherited from class no.sikt.graphitron.generators.abstractions.AbstractSchemaMethodGenerator
dependencyMap, localObject, processedSchema -
Constructor Summary
ConstructorsConstructorDescriptionFetchMultiTableDBMethodGenerator(ObjectDefinition localObject, ProcessedSchema processedSchema) -
Method Summary
Methods inherited from class no.sikt.graphitron.generators.db.fetch.FetchDBMethodGenerator
createAliasDeclarations, createMapping, createSeekAndLimitBlock, createSelectConditions, createSelectJoins, formatWhereContents, generateCorrelatedSubquery, generateForScalarField, generateForUnionField, generateSelectRow, getInputConditions, getSelectCodeAndFieldSource, getSpecBuilder, inferFieldNamingConvention, maybeCreateOrderFieldsBlock, maybeCreateOrderFieldsDeclarationBlock, wrapInFieldMethods inherited from class no.sikt.graphitron.generators.abstractions.DBMethodGenerator
getDefaultSpecBuilder, iterableWrapTypeMethods inherited from class no.sikt.graphitron.generators.abstractions.AbstractSchemaMethodGenerator
getDataFetcherWiring, getDependencyMap, getLocalObject, getLocalTable, getTypeResolverWiring, inferFieldTypeName
-
Field Details
-
UNION_KEYS_QUERY
- See Also:
-
RESULT
- See Also:
-
TYPE_FIELD
- See Also:
-
DATA_FIELD
- See Also:
-
PK_FIELDS
- See Also:
-
INNER_ROW_NUM
- See Also:
-
MAPPED_START_INDEX_IN_SELECT
public static final int MAPPED_START_INDEX_IN_SELECT- 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
-
generateAll
- Returns:
- List of complete javapoet
MethodSpecthat can be generated for this object.
-