Package net.sf.basedb.core.data
Class AnnotationSetData
- java.lang.Object
-
- net.sf.basedb.core.data.BasicData
-
- net.sf.basedb.core.data.AnnotationSetData
-
- All Implemented Interfaces:
Serializable
,IdentifiableData
,LoggableData
public class AnnotationSetData extends BasicData implements LoggableData, Serializable
This class holds information about a set of annotations.- Version:
- 2.0
- Author:
- Nicklas
- See Also:
AnnotationSet
, Developer documentation: Annotations, Serialized Form- Hibernate: class
- table="`AnnotationSets`" lazy="true" batch-size="10"
-
-
Field Summary
Fields Modifier and Type Field Description private Set<AnnotationData>
annotations
private Integer
itemId
private int
itemType
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description AnnotationSetData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<AnnotationData>
getAnnotations()
The annotations in this annotation set.Integer
getItemId()
The ID if the item this annotation set is associated with.int
getItemType()
Get the item type this annotation set is associated with.(package private) void
setAnnotations(Set<AnnotationData> annotations)
void
setItemId(Integer itemId)
void
setItemType(int itemType)
-
Methods inherited from class net.sf.basedb.core.data.BasicData
equals, getId, getVersion, hashCode, setId, setVersion, toString
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
itemType
private transient int itemType
-
itemId
private transient Integer itemId
-
annotations
private transient Set<AnnotationData> annotations
-
-
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)
-
getItemId
@NotLoggable public Integer getItemId()
The ID if the item this annotation set is associated with. Can be null if this is not know. Use a query based on the itemType and annotation set ID to find the item in this case.- Since:
- 2.14
- Hibernate: property
- column="`item_id`" type="int" not-null="false"
-
setItemId
public void setItemId(Integer itemId)
-
getAnnotations
@NotLoggable public Set<AnnotationData> getAnnotations()
The annotations in this annotation set. This is the inverse end.- See Also:
AnnotationData.getAnnotationSet()
- Hibernate: set
- lazy="true" cascade="delete" inverse="true"
- Hibernate: collection-key
- column="`annotationset_id`"
- Hibernate: collection-one-to-many
- class="net.sf.basedb.core.data.AnnotationData"
-
setAnnotations
void setAnnotations(Set<AnnotationData> annotations)
-
-