HibernateAnnotationFactory Class Reference

Inheritance diagram for HibernateAnnotationFactory:
Collaboration diagram for HibernateAnnotationFactory:

List of all members.

Public Methods

 HibernateAnnotationFactory (TeslaComponent component)
 HibernateAnnotationFactory (int componentId)
abstract< TextendsDataObject >
Annotation< T > 
newExperimentAnnotation (T dataObject, TypeMapping mapping)
abstract< TextendsDataObject >
Annotation< T > 
newSignalAnnotation (String signalId, T dataObject, TypeMapping mapping)
abstract< TextendsDataObject >
Annotation< T > 
newAnnotation (int left, int right, String signalId, T dataObject, TypeMapping mapping)
abstract< TextendsDataObject >
Annotation< T > 
newAnnotation (Annotation<?extends DataObject > toclone, T data, TypeMapping mapping)

Protected Methods

int getTypeId (DataObject object)

Protected Attributes

Map< DataObject, Integer > types = new HashMap<DataObject, Integer>()

Package Functions

public< T extends DataObject >
Annotation< T > 
newExperimentAnnotation (T dataObject, TypeMapping mapping)
public< T extends DataObject >
Annotation< T > 
newSignalAnnotation (String signalId, T dataObject, TypeMapping mapping)
public< T extends DataObject >
Annotation< T > 
newSignalAnnotation (String signalId, T dataObject, long typeId)
public< T extends DataObject >
Annotation< T > 
newAnnotation (int left, int right, String signalId, T dataObject, TypeMapping mapping)
public< T extends DataObject >
Annotation< T > 
newAnnotation (Annotation<?extends DataObject > toclone, T data, TypeMapping mapping)
public< T extends DataObject >
Annotation< T > 
newAnnotation (int left, int right, String signalId, T dataObject, long typeId)
public< T extends DataObject >
Annotation< T > 
newExperimentAnnotation (T dataObject, long typeId)

Constructors

HibernateAnnotationFactory ( int  componentId)

Method Details

int getTypeId ( DataObject  object) [protected]
public<T extends DataObject> Annotation<T> newAnnotation ( int  left,
int  right,
String  signalId,
dataObject,
TypeMapping  mapping 
) [package]
abstract <TextendsDataObject> Annotation<T> newAnnotation ( int  left,
int  right,
String  signalId,
dataObject,
TypeMapping  mapping 
) [pure virtual, inherited]

Creates a new annotation, which is anchored to a signal as specified by left, right and signalid.

Parameters:
<T>
left
right
signalId
dataObject
mapping
Returns:
public<T extends DataObject> Annotation<T> newAnnotation ( Annotation<?extends DataObject toclone,
data,
TypeMapping  mapping 
) [package]
abstract <TextendsDataObject> Annotation<T> newAnnotation ( Annotation<?extends DataObject toclone,
data,
TypeMapping  mapping 
) [pure virtual, inherited]

Creates a new annotation, which is anchored to the same elements as the parameter toclone is anchored to.

Parameters:
<T>
toclone
data
mapping
Returns:
public<T extends DataObject> Annotation<T> newAnnotation ( int  left,
int  right,
String  signalId,
dataObject,
long  typeId 
) [package, virtual]

Creates a new annotation with typemapping TypeMapping#SIGNAL_BASED and the typeId as specified by typeId. Useful for instances of ReaderComponentEntity, which cannot let Tesla assign such a typeId, as the signal does not yet exist.

Parameters:
<T>
left
right
signalId
dataObject
typId
Returns:

Implements IAnnotationFactory.

public<T extends DataObject> Annotation<T> newExperimentAnnotation ( dataObject,
long  typeId 
) [package, virtual]

Implements IAnnotationFactory.

abstract <TextendsDataObject> Annotation<T> newExperimentAnnotation ( dataObject,
TypeMapping  mapping 
) [pure virtual, inherited]

Creates a new experiment-related annotation, which is not anchored to any signal or range.

Parameters:
<T>
dataObject
mapping
Returns:
public<T extends DataObject> Annotation<T> newExperimentAnnotation ( dataObject,
TypeMapping  mapping 
) [package]
public<T extends DataObject> Annotation<T> newSignalAnnotation ( String  signalId,
dataObject,
TypeMapping  mapping 
) [package]
public<T extends DataObject> Annotation<T> newSignalAnnotation ( String  signalId,
dataObject,
long  typeId 
) [package, virtual]

Implements IAnnotationFactory.

abstract <TextendsDataObject> Annotation<T> newSignalAnnotation ( String  signalId,
dataObject,
TypeMapping  mapping 
) [pure virtual, inherited]

Creates a new signal-related annotation, which is anchored to the signal, but not to any range. The left and right anchor of the returned annotation are both -1.

Parameters:
<T>
signalId
dataObject
mapping
Returns:

Field Details

Map<DataObject, Integer> types = new HashMap<DataObject, Integer>() [protected]