vars.knowledgebase.ConceptDAO |
Known Indirect Subclasses
|
Class Overview
Created by IntelliJ IDEA.
User: brian
Date: Aug 7, 2009
Time: 2:59:37 PM
To change this template use File | Settings | File Templates.
Summary
[Expand]
Inherited Methods |
From interface
vars.DAO
abstract
void
|
close()
|
abstract
void
|
commit()
|
abstract
void
|
endTransaction()
|
abstract
boolean
|
equalInDatastore(Object thisObj, Object thatObj)
True if the to objects represent the same object in the datastore.
|
abstract
<T>
T
|
find(T object)
Retrieves the object from the datastore.
|
abstract
List
|
findByNamedQuery(String name)
Executes a named query that does not take any parameters
|
abstract
List
|
findByNamedQuery(String name, Map<String, Object> namedParameters)
Executes a named query using a map of named parameters
|
abstract
<T>
T
|
findByPrimaryKey(Class<T> clazz, Object primaryKey)
|
abstract
EntityManager
|
getEntityManager()
|
abstract
boolean
|
isPersistent(Object entity)
Checks to see if the given object is persisted in the databas
|
abstract
void
|
loadLazyRelations(Object entity)
Many one-to-many relations are lazy loaded in JPA.
|
abstract
<T>
T
|
merge(T object)
|
abstract
void
|
persist(Object object)
|
abstract
void
|
remove(Object object)
|
abstract
void
|
startTransaction()
|
|
Public Methods
public
abstract
void
cascadeRemove
(Concept concept)
May need to bring all lazy loaded children into the transaction in order to delete them. If you need
to remove a concept use this method (unless you've put a casacade delete trigger on your database)
public
abstract
Collection<Concept>
findAll
()
public
abstract
List<Concept>
findAllByNameContaining
(String nameGlob)
public
abstract
List<Concept>
findAllByNameEndingWith
(String nameGlob)
public
abstract
List<Concept>
findAllByNameStartingWith
(String nameGlob)
public
abstract
Concept
findByName
(String name)
public
abstract
Collection<ConceptName>
findDescendentNames
(Concept concept)
Lookup all @{link ConceptName}s objects that are associated with
this Concept
and its children
Parameters
concept
| The concept whos descendant names are returne |
public
abstract
Collection<Concept>
findDescendents
(Concept concept)
Get a Collection of Concept
objects from the specifed name on down to the end of
the branches that starts at the concept with the specifiec name
Parameters
concept
| The name of the concept |
Returns
- A Set of
Concept
objects from the named one to the end of the branch.
public
abstract
Concept
findRoot
()