java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.tentackle.maven.AbstractTentackleMojo
org.tentackle.maven.plugin.wizard.AbstractWizardMojo
org.tentackle.maven.plugin.wizard.BrowseMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="browse", aggregator=true) public class BrowseMojo extends AbstractWizardMojo
PDO browser.
Brings up an FX UI to analyze PDOs persisted in a database and generate test code.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    boolean
    Map schema names to flat table names in generated SQL SELECT statements.
    int
    Limits the number of lines in generated multi-line string literals.
    The backend password.
    protected String
    The backend URL.
    The backend username.

    Fields inherited from class org.tentackle.maven.plugin.wizard.AbstractWizardMojo

    entityAliases, filesets, modelDefaults, modelDir

    Fields inherited from class org.tentackle.maven.AbstractTentackleMojo

    charset, JDK_TOOLCHAIN, minLogLevel, verbosity, verbosityLevel

    Fields inherited from interface org.apache.maven.plugin.Mojo

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    protected javafx.stage.Stage
    Gets the stage, if this an interactive FX application.
    protected void
    Loads the model.

    Methods inherited from class org.tentackle.maven.AbstractTentackleMojo

    createFileSetManager, createPackageMap, determineEncoding, determineJavaToolVersion, determineVerbosity, execute, finishExecute, getCanonicalPath, getHostName, getIncludedFiles, getJavaHome, getMajorVersion, getMavenProject, getMavenSession, getMojoExecution, getPathRelativeToBasedir, getResourceDir, getResourceDirs, getSettings, getSettingsDecrypter, getToolchain, getToolchain, getToolchain, getToolchainManager, getToolFinder, installJavaLoggingHandler, isExecutionRecursive, isSkippedByDefault, loadResourceFileIntoString, prepareExecute, toDescriptorName

    Methods inherited from class org.apache.maven.plugin.AbstractMojo

    getLog, getPluginContext, setLog, setPluginContext

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • url

      @Parameter(required=true) protected String url
      The backend URL.
    • user

      @Parameter(required=true) public String user
      The backend username.
    • password

      @Parameter public String password
      The backend password.
    • maxLinesInStringLiteral

      @Parameter public int maxLinesInStringLiteral
      Limits the number of lines in generated multi-line string literals.
    • mapSchemas

      @Parameter(property="tentackle.mapSchemas") public boolean mapSchemas
      Map schema names to flat table names in generated SQL SELECT statements.
  • Constructor Details

    • BrowseMojo

      public BrowseMojo()
  • Method Details

    • executeImpl

      public void executeImpl() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Overrides:
      executeImpl in class AbstractWizardMojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException
      org.apache.maven.plugin.MojoFailureException
    • getStage

      protected javafx.stage.Stage getStage()
      Description copied from class: AbstractWizardMojo
      Gets the stage, if this an interactive FX application.
      Specified by:
      getStage in class AbstractWizardMojo
      Returns:
      the stage, null if console application
    • loadModel

      protected void loadModel() throws org.apache.maven.plugin.MojoFailureException, org.apache.maven.plugin.MojoExecutionException
      Description copied from class: AbstractWizardMojo
      Loads the model.

      Notice: the model is only needed by the PdoMojo, but we configure it for the whole plugin.

      Overrides:
      loadModel in class AbstractWizardMojo
      Throws:
      org.apache.maven.plugin.MojoFailureException - if the model is inconsistent
      org.apache.maven.plugin.MojoExecutionException - if loading failed due to some other error