|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AnnotatableData
An annotatable item is an item that can be annotated with
name/value pairs. All annotations are held in an AnnotationSetData
object.
This interface defines Hibernate database mapping for the
annotationSet
association to a column with
the name annotationset_id
. If a subclass wants
to map the association to another column, it should override
the getAnnotationSet()
method and add a Hibernate tag
in the comment.
Reference implementation
private AnnotationSetData annotationSet; public AnnotationSetData getAnnotationSet() { return annotationSet; } public void setAnnotationSet(AnnotationSetData annotationSet) { this.annotationSet = annotationSet; }
AnnotatedData
,
AnnotationSetData
,
AnnotationData
,
AnnotationTypeData
,
Annotatable
,
Annotations overviewMethod Summary | |
---|---|
AnnotationSetData |
getAnnotationSet()
Get the annotation set that holds the annotations for an item. |
void |
setAnnotationSet(AnnotationSetData annotationSet)
Change the annotation set. |
Methods inherited from interface net.sf.basedb.core.data.IdentifiableData |
---|
getId, getVersion |
Method Detail |
---|
AnnotationSetData getAnnotationSet()
AnnotationSetData
item or null if no annotations existvoid setAnnotationSet(AnnotationSetData annotationSet)
annotationSet
- Annotation set to change to.
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |