public class

ConceptDAOImpl

extends DAO
implements ConceptDAO
java.lang.Object
   ↳ vars.jpa.DAO
     ↳ vars.knowledgebase.jpa.ConceptDAOImpl

Class Overview

Created by IntelliJ IDEA. User: brian Date: Aug 7, 2009 Time: 4:43:41 PM To change this template use File | Settings | File Templates.

Summary

[Expand]
Inherited Fields
From class vars.jpa.DAO
Public Constructors
ConceptDAOImpl(EntityManager entityManager)
Public Methods
void cascadeRemove(Concept concept)
This method will start and stop the transaction on it's own.
Collection<Concept> findAll()
List<Concept> findAllByNameContaining(String nameGlob)
List<Concept> findAllByNameEndingWith(String nameGlob)
List<Concept> findAllByNameStartingWith(String nameGlob)
Concept findByName(String name)
This find method should be called inside of a transaction
Collection<ConceptName> findDescendentNames(Concept concept)
This should be called within a JPA tranaction
Collection<Concept> findDescendents(Concept concept)
Should be called within a JPA transaction
Concept findRoot()
[Expand]
Inherited Methods
From class vars.jpa.DAO
From class java.lang.Object
From interface vars.DAO
From interface vars.jpa.EntityManagerAspect
From interface vars.knowledgebase.ConceptDAO

Public Constructors

public ConceptDAOImpl (EntityManager entityManager)

Public Methods

public void cascadeRemove (Concept concept)

This method will start and stop the transaction on it's own.

public Collection<Concept> findAll ()

public List<Concept> findAllByNameContaining (String nameGlob)

public List<Concept> findAllByNameEndingWith (String nameGlob)

public List<Concept> findAllByNameStartingWith (String nameGlob)

public Concept findByName (String name)

This find method should be called inside of a transaction

public Collection<ConceptName> findDescendentNames (Concept concept)

This should be called within a JPA tranaction

Parameters
concept The concept whos descendant names are returne

public Collection<Concept> findDescendents (Concept concept)

Should be called within a JPA transaction

Parameters
concept The name of the concept
Returns
  • A Set of Concept objects from the named one to the end of the branch.

public Concept findRoot ()