Class DBMethodGenerator<T extends ObjectField>
java.lang.Object
no.sikt.graphitron.generators.abstractions.AbstractSchemaMethodGenerator<T,ObjectDefinition>
no.sikt.graphitron.generators.abstractions.DBMethodGenerator<T>
- Type Parameters:
T- Field type that this generator operates on.
- All Implemented Interfaces:
MethodGenerator
- Direct Known Subclasses:
FetchDBMethodGenerator,UpdateDBMethodGenerator
public abstract class DBMethodGenerator<T extends ObjectField>
extends AbstractSchemaMethodGenerator<T,ObjectDefinition>
Generic select query generation functionality is contained within this class.
-
Field Summary
Fields inherited from class no.sikt.graphitron.generators.abstractions.AbstractSchemaMethodGenerator
dependencyMap, localObject, processedSchema -
Constructor Summary
ConstructorsConstructorDescriptionDBMethodGenerator(ObjectDefinition localObject, ProcessedSchema processedSchema) -
Method Summary
Modifier and TypeMethodDescriptionprotected List<ParameterSpec>getContextParameters(GenerationField referenceField) getDefaultSpecBuilder(String methodName, TypeName returnType) protected List<ParameterSpec>getMethodParameters(InputParser parser) protected List<ParameterSpec>protected TypeNameiterableWrapType(GenerationField field) Methods inherited from class no.sikt.graphitron.generators.abstractions.AbstractSchemaMethodGenerator
generate, getDataFetcherWiring, getDependencyMap, getLocalObject, getLocalTable, getTypeResolverWiring, inferFieldTypeNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface no.sikt.graphitron.generators.abstractions.MethodGenerator
generateAll
-
Constructor Details
-
DBMethodGenerator
-
-
Method Details
-
getDefaultSpecBuilder
- Overrides:
getDefaultSpecBuilderin classAbstractSchemaMethodGenerator<T extends ObjectField,ObjectDefinition> - Parameters:
methodName- The name of the method.returnType- The return type of the method, as a javapoetTypeName.- Returns:
- The default builder for this class' methods, with any common settings applied.
-
iterableWrapType
- Overrides:
iterableWrapTypein classAbstractSchemaMethodGenerator<T extends ObjectField,ObjectDefinition> - Returns:
- Get the javapoet TypeName for this field's type, and wrap it in a list ParameterizedTypeName if it is iterable.
-
getContextParameters
-
getMethodParameters
-
getMethodParametersWithOrderField
-