Package org.n52.series.db.beans
Class AbstractRelationEntity<T>
- java.lang.Object
-
- org.n52.series.db.beans.IdEntity
-
- org.n52.series.db.beans.AbstractRelationEntity<T>
-
- All Implemented Interfaces:
Serializable,HibernateRelations.HasId
- Direct Known Subclasses:
RelatedDataEntity,RelatedDatasetEntity
public abstract class AbstractRelationEntity<T> extends IdEntity
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringPROPERTY_ITEMstatic StringPROPERTY_RELATED_ITEM-
Fields inherited from class org.n52.series.db.beans.IdEntity
PROPERTY_ID
-
-
Constructor Summary
Constructors Constructor Description AbstractRelationEntity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TgetItem()TgetRelatedItem()StringgetRelatedUrl()StringgetRole()booleanisSetRelatedUrl()booleanisSetRole()voidsetItem(T item)voidsetRelatedItem(T relatedItem)voidsetRelatedUrl(String relatedUrl)voidsetRole(String role)
-
-
-
Field Detail
-
PROPERTY_ITEM
public static final String PROPERTY_ITEM
- See Also:
- Constant Field Values
-
PROPERTY_RELATED_ITEM
public static final String PROPERTY_RELATED_ITEM
- See Also:
- Constant Field Values
-
-
Method Detail
-
getItem
public T getItem()
- Returns:
- the item
-
setItem
public void setItem(T item)
- Parameters:
item- the item to set
-
getRelatedItem
public T getRelatedItem()
- Returns:
- the relatedItem
-
setRelatedItem
public void setRelatedItem(T relatedItem)
- Parameters:
relatedItem- the relatedItem to set
-
getRole
public String getRole()
- Returns:
- the role
-
setRole
public void setRole(String role)
- Parameters:
role- the role to set
-
isSetRole
public boolean isSetRole()
-
getRelatedUrl
public String getRelatedUrl()
- Returns:
- the relatedUrl
-
setRelatedUrl
public void setRelatedUrl(String relatedUrl)
- Parameters:
relatedUrl- the relatedUrl to set
-
isSetRelatedUrl
public boolean isSetRelatedUrl()
-
-