Class DatabaseInfo

java.lang.Object
liquibase.report.DatabaseInfo

public class DatabaseInfo extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final List<String>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Used in mustache template.
    protected String
    getVisibleUrl(String originalUrl)
    Builds a simpler version of the jdbc url if the url is longer than CONNECTION_URL_MAX_LENGTH If the original url was "jdbc:sqlserver://localhost:1433;someParam=nothing;databaseName=blah;someParam2=nothing;someParam3=nothing;..." (greater than CONNECTION_URL_MAX_LENGTH chars) will be shuffled to read "jdbc:sqlserver://localhost:1433;databaseName=blah..." for presentation

    Methods inherited from class java.lang.Object

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

    • DB_URL_VISIBLE_KEYS

      public static final List<String> DB_URL_VISIBLE_KEYS
  • Constructor Details

    • DatabaseInfo

      public DatabaseInfo()
  • Method Details

    • getVisibleDatabaseUrl

      public String getVisibleDatabaseUrl()
      Used in mustache template.
      Returns:
      the visible url string.
    • getVisibleUrl

      protected String getVisibleUrl(String originalUrl)
      Builds a simpler version of the jdbc url if the url is longer than CONNECTION_URL_MAX_LENGTH If the original url was "jdbc:sqlserver://localhost:1433;someParam=nothing;databaseName=blah;someParam2=nothing;someParam3=nothing;..." (greater than CONNECTION_URL_MAX_LENGTH chars) will be shuffled to read "jdbc:sqlserver://localhost:1433;databaseName=blah..." for presentation
      Parameters:
      originalUrl - the original jdbc url
      Returns:
      the modified url if longer than CONNECTION_URL_MAX_LENGTH