Class LocalEntityConnectionProvider

    • Field Detail

      • SHUTDOWN_EMBEDDED_DB_ON_DISCONNECT

        public static final PropertyValue<Boolean> SHUTDOWN_EMBEDDED_DB_ON_DISCONNECT
        Specifies whether an embedded database is shut down when disconnected from
        Value type: Boolean
        Default value: false
    • Constructor Detail

      • LocalEntityConnectionProvider

        public LocalEntityConnectionProvider()
        Instantiates a new LocalEntityConnectionProvider
      • LocalEntityConnectionProvider

        public LocalEntityConnectionProvider​(Database database)
        Instantiates a new LocalEntityConnectionProvider
        Parameters:
        database - the Database instance to base this connection provider on
    • Method Detail

      • getConnectionType

        public String getConnectionType()
        Returns a String specifying the type of connection provided by this connection provider
        Returns:
        a String specifying the type of connection, e.g. "local" or "remote"
      • getDescription

        public String getDescription()
        Returns:
        the service identifier (sid) of the underlying database or the hostname if sid is not specified