Interface TreeDBService

All Known Implementing Classes:
TreeDBServiceImpl

public interface TreeDBService
  • Method Details

    • merge

      <N extends AbstractNode<N>> N merge(N node)
      Merges the given node with the representation in the database and returns the merged node.
      Type Parameters:
      N - The type of the node
      Parameters:
      node - The node holding the new data
      Returns:
      The merged node
    • persist

      <N extends AbstractNode<N>> void persist(N node)
      Saves the given node to the database
      Type Parameters:
      N - The type of the node
      Parameters:
      node - The node itself
    • remove

      <N extends AbstractNode<N>> void remove(N node)
      Removes the given node from the database
      Type Parameters:
      N - The type of the node
      Parameters:
      node - The node to be removed
    • updateFlags

      <N extends AbstractNode<N>> N updateFlags(N node, long flags)
    • getManagerClassForNode

      <A extends AbstractNode<?>> Class<? extends TreeDBManager<? extends A>> getManagerClassForNode(Class<A> nodeType)