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 int
DEFAULT_WEIGHT
-
Constructor Summary
Constructors Constructor Description BusinessServiceEdgeEntity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
accept(EdgeEntityVisitor<T> visitor)
boolean
equals(Object obj)
boolean
equalsDefinition(BusinessServiceEdgeEntity other)
Defines if the definition of the edge is equal to the given one.BusinessServiceEntity
getBusinessService()
Long
getId()
AbstractMapFunctionEntity
getMapFunction()
Set<String>
getReductionKeys()
int
getWeight()
int
hashCode()
boolean
isEnabled()
void
setBusinessService(BusinessServiceEntity service)
void
setEnabled(boolean enabled)
void
setId(Long id)
void
setMapFunction(AbstractMapFunctionEntity mapFunction)
void
setWeight(int weight)
String
toString()
-
-
-
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:
isEnabled
in interfaceEdgeEntity
-
setEnabled
public void setEnabled(boolean enabled)
-
getWeight
public int getWeight()
- Specified by:
getWeight
in interfaceEdgeEntity
-
getReductionKeys
public Set<String> getReductionKeys()
- Specified by:
getReductionKeys
in interfaceEdgeEntity
-
setWeight
public void setWeight(int weight)
-
getMapFunction
public AbstractMapFunctionEntity getMapFunction()
- Specified by:
getMapFunction
in 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:
accept
in interfaceEdgeEntity
-
-