Class H2Url

java.lang.Object
ch.autumo.commons.database.H2Url

public final class H2Url extends Object
H2 database URl for further processing.
  • Field Details

    • LOG

      protected static final org.slf4j.Logger LOG
      Logger.
    • URL_SEPARATOR

      public static final String URL_SEPARATOR
      The H2 URL separator separates the URL from the features.
      See Also:
    • FEAT_MODE

      public static final String FEAT_MODE
      MODE feature.
      See Also:
    • FEAT_DATABASE_TO_LOWER

      public static final String FEAT_DATABASE_TO_LOWER
      DATABASE_TO_LOWER feature.
      See Also:
    • FEAT_CASE_INSENSITIVE_IDENTIFIERS

      public static final String FEAT_CASE_INSENSITIVE_IDENTIFIERS
      CASE_INSENSITIVE_IDENTIFIERS feature.
      See Also:
    • FEAT_NON_KEYWORDS

      public static final String FEAT_NON_KEYWORDS
      NON_KEYWORDS feature.
      See Also:
    • DEF_VAL_MODE

      public static final String DEF_VAL_MODE
      MODE feature default value.
      See Also:
    • DEF_VAL_DB2LOWER

      public static final String DEF_VAL_DB2LOWER
      DATABASE_TO_LOWER feature default value.
      See Also:
    • DEF_VAL_CASE

      public static final String DEF_VAL_CASE
      CASE_INSENSITIVE_IDENTIFIERS feature default value.
      See Also:
    • DEF_VAL_NON_KEYWORDS

      public static final String DEF_VAL_NON_KEYWORDS
      KEYWORDS feature default value.
      See Also:
  • Constructor Details

    • H2Url

      public H2Url(String originalUrl) throws UtilsException
      Constructor with original URL as configured.
      Parameters:
      originalUrl - originalUrl
      Throws:
      UtilsException - exception when the H2 URL cannot be created
  • Method Details

    • getUrl

      public String getUrl()
      Get new enriched H2 URL.
      Returns:
      new H2 URL
    • getFeatures

      public String getFeatures()
      Get features only.
      Returns:
      features only
    • getUrlNoFeatures

      public String getUrlNoFeatures()
      Get H2 URL without any features.
      Returns:
      new H2 URL without features