Last update: 2011-06-23

org.proteios.core.data
Class AnnotationSetData

java.lang.Object
  extended by org.proteios.core.data.BasicData
      extended by org.proteios.core.data.AnnotationSetData
All Implemented Interfaces:
IdentifiableData

public class AnnotationSetData
extends BasicData

This class holds information about a set of annotations.

Version:
2.0
Author:
Nicklas
See Also:
AnnotationSet, Annotations overview
Hibernate: class
table="`AnnotationSets`" lazy="true" batch-size="10"

Constructor Summary
AnnotationSetData()
           
 
Method Summary
 Map<AnnotationTypeData,AnnotationData> getAnnotations()
          The primary annotations in this annotation set.
 Set<AnnotationData> getInherited()
          Annotations that are inherited from other annotation sets.
 Set<AnnotationSetData> getInheritedSets()
          Annotation sets from which this set should inherit all annotations.
 int getItemType()
          Get the item type this annotation set is associated with.
 void setItemType(int itemType)
           
 
Methods inherited from class org.proteios.core.data.BasicData
equals, getId, getVersion, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AnnotationSetData

public AnnotationSetData()
Method Detail

getItemType

public int getItemType()
Get the item type this annotation set is associated with.

Hibernate: property
column="`item_type`" type="int" not-null="true" update="false"

setItemType

public void setItemType(int itemType)

getAnnotations

public Map<AnnotationTypeData,AnnotationData> getAnnotations()
The primary annotations in this annotation set. This is the inverse end.

See Also:
AnnotationData.getAnnotationSet(), AnnotationData.getAnnotationType()
Hibernate: map
lazy="true" cascade="delete" inverse="true"
Hibernate: index-many-to-many
column="`annotationtype_id`" class="org.proteios.core.data.AnnotationTypeData"
Hibernate: collection-key
column="`annotationset_id`"
Hibernate: collection-one-to-many
class="org.proteios.core.data.AnnotationData"

getInherited

public Set<AnnotationData> getInherited()
Annotations that are inherited from other annotation sets.

See Also:
getInheritingSets()
Hibernate: set
table="`InheritedAnnotations`" lazy="true"
Hibernate: collection-key
column="`annotationset_id`"
Hibernate: collection-many-to-many
column="`annotation_id`" class="org.proteios.core.data.AnnotationData"

getInheritedSets

public Set<AnnotationSetData> getInheritedSets()
Annotation sets from which this set should inherit all annotations.

See Also:
getInheritingSets()
Hibernate: set
table="`InheritedAnnotationSets`" lazy="true"
Hibernate: collection-key
column="`annotationset_id`"
Hibernate: collection-many-to-many
column="`inherited_id`" class="org.proteios.core.data.AnnotationSetData"

Last update: 2011-06-23