Class BusinessServiceEdgeEntity
- java.lang.Object
-
- org.opennms.netmgt.bsm.persistence.api.BusinessServiceEdgeEntity
-
- All Implemented Interfaces:
EdgeEntity
- Direct Known Subclasses:
ApplicationEdgeEntity,BusinessServiceChildEdgeEntity,IPServiceEdgeEntity,SingleReductionKeyEdgeEntity
@Entity public class BusinessServiceEdgeEntity extends Object implements EdgeEntity
Base edges that includes properties common to all edge types. Ideally this class would be abstract, but in some cases Hibernate may try to instantiate this class.- Author:
- jwhite
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_WEIGHT
-
Constructor Summary
Constructors Constructor Description BusinessServiceEdgeEntity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Taccept(EdgeEntityVisitor<T> visitor)booleanequals(Object obj)booleanequalsDefinition(BusinessServiceEdgeEntity other)Defines if the definition of the edge is equal to the given one.BusinessServiceEntitygetBusinessService()LonggetId()AbstractMapFunctionEntitygetMapFunction()Set<String>getReductionKeys()intgetWeight()inthashCode()booleanisEnabled()voidsetBusinessService(BusinessServiceEntity service)voidsetEnabled(boolean enabled)voidsetId(Long id)voidsetMapFunction(AbstractMapFunctionEntity mapFunction)voidsetWeight(int weight)StringtoString()
-
-
-
Field Detail
-
DEFAULT_WEIGHT
public static final int DEFAULT_WEIGHT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
public Long getId()
-
setId
public void setId(Long id)
-
getBusinessService
public BusinessServiceEntity getBusinessService()
-
setBusinessService
public void setBusinessService(BusinessServiceEntity service)
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabledin interfaceEdgeEntity
-
setEnabled
public void setEnabled(boolean enabled)
-
getWeight
public int getWeight()
- Specified by:
getWeightin interfaceEdgeEntity
-
getReductionKeys
public Set<String> getReductionKeys()
- Specified by:
getReductionKeysin interfaceEdgeEntity
-
setWeight
public void setWeight(int weight)
-
getMapFunction
public AbstractMapFunctionEntity getMapFunction()
- Specified by:
getMapFunctionin interfaceEdgeEntity
-
setMapFunction
public void setMapFunction(AbstractMapFunctionEntity mapFunction)
-
equalsDefinition
public boolean equalsDefinition(BusinessServiceEdgeEntity other)
Defines if the definition of the edge is equal to the given one. This is quite different than the equals method of the object itself.- Returns:
- true if equal, otherwise false
-
accept
public <T> T accept(EdgeEntityVisitor<T> visitor)
- Specified by:
acceptin interfaceEdgeEntity
-
-