DefaultHibernateAccessAdapter< T extends DataObject > Class Reference

Inheritance diagram for DefaultHibernateAccessAdapter< T extends DataObject >:
Collaboration diagram for DefaultHibernateAccessAdapter< T extends DataObject >:

List of all members.


Detailed Description

Base class for implementations of IAccessAdapter which use Hibernate as a persistence backend. It offers several useful methods to access annotations.

Author:
sschwieb
Parameters:
<T>

Public Methods

 DefaultHibernateAccessAdapter (Class< T > clazz)
void initialize (int experimentId, ComponentEntity producer, int roleId, Properties properties)
InputIterator< Annotation< T > > getAllAnnotations (Class< T > clazz, String signalId)
InputIterator< String > getAllSignalIds ()
Annotation< T > getAnnotationById (long id)
InputIterator< T > getDataObjects (Class< T > clazz, Range range, HibernateFilter filter, Order order)
int getNumberOfAnnotations (Class< T > clazz, Range range, HibernateFilter filter)
InputIterator< Annotation< T > > getAnnotationsOfType (Class< T > clazz, Range range, Order order, long typeId)
int getNumberOfAnnotationTypes (Class< T > clazz, Range range, HibernateFilter filter)
void close ()
InputIterator< T > getDataObjects (Class< T > clazz, Range range, Order order)
int getNumberOfAnnotations (Class< T > clazz, Range range)
int getNumberOfAnnotationTypes (Class< T > clazz, Range range)
Set< Class<?extends T > > getSubTypes ()

Protected Methods

String buildWhereClause (int graphId, int roleId, Range range, HibernateFilter filter, Order order)
String getRange (Range range)
Criteria createAnnotationCriteria ()
Criteria createDataObjectCriteria (Class< T > dataObjectClass)
Session getHibernateSession ()

Protected Attributes

final Class< T > clazz

Package Functions

public< L extends T >
InputIterator< Annotation< L > > 
getAllAnnotations (Class< L > clazz)
public< L extends DataObject >
InputIterator< Annotation< L > > 
getAnnotations (Class< L > clazz, Range range, Order order)

Constructors

DefaultHibernateAccessAdapter ( Class< T >  clazz)

Method Details

String buildWhereClause ( int  graphId,
int  roleId,
Range  range,
HibernateFilter  filter,
Order  order 
) [protected]
void close ( )
Criteria createAnnotationCriteria ( ) [protected]
Criteria createDataObjectCriteria ( Class< T >  dataObjectClass) [protected]
InputIterator<Annotation<T> > getAllAnnotations ( Class< T >  clazz,
String  signalId 
)
public<L extends T> InputIterator<Annotation<L> > getAllAnnotations ( Class< L >  clazz) [package]
InputIterator<String> getAllSignalIds ( )
Annotation<T> getAnnotationById ( long  id)
public<L extends DataObject> InputIterator<Annotation<L> > getAnnotations ( Class< L >  clazz,
Range  range,
Order  order 
) [package]
InputIterator<Annotation<T> > getAnnotationsOfType ( Class< T >  clazz,
Range  range,
Order  order,
long  typeId 
)
InputIterator<T> getDataObjects ( Class< T >  clazz,
Range  range,
Order  order 
)
InputIterator<T> getDataObjects ( Class< T >  clazz,
Range  range,
HibernateFilter  filter,
Order  order 
)
Session getHibernateSession ( ) [protected]
int getNumberOfAnnotations ( Class< T >  clazz,
Range  range,
HibernateFilter  filter 
)
int getNumberOfAnnotations ( Class< T >  clazz,
Range  range 
)
int getNumberOfAnnotationTypes ( Class< T >  clazz,
Range  range 
)
int getNumberOfAnnotationTypes ( Class< T >  clazz,
Range  range,
HibernateFilter  filter 
)
String getRange ( Range  range) [protected]
Set<Class<? extends T> > getSubTypes ( )
void initialize ( int  experimentId,
ComponentEntity  producer,
int  roleId,
Properties  properties 
)

Field Details

final Class<T> clazz [protected]