Class ConnectionManagerImpl

  • All Implemented Interfaces:
    ConnectionManager<org.neo4j.graphdb.GraphDatabaseService>

    @Service
    public class ConnectionManagerImpl
    extends Object
    implements ConnectionManager<org.neo4j.graphdb.GraphDatabaseService>
    ConnectionManager reference implementation using Neo4J as DBMS
    Author:
    Adrian Martinez Molina <adrian.martinez@kuwaiba.org>
    • Field Detail

      • udc_enabled

        public static final org.neo4j.graphdb.config.Setting<Boolean> udc_enabled
        Custom configuration entry to disable the N4J's Usage Data Collector.
    • Constructor Detail

      • ConnectionManagerImpl

        public ConnectionManagerImpl()
    • Method Detail

      • closeConnection

        public void closeConnection()
        Description copied from interface: ConnectionManager
        Closes the connection with the database
        Specified by:
        closeConnection in interface ConnectionManager<org.neo4j.graphdb.GraphDatabaseService>
      • commitTransaction

        public void commitTransaction()
        Description copied from interface: ConnectionManager
        Commits the current transaction (if supported by the backend)
        Specified by:
        commitTransaction in interface ConnectionManager<org.neo4j.graphdb.GraphDatabaseService>
      • isSpawned

        public boolean isSpawned()
        Description copied from interface: ConnectionManager
        Tells if the current manager is one spawned from another.
        Specified by:
        isSpawned in interface ConnectionManager<org.neo4j.graphdb.GraphDatabaseService>
        Returns:
      • rollbackTransaction

        public void rollbackTransaction()
        Description copied from interface: ConnectionManager
        Rolls back the current transaction (if supported by the backend)
        Specified by:
        rollbackTransaction in interface ConnectionManager<org.neo4j.graphdb.GraphDatabaseService>
      • startTransaction

        public void startTransaction()
        Description copied from interface: ConnectionManager
        Starts a transaction (if supported by the backend)
        Specified by:
        startTransaction in interface ConnectionManager<org.neo4j.graphdb.GraphDatabaseService>
      • getConnectionHandler

        public org.neo4j.graphdb.GraphDatabaseService getConnectionHandler()
        Description copied from interface: ConnectionManager
        Returns the connection handler, which depends on the kind of backed being used.
        Specified by:
        getConnectionHandler in interface ConnectionManager<org.neo4j.graphdb.GraphDatabaseService>
        Returns:
      • shutDown

        public void shutDown()
        Description copied from interface: ConnectionManager
        Releases the resources associated to this ConnectionManager, assuming that closeConnection didn't do it completely.
        Specified by:
        shutDown in interface ConnectionManager<org.neo4j.graphdb.GraphDatabaseService>
      • setConfiguration

        public void setConfiguration​(Properties properties)
        Description copied from interface: ConnectionManager
        Sets the properties necessary to establish and manage the connection with the database (login, passwd, hostname, etc). It is typically called before openConnection
        Specified by:
        setConfiguration in interface ConnectionManager<org.neo4j.graphdb.GraphDatabaseService>
        Parameters:
        properties - A properties object with the pairs name-value of all properties to be set.