Documentation of 'org.hsqldb.DatabaseURL' Java class
DatabaseURL
org.hsqldb

Class DatabaseURL



  • public class DatabaseURL
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor and Description
      DatabaseURL() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static boolean isFileBasedDatabaseType(java.lang.String type)
      Returns true if type represents an in-process connection to a file backed database.
      static boolean isInProcessDatabaseType(java.lang.String type)
      Returns true if type represents an in-process connection to database.
      static HsqlProperties parseURL(java.lang.String url, boolean hasPrefix, boolean noPath)
      Parses the url into components that are returned in a properties object.
      • Methods inherited from class java.lang.Object

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

      • DatabaseURL

        public DatabaseURL()
    • Method Detail

      • isFileBasedDatabaseType

        public static boolean isFileBasedDatabaseType(java.lang.String type)
        Returns true if type represents an in-process connection to a file backed database.
      • isInProcessDatabaseType

        public static boolean isInProcessDatabaseType(java.lang.String type)
        Returns true if type represents an in-process connection to database.
      • parseURL

        public static HsqlProperties parseURL(java.lang.String url,
                                              boolean hasPrefix,
                                              boolean noPath)
        Parses the url into components that are returned in a properties object.

        The following components are isolated:

          url: the original url

          connection_type: a static string that indicate the protocol. If the url does not begin with a valid protocol, null is returned by this method instead of the properties object.

          host: name of host in networked modes in lowercase

          port: port number in networked mode, or 0 if not present

          path: path of the resource on server in networked modes, minimum (slash) with path elements appended apart from servlet path which is (slash) plus the name of the servlet

          database: database name. For memory, networked modes, this is returned in lowercase, for file: and res: databases the original case of characters is preserved. Returns empty string if name is not present in the url.

          for each protocol if port number is not in the url

          Additional connection properties specified as key/value pairs.

        Parameters:
        url - String
        hasPrefix - indicates URL prefix is present
        noPath - indicates empty path and verbatim use of path elements as database
        Returns:
        null returned if the part that should represent the port is not an integer or the part for database name is empty. Empty HsqlProperties returned if if url does not begin with valid protocol and could refer to another JDBC driver.

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.