- generalDAO - Variable in class com.googlecode.genericdao.dao.jpa.DAODispatcher
-
- GeneralDAO - Interface in com.googlecode.genericdao.dao.jpa
-
Interface for general Data Access Object that can be used for any type domain
object.
- GeneralDAOImpl - Class in com.googlecode.genericdao.dao.jpa
-
Implementation of GeneralDAO using Hibernate.
- GeneralDAOImpl() - Constructor for class com.googlecode.genericdao.dao.jpa.GeneralDAOImpl
-
- GenericDAO<T,ID extends Serializable> - Interface in com.googlecode.genericdao.dao.jpa
-
Interface for a Data Access Object that can be used for a single specified
type domain object.
- GenericDAOImpl<T,ID extends Serializable> - Class in com.googlecode.genericdao.dao.jpa
-
Implementation of GenericDAO using Hibernate.
- GenericDAOImpl() - Constructor for class com.googlecode.genericdao.dao.jpa.GenericDAOImpl
-
- getFilterFromExample(Object) - Method in class com.googlecode.genericdao.dao.jpa.DAODispatcher
-
- getFilterFromExample(Object, ExampleOptions) - Method in class com.googlecode.genericdao.dao.jpa.DAODispatcher
-
- getFilterFromExample(Object) - Method in interface com.googlecode.genericdao.dao.jpa.GeneralDAO
-
Generates a search filter from the given example using default options.
- getFilterFromExample(Object, ExampleOptions) - Method in interface com.googlecode.genericdao.dao.jpa.GeneralDAO
-
Generates a search filter from the given example using the specified
options.
- getFilterFromExample(Object) - Method in class com.googlecode.genericdao.dao.jpa.GeneralDAOImpl
-
- getFilterFromExample(Object, ExampleOptions) - Method in class com.googlecode.genericdao.dao.jpa.GeneralDAOImpl
-
- getFilterFromExample(T) - Method in interface com.googlecode.genericdao.dao.jpa.GenericDAO
-
Generates a search filter from the given example using default options.
- getFilterFromExample(T, ExampleOptions) - Method in interface com.googlecode.genericdao.dao.jpa.GenericDAO
-
Generates a search filter from the given example using the specified options.
- getFilterFromExample(T) - Method in class com.googlecode.genericdao.dao.jpa.GenericDAOImpl
-
- getFilterFromExample(T, ExampleOptions) - Method in class com.googlecode.genericdao.dao.jpa.GenericDAOImpl
-
- getMetadataUtil() - Method in class com.googlecode.genericdao.dao.jpa.JPABaseDAO
-
- getMethod(Class<?>, String, Class<?>...) - Static method in class com.googlecode.genericdao.dao.DAOUtil
-
- getReference(Class<T>, Serializable) - Method in class com.googlecode.genericdao.dao.jpa.DAODispatcher
-
- getReference(Class<T>, Serializable) - Method in interface com.googlecode.genericdao.dao.jpa.GeneralDAO
-
Get a reference to the entity with the specified type and id from the
datastore.
- getReference(Class<T>, Serializable) - Method in class com.googlecode.genericdao.dao.jpa.GeneralDAOImpl
-
- getReference(ID) - Method in interface com.googlecode.genericdao.dao.jpa.GenericDAO
-
Get a reference to the entity with the specified type and id from the
datastore.
- getReference(ID) - Method in class com.googlecode.genericdao.dao.jpa.GenericDAOImpl
-
- getReferences(Class<T>, Serializable...) - Method in class com.googlecode.genericdao.dao.jpa.DAODispatcher
-
- getReferences(Class<T>, Serializable...) - Method in interface com.googlecode.genericdao.dao.jpa.GeneralDAO
-
Get a reference to the entities of the specified type with the given ids
from the datastore.
- getReferences(Class<T>, Serializable...) - Method in class com.googlecode.genericdao.dao.jpa.GeneralDAOImpl
-
- getReferences(ID...) - Method in interface com.googlecode.genericdao.dao.jpa.GenericDAO
-
Get a reference to the entities of the specified type with the given ids
from the datastore.
- getReferences(ID...) - Method in class com.googlecode.genericdao.dao.jpa.GenericDAOImpl
-
- getSearchProcessor() - Method in class com.googlecode.genericdao.dao.jpa.JPABaseDAO
-
- getSpecificDAO(String) - Method in class com.googlecode.genericdao.dao.BaseDAODispatcher
-
- getTypeArguments(Class<T>, Class<? extends T>) - Static method in class com.googlecode.genericdao.dao.DAOUtil
-
Get the actual type arguments a child class has used to extend a generic
base class.
- getTypeFromArray(Object[]) - Static method in class com.googlecode.genericdao.dao.BaseDAODispatcher
-
Get the type of an array's elements.
- getUniformArrayType(Object[]) - Static method in class com.googlecode.genericdao.dao.BaseDAODispatcher
-
If array is null, empty or has no non-null elements, return null
If array contains all elements of the same type, return that type
If array contains several different element types, return
Object.class
- save(T) - Method in class com.googlecode.genericdao.dao.jpa.DAODispatcher
-
- save(Object...) - Method in class com.googlecode.genericdao.dao.jpa.DAODispatcher
-
- save(T) - Method in interface com.googlecode.genericdao.dao.jpa.GeneralDAO
-
If an entity with the same ID already exists in the database, merge the
changes into that entity.
- save(Object...) - Method in interface com.googlecode.genericdao.dao.jpa.GeneralDAO
-
For each entity: If an entity with the same ID already exists in the
database, merge the changes into that entity.
- save(T) - Method in class com.googlecode.genericdao.dao.jpa.GeneralDAOImpl
-
- save(Object...) - Method in class com.googlecode.genericdao.dao.jpa.GeneralDAOImpl
-
- save(T) - Method in interface com.googlecode.genericdao.dao.jpa.GenericDAO
-
If an entity with the same ID already exists in the database, merge the
changes into that entity.
- save(T...) - Method in interface com.googlecode.genericdao.dao.jpa.GenericDAO
-
For each entity: If an entity with the same ID already exists in the
database, merge the changes into that entity.
- save(T) - Method in class com.googlecode.genericdao.dao.jpa.GenericDAOImpl
-
- save(T...) - Method in class com.googlecode.genericdao.dao.jpa.GenericDAOImpl
-
- search(ISearch) - Method in class com.googlecode.genericdao.dao.jpa.DAODispatcher
-
- search(ISearch) - Method in interface com.googlecode.genericdao.dao.jpa.GeneralDAO
-
Search for objects given the search parameters in the specified
ISearch object.
- search(ISearch) - Method in class com.googlecode.genericdao.dao.jpa.GeneralDAOImpl
-
- search(ISearch) - Method in interface com.googlecode.genericdao.dao.jpa.GenericDAO
-
Search for entities given the search parameters in the specified
ISearch object.
- search(ISearch) - Method in class com.googlecode.genericdao.dao.jpa.GenericDAOImpl
-
- searchAndCount(ISearch) - Method in class com.googlecode.genericdao.dao.jpa.DAODispatcher
-
- searchAndCount(ISearch) - Method in interface com.googlecode.genericdao.dao.jpa.GeneralDAO
-
Returns a SearchResult object that includes both the list of
results like search() and the total length like
count().
- searchAndCount(ISearch) - Method in class com.googlecode.genericdao.dao.jpa.GeneralDAOImpl
-
- searchAndCount(ISearch) - Method in interface com.googlecode.genericdao.dao.jpa.GenericDAO
-
Returns a SearchResult object that includes both the list of
results like search() and the total length like
count().
- searchAndCount(ISearch) - Method in class com.googlecode.genericdao.dao.jpa.GenericDAOImpl
-
- searchUnique(ISearch) - Method in class com.googlecode.genericdao.dao.jpa.DAODispatcher
-
- searchUnique(ISearch) - Method in interface com.googlecode.genericdao.dao.jpa.GeneralDAO
-
Search for a single result using the given parameters.
- searchUnique(ISearch) - Method in class com.googlecode.genericdao.dao.jpa.GeneralDAOImpl
-
- searchUnique(ISearch) - Method in interface com.googlecode.genericdao.dao.jpa.GenericDAO
-
Search for a single entity using the given parameters.
- searchUnique(ISearch) - Method in class com.googlecode.genericdao.dao.jpa.GenericDAOImpl
-
- setEntityManager(EntityManager) - Method in class com.googlecode.genericdao.dao.jpa.JPABaseDAO
-
Set the current EntityManager
- setGeneralDAO(GeneralDAO) - Method in class com.googlecode.genericdao.dao.jpa.DAODispatcher
-
GeneralDAO has default implementations for the standard DAO methods.
- setSearchProcessor(JPASearchProcessor) - Method in class com.googlecode.genericdao.dao.jpa.JPABaseDAO
-
- setSpecificDAOs(Map<String, Object>) - Method in class com.googlecode.genericdao.dao.BaseDAODispatcher
-
In practice some DAOs could be put into this map using Spring.
- specificDAOs - Variable in class com.googlecode.genericdao.dao.BaseDAODispatcher
-
- _all(Class<T>) - Method in class com.googlecode.genericdao.dao.jpa.JPABaseDAO
-
Get a list of all the entities of the specified class.
- _contains(Object) - Method in class com.googlecode.genericdao.dao.jpa.JPABaseDAO
-
Returns true if the object is connected to the current hibernate session.
- _count(ISearch) - Method in class com.googlecode.genericdao.dao.jpa.JPABaseDAO
-
Returns the total number of results that would be returned using the
given ISearch if there were no paging or maxResult limits.
- _count(Class<?>, ISearch) - Method in class com.googlecode.genericdao.dao.jpa.JPABaseDAO
-
Same as _count(ISearch) except that it uses the specified
search class instead of getting it from the search object.
- _count(Class<?>) - Method in class com.googlecode.genericdao.dao.jpa.JPABaseDAO
-
Returns the number of instances of this entity in the datastore.
- _exists(Object) - Method in class com.googlecode.genericdao.dao.jpa.JPABaseDAO
-
- _exists(Class<?>, Serializable) - Method in class com.googlecode.genericdao.dao.jpa.JPABaseDAO
-
- _exists(Class<?>, Serializable...) - Method in class com.googlecode.genericdao.dao.jpa.JPABaseDAO
-
- _find(Class<T>, Serializable) - Method in class com.googlecode.genericdao.dao.jpa.JPABaseDAO
-
Return the persistent instance of the given entity class with the given
identifier, or null if there is no such persistent instance.
- _find(Class<T>, Serializable...) - Method in class com.googlecode.genericdao.dao.jpa.JPABaseDAO
-
Return the all the persistent instances of the given entity class with
the given identifiers.
- _flush() - Method in class com.googlecode.genericdao.dao.jpa.JPABaseDAO
-
Flushes changes in the hibernate cache to the datastore.
- _getFilterFromExample(Object) - Method in class com.googlecode.genericdao.dao.jpa.JPABaseDAO
-
- _getFilterFromExample(Object, ExampleOptions) - Method in class com.googlecode.genericdao.dao.jpa.JPABaseDAO
-
- _getReference(Class<T>, Serializable) - Method in class com.googlecode.genericdao.dao.jpa.JPABaseDAO
-
- _getReferences(Class<T>, Serializable...) - Method in class com.googlecode.genericdao.dao.jpa.JPABaseDAO
-
- _merge(T) - Method in class com.googlecode.genericdao.dao.jpa.JPABaseDAO
-
Copy the state of the given object onto the persistent object with the
same identifier.
- _merge(Class<T>, T...) - Method in class com.googlecode.genericdao.dao.jpa.JPABaseDAO
-
Copy the state of the given objects onto the persistent objects with the
same identifier.
- _persist(Object...) - Method in class com.googlecode.genericdao.dao.jpa.JPABaseDAO
-
Make a transient instance persistent and add it to the datastore.
- _persistOrMerge(T) - Method in class com.googlecode.genericdao.dao.jpa.JPABaseDAO
-
If an entity with the same ID already exists in the database, merge the
changes into that entity.
- _persistOrMerge(Class<T>, T...) - Method in class com.googlecode.genericdao.dao.jpa.JPABaseDAO
-
For each entity: If an entity with the same ID already exists in the
database, merge the changes into that entity.
- _refresh(Object...) - Method in class com.googlecode.genericdao.dao.jpa.JPABaseDAO
-
Refresh the content of the given entity from the current datastore state.
- _removeById(Class<?>, Serializable) - Method in class com.googlecode.genericdao.dao.jpa.JPABaseDAO
-
Remove the entity of the specified class with the specified id from the
datastore.
- _removeByIds(Class<?>, Serializable...) - Method in class com.googlecode.genericdao.dao.jpa.JPABaseDAO
-
Remove all the entities of the given type from the datastore that have
one of these ids.
- _removeEntities(Object...) - Method in class com.googlecode.genericdao.dao.jpa.JPABaseDAO
-
Remove the specified entities from the datastore.
- _removeEntity(Object) - Method in class com.googlecode.genericdao.dao.jpa.JPABaseDAO
-
Remove the specified entity from the datastore.
- _search(ISearch) - Method in class com.googlecode.genericdao.dao.jpa.JPABaseDAO
-
Search for objects based on the search parameters in the specified
ISearch object.
- _search(Class<?>, ISearch) - Method in class com.googlecode.genericdao.dao.jpa.JPABaseDAO
-
Same as _search(ISearch) except that it uses the specified
search class instead of getting it from the search object.
- _searchAndCount(ISearch) - Method in class com.googlecode.genericdao.dao.jpa.JPABaseDAO
-
Returns a SearchResult object that includes the list of
results like search() and the total length like
searchLength.
- _searchAndCount(Class<?>, ISearch) - Method in class com.googlecode.genericdao.dao.jpa.JPABaseDAO
-
Same as _searchAndCount(ISearch) except that it uses the
specified search class instead of getting it from the search object.
- _searchUnique(ISearch) - Method in class com.googlecode.genericdao.dao.jpa.JPABaseDAO
-
Search for a single result using the given parameters.
- _searchUnique(Class<?>, ISearch) - Method in class com.googlecode.genericdao.dao.jpa.JPABaseDAO
-
Same as _searchUnique(ISearch) except that it uses the
specified search class instead of getting it from the search object.