Interface Service<T>


  • public interface Service<T>
    Since:
    Feb 21, 2014
    Author:
    bbpennel, barmintor
    • Method Detail

      • exists

        boolean exists​(Transaction transaction,
                       String path)
        Test whether T exists at the given path in the repository
        Parameters:
        path - the path
        transaction - the transaction
        Returns:
        whether T exists at the given path
      • find

        T find​(Transaction transaction,
               String path)
        Retrieve an existing T instance by transaction and path
        Parameters:
        path - the path to the node
        transaction - the transaction
        Returns:
        retrieved T
      • findOrCreate

        T findOrCreate​(Transaction transaction,
                       String path)
        Retrieve a T instance by transaction and path
        Parameters:
        transaction - the transaction
        path - the path to the node
        Returns:
        retrieved T