Class CustomParameterMarkers


  • public class CustomParameterMarkers
    extends java.lang.Object
    A helper class that takes a SQLStatement as input and substitute the parameter markers with value by invoking the ParameterWizard dialog.

    The class is copied from the ParameterMarkers and modified to work with VS Fields.

    Author:
    Christopher Mindus
    • Constructor Summary

      Constructors 
      ConstructorDescription
      CustomParameterMarkers​(CustomSQLBuilder builder, org.eclipse.datatools.modelbase.sql.query.QueryStatement sqlStatement)
      Custom parameter markers.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      booleangetContinueExecution()
      Returns if execution should continue.
      java.util.VectorgetMarkerValues()
      Gets thge current marker values.
      java.lang.StringsubstituteParameters()
      Return the SQL statement with values substituted if there are any markers
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CustomParameterMarkers

        public CustomParameterMarkers​(CustomSQLBuilder builder,
                                      org.eclipse.datatools.modelbase.sql.query.QueryStatement sqlStatement)
        Custom parameter markers.
        Parameters:
        builder - The SQL Builder.
        sqlStatement - The statement.
    • Method Detail

      • getContinueExecution

        public boolean getContinueExecution()
        Returns if execution should continue.
        Returns:
        false to abort.
      • getMarkerValues

        public java.util.Vector getMarkerValues()
        Gets thge current marker values.
        Returns:
        The array.
      • substituteParameters

        public java.lang.String substituteParameters()
        Return the SQL statement with values substituted if there are any markers
        Returns:
        The substituted variable string.