java.lang.Object
org.geysermc.databaseutils.processor.action.Action

public abstract class Action extends Object
  • Constructor Details

    • Action

      protected Action(String actionType, boolean allowSelfParameter, boolean allowReturnAnySelfOrColumn, boolean supportsFilter, boolean remainingParametersAsColumns, ProjectionKeywordCategory... supportedProjectionCategories)
  • Method Details

    • actionType

      public String actionType()
    • allowSelfParameter

      public boolean allowSelfParameter()
    • allowReturnAnySelfOrColumn

      public boolean allowReturnAnySelfOrColumn()
    • supportsFilter

      public boolean supportsFilter()
    • remainingParametersAsColumns

      public boolean remainingParametersAsColumns()
    • supportedProjectionCategories

      public List<ProjectionKeywordCategory> supportedProjectionCategories()
    • addToSingle

      protected abstract void addToSingle(RepositoryGenerator generator, QueryContext context, com.squareup.javapoet.MethodSpec.Builder spec)
    • validateSingle

      protected boolean validateSingle(QueryContext context, boolean passedCustomValidation)
    • validateCollection

      protected boolean validateCollection(QueryContext context, boolean passedCustomValidation)
    • validateEither

      protected boolean validateEither(QueryContext context, boolean passedCustomValidation)
    • validate

      public void validate(QueryContext context, Consumer<TypeMirror> customValidation)
    • addTo

      public void addTo(List<RepositoryGenerator> generators, QueryContext context)