Interface Service<T>


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

    Modifier and Type
    Method
    Description
    boolean
    exists(Transaction transaction, String path)
    Test whether T exists at the given path in the repository
    find(Transaction transaction, String path)
    Retrieve an existing T instance by transaction and path
    findOrCreate(Transaction transaction, String path)
    Retrieve a T instance by transaction and path
  • Method Details

    • exists

      boolean exists(Transaction transaction, String path)
      Test whether T exists at the given path in the repository
      Parameters:
      transaction - the transaction
      path - the path
      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:
      transaction - the transaction
      path - the path to the node
      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