Class ConnectionInfo

  • All Implemented Interfaces:
    java.lang.Comparable<ConnectionInfo>

    public class ConnectionInfo
    extends java.lang.Object
    implements java.lang.Comparable<ConnectionInfo>
    The connection info object is a wrapper for database connection information such as the database URL, user name and password. This class is used by the H2 Console.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String driver
      The driver class name.
      (package private) int lastAccess
      The last time this connection was used.
      (package private) java.lang.String name
      The connection display name.
      java.lang.String url
      The database URL.
      java.lang.String user
      The user name.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(ConnectionInfo o)  
      private static java.lang.String get​(java.lang.String[] array, int i)  
      (package private) java.lang.String getString()  
      • Methods inherited from class java.lang.Object

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

      • driver

        public java.lang.String driver
        The driver class name.
      • url

        public java.lang.String url
        The database URL.
      • user

        public java.lang.String user
        The user name.
      • name

        java.lang.String name
        The connection display name.
      • lastAccess

        int lastAccess
        The last time this connection was used.
    • Constructor Detail

      • ConnectionInfo

        ConnectionInfo()
      • ConnectionInfo

        public ConnectionInfo​(java.lang.String data)
    • Method Detail

      • get

        private static java.lang.String get​(java.lang.String[] array,
                                            int i)
      • getString

        java.lang.String getString()